To calculate the average of n biggest numbers from a list enter this formula with Ctrl + Shift + Enter:
To calculate the average of n smallest numbers from a list enter this formula with Ctrl + Shift + Enter:
To calculate the average of n biggest numbers from a list enter this formula with Ctrl + Shift + Enter:
To calculate the average of n smallest numbers from a list enter this formula with Ctrl + Shift + Enter:
This is one of the finest forumlae I’ve ever seen. Check this post at MrExcel.
If you want to have a value specific number of digits otherwise add zeros in front of it, this formula could be used:
=TEXT(A1,REPT(“0″,n))
where n is the number of digits you want.
So 4555 becomes 000004555 with formula =TEXT(4555,REPT(“0″,9))
I didn’t know this before today when an user at MrExcel wondered why he was not getting consistent answers with Excel and VBA. The key is negative numbers.
If you happen to have negative numbers (one of them) and you want to calculate MOD, you should use this code in VBA
Where n is your number and d is your divisor.
For more info, check:
MOD Function and Mod Operator Return Different Values
If you want to change references of a formula, you could toggle F4 key inside the formula to change the references from Absolute, Column Absolute Row Absolute or all relative.
Although, if you have to change references from a range, you can use these two options
1. Download ASAP utilities, because it’s worth it, they have more than 300 utilities which are used many times.
2. Use this code.
You’ll have to download the add-in to make this code run. You can edit the Addin just by opening it in VBA. Here is the Addin. If you install this add in it will create a button “Change References”
EvoLve theme by Blogatize • Powered by WordPress nandeshwar.info
Recent Comments