RyanScharfy
Technical User
My original VBA statement does the following:
Starting in column Q, cell 2, it looks over to column P and if the value in column P is zero, it inserts a zero in the Q column using the If statement. This goes on for every cell down column Q until I reach the end of my list.
Here is the original VBA instruction
Dim NERGrowth As Long
NERGrowth = ActiveSheet.UsedRange.Rows.Count
Range("Q2:Q" & NERGrowth).FormulaR1C1 = "=IF(RC[-1]=0,0,(RC[-2]-RC[-1])/RC[-1])"
What I'd LIKE to do is instead of putting in Zero, I'd like to put in the text "New". I've tried a couple basic things, but I'm having no luck.
Any ideas?
Thanks,
Ryan
Starting in column Q, cell 2, it looks over to column P and if the value in column P is zero, it inserts a zero in the Q column using the If statement. This goes on for every cell down column Q until I reach the end of my list.
Here is the original VBA instruction
Dim NERGrowth As Long
NERGrowth = ActiveSheet.UsedRange.Rows.Count
Range("Q2:Q" & NERGrowth).FormulaR1C1 = "=IF(RC[-1]=0,0,(RC[-2]-RC[-1])/RC[-1])"
What I'd LIKE to do is instead of putting in Zero, I'd like to put in the text "New". I've tried a couple basic things, but I'm having no luck.
Any ideas?
Thanks,
Ryan