Help with creating a function
Are you trying to return the *value* that is in cel G3, G4, etc?
Then
=IF(D3="text", G3, 0)
If you're trying to return the text strings "G3", "G4", etc., and the
text string "0", then, assuming your formula is in row 3:
=IF(D3="text", "G" & ROW(), "0")
If it's in a different row, add or subtract a value to suit. For
instance, if the formula is in row 2:
=IF(D3="text", "G" & ROW()+1, "0")
In article ,
Craig wrote:
Hi,
I need help with this function.
=IF(D2="text", "G2","0")
When I copy the formula to the cells below it changes the reference of the
logical test, which is great, but I also need it to change the reference cell
of the true result. So that when I copy it to the cell below it becomes:
=IF(D3="text", "G3","0")
Thanks,
Craig
|