If statement

shiraz50

New Member
Joined
Jan 16, 2023
Messages
28
Office Version
  1. 365
Platform
  1. Windows
Hi Team

I need some help. No of days

No of days : Column FU : IF column FS8 has a date then FU must show the number of days from FS8-N8 however if FS8 = blank then look into FT8 to see if if is > than Today & N8 , if so then FT8-N8
Delivery status : Column FV : If column FS8 has a date then DIFFERENECE BETWEEN FS8 - N8 NEEDS TO SAY "Delivered late" , Delivered Early , IF NOT THEN LOOK INTO column FT8 - N8 TO GIVE A STATUS OF Delivered late" , Delivered Early.

1708602466148.png
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Try these

FU:
Excel Formula:
=IF(FS8>0,(N8-FS8),IF(AND(FT8>TODAY(),FT>N8),FT8-N8,FALSE)
NOTE: You don't have an action for when the last IF resolves to FALSE.

FV
Excel Formula:
=IF(FS8>0,
Choose(SIGN(FS8-N8)+2,"Delivered Early","Delivered On Time","Delivered Late")
Choose(SIGN(FT8-N8)+2,"Delivered Early","Delivered On Time","Delivered Late"))


Book1
NFSFTFU
82024-02-012024-02-03Delivered Late-2
92024-02-01Delivered Late-2
102024-02-012024-01-31Delivered Early1
112024-02-012024-02-03Delivered Late-2
122024-02-01Delivered Late-2
132024-02-012024-01-31Delivered Early1
142024-02-012024-02-03Delivered Late-2
152024-02-01Delivered Late-2
162024-02-012024-01-31Delivered Early1
172024-02-012024-02-01Delivered On Time0
182024-02-012024-02-01Delivered On Time0
192024-02-012024-02-01Delivered On Time0
Sheet1
Cell Formulas
RangeFormula
FT8:FT19FT8=IF(FS8>0, CHOOSE(SIGN(FS8-N8)+2,"Delivered Early","Delivered On Time","Delivered Late"), CHOOSE(SIGN(FT8-N8)+2,"Delivered Early","Delivered On Time","Delivered Late"))
FU8:FU19FU8=IF(FS8>0,N8-FS8,IF(AND(FT8>TODAY(),FT8>N8),FT8-N8))
 
Last edited:
Upvote 0
Solution
Hi .

I changed the method. It works though. Thanks for the help.

1708698642899.png
 
Upvote 0

Forum statistics

Threads
1,215,124
Messages
6,123,184
Members
449,090
Latest member
bes000

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