IFS Statement issues

iosiflupis

New Member
Joined
Jan 26, 2022
Messages
39
Office Version
  1. 365
Platform
  1. Windows
Hello all,

I am working on a spreadsheet that uses the following columns: Scheduled Departure Time (HH:MM), Actual Departure Time (HH:MM) to calculate Departure Delay (Act - Sched). Using that calculated column I am trying to have a column that will tell me Early, Late, On-Time or Cancelled depending on the results in the Departure Delay column.

I have this IFS statement but cannot get it to recognize either a blank cell or a cell with Null in it to return Cancelled. =IFS([@[Departure Delay]]<0,"Early",[@[Departure Delay]]=0,"On-Time",[@[Departure Delay]]>0,"Late")
I have tried this as =IFS([@[Departure Delay]]<0,"Early",[@[Departure Delay]]=0,"On-Time",[@[Departure Delay]]>0,"Late",[@[Departure Delay]]=Null,"Cancelled")

I think that even if the cells are blank they are filled with an invisible 0. Some of the cells in the Departure Delay column are calculated to 0 and should show as On-Time.

What have I not seen?

Thank you all
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Try this -

IFS need to end with a true Value

Thus either use this

Excel Formula:
=IFS([@[Departure Delay]]<0,"Early",[@[Departure Delay]]=0,"On-Time",[@[Departure Delay]]>0,"Late",[@[Departure Delay]]="","Cancelled",True,"")

or this

Excel Formula:
=IFS([@[Departure Delay]]<0,"Early",[@[Departure Delay]]=0,"On-Time",[@[Departure Delay]]>0,"Late",True,"Cancelled")
 
Upvote 0
Yppu need to check for a blank cell 1st
Excel Formula:
=IFS([@[Departure Delay]]="","Cancelled",[@[Departure Delay]]<0,"Early",[@[Departure Delay]]=0,"On-Time",[@[Departure Delay]]>0,"Late")
 
Upvote 0
Solution
Yppu need to check for a blank cell 1st
Excel Formula:
=IFS([@[Departure Delay]]="","Cancelled",[@[Departure Delay]]<0,"Early",[@[Departure Delay]]=0,"On-Time",[@[Departure Delay]]>0,"Late")
Just for my understanding, does the above formula don't need a true value to complete IFS statement?

Thanks a lot
 
Upvote 0
Thank you both, I used the formula that checked the blank first. Evidently, you do not have to have a true statement at the end.

have a wonderful day!
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,109
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