Formating a cell based on last value in column

Urlord

Board Regular
Joined
Aug 5, 2010
Messages
130
I have two columns that contains dates
Column b Out Of Service Date
Column F Return to service

I need a formula that takes the newest date and enters text in C2
If the newest date is in Column B I need C2 to say "Out of Service"
If the newest date is in column F I need C2 to say "In Service"
The row number in each column changes when a new entry is made so the formula needs to look at the last entry in the columns

Any help would be appreciated
 
If order doesn't matter, just use the MAX() function to grab the largest date per column. Then you could just test the two against each other, i.e. =IF(MAX(B:B)>MAX(F:F),"b has higher date","f has higher date")
 
Upvote 0

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