complicated Excel formula

Lenna

Active Member
Joined
Jun 25, 2014
Messages
269
Please help adjust this formula in N =IF(ISBLANK(L4),IF(TODAY()-I4+1>21,"Overdue","Not Reported"),IF(M4>21,"Overdue",IF(M4=21,"On Time","Early")))
Formula in M = L-I

Code:
[TABLE]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]K[/TD]
[TD]L[/TD]
[TD]M[/TD]
[TD]N[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]Patient Id[/TD]
[TD]MR Number[/TD]
[TD]Last Name[/TD]
[TD]First Name[/TD]
[TD]Category[/TD]
[TD]Included In Mailing[/TD]
[TD]Log Time[/TD]
[TD]Sample Date[/TD]
[TD]Assigned Date[/TD]
[TD]Test Type[/TD]
[TD]Test Id[/TD]
[TD]ReportDate[/TD]
[TD]Days2SignOff[/TD]
[TD]TAT[/TD]
[TD]Corrected[/TD]
[/TR]
[TR]
[TD]8056[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]KIDNEY REC[/TD]
[TD]FALSE[/TD]
[TD]1/17/2014[/TD]
[TD]1/16/2014[/TD]
[TD]9/5/2014[/TD]
[TD]SABII[/TD]
[TD]570059[/TD]
[TD]9/6/2014[/TD]
[TD]1[/TD]
[TD]Early[/TD]
[TD]NO[/TD]
[/TR]
[TR]
[TD]17627[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]KIDNEY REC[/TD]
[TD]FALSE[/TD]
[TD]2/18/2014[/TD]
[TD]2/3/2014[/TD]
[TD]6/1/2014[/TD]
[TD]FL__PRAII[/TD]
[TD]575071[/TD]
[TD]9/7/2014[/TD]
[TD]98[/TD]
[TD]Overdue[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]11209[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]KIDNEY REC[/TD]
[TD]FALSE[/TD]
[TD]3/13/2014[/TD]
[TD]3/13/2014[/TD]
[TD]9/5/2014[/TD]
[TD]LSMII[/TD]
[TD]579540[/TD]
[TD][/TD]
[TD]#VALUE![/TD]
[TD]#VALUE![/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]11209[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]KIDNEY REC[/TD]
[TD]FALSE[/TD]
[TD]3/13/2014[/TD]
[TD]3/13/2014[/TD]
[TD]6/1/2014[/TD]
[TD]LSMI[/TD]
[TD]579539[/TD]
[TD][/TD]
[TD]#VALUE![/TD]
[TD]#VALUE![/TD]
[TD]No[/TD]
[/TR]
</tbody>[/TABLE]

I need help with the third and the fourth row scenario… (third row) Result was not reported(L is blank) and test is not overdue yet(L-I<21 days)..should return(Not Reported & Not OverDue)

And (forth row) result was not reported (L is Blank) and test is overdue(L-I >21 days)... should return(Not Reported & OverDue)

If result was not reported today's date is used to calculate Days2SignOff.


Thanks
 
Last edited:

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi Lenna, Not sure if I followed the description correctly as I see you had all the conditions set up correctly, you just needed to update the text results.
This is what I changed it to...

=IF(ISBLANK(L4),IF(TODAY()-I4+1>21,"Not Reported & Overdue","Not Reported & Not Overdue"),IF(M4>21,"Overdue",IF(M4=21,"On Time","Early")))


Let me know if this is what you need.
Matei.
 
Upvote 0

Forum statistics

Threads
1,214,382
Messages
6,119,194
Members
448,874
Latest member
Lancelots

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