You cannot change the default Row (1,2,3,…) and Column (A,B,C,D….) headers, but a workaround is:
1. Enter what you’d like to be your Row Headers in the first column after cell A1
2. Enter what you’d like to be your Column Headers in the first row after cell A1
3. Format first row and column to match the default headers
4. Go to Tools>Options>View Tab>Clear the Row & column Headers check box.
Posts in category Uncategorized
Change Row and Column Headers
Assign macro to a button
In this short video you can learn how to assign a macro to a button on your toolbar. If this macro is in the personal workbook then you can use it on any workbook.
Count cells without formulae
If you want to count cells in a given range without formulae use this function
Dim c As Range
On Error GoTo CountNoFormula_Error
For Each c In rng
If Not c.HasFormula Then
CountNoFormula = CountNoFormula + 1
End If
Next c
CountNoFormula_CleanUpExit:
Exit Function
CountNoFormula_Error:
CountNoFormula = CVErr(Err.Number)
Resume CountNoFormula_CleanUpExit
End Function
If you want to count cells with formule then just remove then “Not” in front of c.HasFormula
Average of n samllest or n biggest numbers from a list
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:
MOD Function and Mod Operator Return Different Values
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
Recent Comments