Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need to define a formula in cell M1 similar to:
If the Last Cell in column M = 0, use the value from the row above in column M, otherwise use the value of the Last Cell in column M. For example if the last cell in Column M was in Row 100 the code would read Range("M1").Select ActiveCell.FormulaR1C1 = IF(M100 = 0, M99, M100) My problem is that the last cell in Column M changes between sheets that would use the macro. Is there a way to reference or define these in a formula? Please note columns N and O also contain data so a reference to the current region would not work. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Is it possible to use a cell reference to define the database? | Excel Worksheet Functions | |||
how do I define a chart series with an indirect reference | Charts and Charting in Excel | |||
Define chart range using indirect reference | Charts and Charting in Excel | |||
Define Name reference | Excel Worksheet Functions | |||
relative reference in a macro to define a name | Excel Programming |