skarnik01
Member
Hi,
I am writing a Macro wherein I need to identify 2 last cells in the column (whose rows keep increasing on daily basis)
Added a Command button, on clicking the following actions should occur -
- Identify 2nd last row cell value from column C as C1
- Identify last row cell value from column C as C2
- In another sheet 'Calc Formulae' in cell C18 I need to apply formula:
apply formula - IF(ABS(C2-C1)>90,"YES",IF(ABS(C2-C1)>C1*1.5%,"YES","NO"))
Please help -
I am writing a Macro wherein I need to identify 2 last cells in the column (whose rows keep increasing on daily basis)
Added a Command button, on clicking the following actions should occur -
- Identify 2nd last row cell value from column C as C1
- Identify last row cell value from column C as C2
- In another sheet 'Calc Formulae' in cell C18 I need to apply formula:
apply formula - IF(ABS(C2-C1)>90,"YES",IF(ABS(C2-C1)>C1*1.5%,"YES","NO"))
Please help -