IF statement condition row by row until satisfied

maeyks

Board Regular
Joined
Aug 20, 2010
Messages
127
Good day,

is there a way to make an IF statement, row per row? The condition is that A2 is blank, then if will look at A3, if still blank, it will proceed to A4, etc.

Thanks
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
With VBA, yes !
But what do you want to happen if A2.....is NOT blank ??
 
Upvote 0
Hi,

Basically here is what I want to do:

1) I have for 5 fruits: apple, banana, grapes, lemon and strawberry
2) I have the whole month of April, 1 to 30th, cells A1, A2, ~ A30
3) On B1 the value will be apple until B30 and then on A31 the date will be April 1 again and on B31 will now be banana

The question is, what will be my formula on columns A and B?

Thank you
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,159
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top