Poolshark25

New Member
Joined
Jan 3, 2019
Messages
31
Hi

I have this formula that i have managed to get to return the results i need, but it is a it long-winded.

Is there a way this could be simplified?

=IF(C9=(TODAY()-7),"Retrain",IF(C9=(TODAY()-6),"Retrain",IF(C9=(TODAY()-5),"Retrain",IF(C9=(TODAY()-4),"Retrain",IF(C9=(TODAY()-3),"Retrain",IF(C9=(TODAY()-2),"Retrain",IF(C9=(TODAY()-1),"Retrain",IF(C9=(TODAY()),"Retrain",IF(C9<'Today -7'!$B$1,"Overdue","Ok")))))))))

I want Excel to return "Retrain" if an expiry date is within 7 days of todays date but if it has passed todays date to return "Overdue". If the expiry date is more than 7 days prior to todays date (Still valid) to return Ok"

Any help would be appreciated.

Regards,

Ernie
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
How about
<today()-7,"overdue",if(c9></today()-7,"overdue",if(c9>=IF(C9< TODAY()-7,"Overdue",IF(C9 >TODAY(),"OK","Retrain"))
 
Last edited:
Upvote 0
=IF(AND(C9>=TODAY()-7,C9<=TODAY()),"Retrain",IF(C9<'Today -7'!$B$1,"Overdue","Ok"))
 
Upvote 0
Good point, I missed that as was going more by the description than the formula.
 
Upvote 0
Looks like we may never know.
 
Upvote 0

Forum statistics

Threads
1,214,645
Messages
6,120,711
Members
448,984
Latest member
foxpro

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