View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] gabe.dellafave@gmail.com is offline
external usenet poster
 
Posts: 1
Default Is this a valid IF statement in Excel?

Hello all,

I am new to Excel programming and was wondering if this is a valid
Excel IF statement for what I want to do:

"=IF(AND(RC[-4]=""NJ 07733"",RC[-12]=""981621""),""HOLMDEL"",RC[-3])"

If cell, 4 cells to the left of the current cell = "NJ 07733" AND
cell, 12 cells to the left of current cell = "981621"
Then
move "HOLMDEL" to current cell
Else
move the contents of cell, 3 cells to the left of current cell to the
current cell.

Thanks for your help ahead of time,

Gabe