Formula using multiple criteria with dates and text to determine outcome and place in cell.

jmendenhall1960

New Member
Joined
Feb 14, 2012
Messages
41
Hello all,
Any help would be greatly appreciated.
Need a formula that will look at multiple cells to determine output.
In a nutshell I need to look to determine if my appointment times are exceeding time limits when I try to schedule.
This is code I am currently using for S2 =IF($D$1-R2>365,"over 1 yr","OK")

What I need know is more complex and way past my abilities, so any help would be greatly appreciated.
What I need to look at is this and not in any particular order.

If D2=I and L2=(”Carelink”,”Merlin”,Biotronic” or “Latitude” -any of these) and R2-365 >=D1 then “past due” in S2 otherwise “OK”

If D2=I and L2=(Blank or anything else) and R2-180 >=D1 then past due in S2 otherwise “OK”

If D2=P and L2=(”Carelink”,”Merlin”,Biotronic” or “Latitude” -any of these) and R2-560 >=D1 then “Past due” in S2 otherwise “OK”

If D2=P and L2=( Blank or anything else) and R2-365 >=D1 then “Past due” in S2 otherwise “OK”

Then IF there is anything other than a date in R2 then S2 leave blank

deviceexcellcodesample1.png
 

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)
Hi JMendenhall1960,

Try
=IF(NOT(ISNUMBER(R2)),"",IF(AND(D2="I",ISNUMBER(SEARCH(L2,"Carelink/Merlin/Biotronic/Latitude"))),IF(R2-365>=$D$1,"Past due","OK"),IF(D2="I",IF(R2-180>=$D$1,"Past due","OK"),IF(AND(D2="P",ISNUMBER(SEARCH(L2,"Carelink/Merlin/Biotronic/Latitude"))),IF(R2-560>$D$1,"Past due","OK"),IF(AND(D2="P",R2-365>=$D$1),"Past due","OK")))))
 
Upvote 0
JMendenhall1960,

A small change and here's my test harness.

JMendenhall1960.xlsx
DLRSTU
1January 1, 2020LS ClinicCondition Test
2ICarelink02-Jan-21Past dueIf D2=I and L2=(”Carelink”,”Merlin”,Biotronic” or “Latitude” -any of these) and R2-365 >=D1 then “past due” in S2 otherwise “OK”
3ILatitude01-Jan-20OK
4Idog28-Jun-20OKIf D2=I and L2=(Blank or anything else) and R2-180 >=D1 then past due in S2 otherwise “OK”
5I29-Jun-20Past due
6PMerlin15-Jul-21Past dueIf D2=P and L2=(”Carelink”,”Merlin”,Biotronic” or “Latitude” -any of these) and R2-560 >=D1 then “Past due” in S2 otherwise “OK”
7PBiotronic14-Jul-21OK
8PGoat30-Dec-20OKIf D2=P and L2=( Blank or anything else) and R2-365 >=D1 then “Past due” in S2 otherwise “OK”
9P31-Dec-20Past due
10ILatitude Then IF there is anything other than a date in R2 then S2 leave blank
11PMerlin 
Sheet1 (2)
Cell Formulas
RangeFormula
S2:S11S2=IF(NOT(ISNUMBER(R2)),"",IF(AND(D2="I",L2<>"",ISNUMBER(SEARCH(L2,"Carelink/Merlin/Biotronic/Latitude"))),IF(R2-365>=$D$1,"Past due","OK"),IF(D2="I",IF(R2-180>=$D$1,"Past due","OK"),IF(AND(D2="P",L2<>"",ISNUMBER(SEARCH(L2,"Carelink/Merlin/Biotronic/Latitude"))),IF(R2-560>$D$1,"Past due","OK"),IF(AND(D2="P",R2-365>=$D$1),"Past due","OK")))))
 
Upvote 0

Forum statistics

Threads
1,215,465
Messages
6,124,982
Members
449,201
Latest member
Lunzwe73

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