IFS with OR Formula not working

Excellent022

New Member
Joined
May 15, 2020
Messages
22
Office Version
  1. 365
Platform
  1. Windows
I have a deliverable tracker that I need to update in include "unpaid" as a final status. My spreadsheet worked with the following formula:
=IFS([@[Deliverable Accepted 1?]]="","Pending",[@[Deliverable Accepted 1?]]="N/A","N/A",OR([@[Deliverable Accepted 1?]]="Yes",[@[Deliverable Accepted 2?]]="Yes",[@[Deliverable Accepted 3?]]="Yes"),"Yes",OR([@[Deliverable Accepted 1?]]="Monitor",[@[Deliverable Accepted 2?]]="Monitor",[@[Deliverable Accepted 3?]]="Monitor"),"Monitor",[@[Deliverable Accepted 1?]]="No","No")

However, when I added "unpaid" as a data validation list option to the last Deliverable status column (Deliverable Accepted 1?) and updated to formula to the following, it keeps the result cell "no".

=IFS([@[Deliverable Accepted 1?]]="","Pending",[@[Deliverable Accepted 1?]]="N/A","N/A",OR([@[Deliverable Accepted 1?]]="Yes",[@[Deliverable Accepted 2?]]="Yes",[@[Deliverable Accepted 3?]]="Yes"),"Yes",OR([@[Deliverable Accepted 1?]]="Monitor",[@[Deliverable Accepted 2?]]="Monitor",[@[Deliverable Accepted 3?]]="Monitor"),"Monitor",OR([@[Deliverable Accepted 1?]]="No",[@[Deliverable Accepted 2?]]="No",[@[Deliverable Accepted 3?]]="No"),"No",[@[Deliverable Accepted 3?]]="Unpaid","Unpaid")

Here's what my new formula returns:

Final StatusDeliverable Accepted 1?Deliverable Accepted 2?Deliverable Accepted 3?
YesNoNoYes
NoNoNoNo
MonitorNoMonitor
NoNoNoUnpaid
MonitorMonitorMonitorUnpaid
 
Glad we could help. It's always good to show us a sample that has the characteristics of your real data. We are generally looking for patterns and data types.
Hi Alex. I tried to use this xlookup in an almost identical workbook and it's not working. Can you help me figure out why? I can't upload a mini-sheet but here's a picture of an example row. The right-most "episode 1/2/3/etc." column with data is what I want. The data will always be a date. I tried changing the formula by replacing the search term but there's no return value. Though no error either. I'm guessing it's the fact that it's not text?


IDFirst NameLast NameCoAgencyAgency2StatusMost Recent EpisodeEpisode1AmountPercentStatusActionAuditEpisode2AmountPercentStatusActionAuditEpisode3AmountPercentStatusActionAuditEpisode4AmountPercentStatusActionAuditEpisode5AmountPercentStatusActionAuditTerminatedNotesFinal Action
Need formula here
 
Upvote 0

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
If the date field is always going to be blank or a date then something like this should work:
Excel Formula:
=XLOOKUP(1,(LEFT($I$1:$AO$1,7)="Episode")*($I2:$AO2<>""),$I2:$AO2,"",0,-1)

If there is sometimes text in the Episode columns and you only want to return it if it is an actual date you could try:
Excel Formula:
=XLOOKUP(1,(LEFT($I$1:$AO$1,7)="Episode")*(ISNUMBER($I2:$AO2)),$I2:$AO2,"",0,-1)
 
Upvote 0
If the date field is always going to be blank or a date then something like this should work:
Excel Formula:
=XLOOKUP(1,(LEFT($I$1:$AO$1,7)="Episode")*($I2:$AO2<>""),$I2:$AO2,"",0,-1)

If there is sometimes text in the Episode columns and you only want to return it if it is an actual date you could try:
Excel Formula:
=XLOOKUP(1,(LEFT($I$1:$AO$1,7)="Episode")*(ISNUMBER($I2:$AO2)),$I2:$AO2,"",0,-1)
Yes it'll always be blank or have a date. It's so weird, it accepts the formula but it just returns a blank cell. I double checked the formatting.
 
Upvote 0
Yes it'll always be blank or have a date. It's so weird, it accepts the formula but it just returns a blank cell. I double checked the formatting.
I found the issue and now it works. Thanks again! If you had any interest in helping to figure out one more formula for the Status column, I'd be very grateful.
 
Upvote 0
If it is similar then post it here otherwise you are better off starting a new thread.
I think it's similar. In the Status column to the left of the one you just figured out, I need a 1, 2, 3, 4, or 5 populated depending on how far in the series of episodes someone gets. For example, if there is a date in each of the first three episode columns, I need the status column to have a 3. All five columns = 5,
 
Upvote 0
See if this does what you need:
Excel Formula:
=XLOOKUP(1,(LEFT($I$1:$AO$1,7)="Episode")*($I2:$AO2<>""),--RIGHT($I$1:$AO$1,1),"",0,-1)
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,155
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