Reputation: 2140
Without having to write VBA code, is there a way to maybe write a formula to do the following:
Thanks
Upvotes: 0
Views: 643
Reputation: 2140
Figured it out.
=IF(B2=1,C2,IF(C2=2000,3325,IF(OR(C2=2001,C2=102),3327,IF(C2=2003,3329,C2))))
Upvotes: 2
Reputation: 26
If statement wrapped in a For loop:
Dim x 'Beginning Row
Dim y 'Ending Row
For myLoop = x to y
If Cells(x,1)= 2000 and Cells(x,2) = 1 then
Cells(x,3 [or a formula to calculate] )=3327
End If
Next myLoop
Upvotes: 0