Formula Error

JOEE1979

Active Member
Joined
Dec 18, 2022
Messages
292
Office Version
  1. 365
Platform
  1. Windows
Not sure whats happening
but when I put yesterdays day as start and todays date as finish, the result is "Same day"

Thank you


Schedule 4 Tracker - Copy12313.xlsx
HIJK
6Actual StartActual FinishExpiry DateDuration (days)
730-Oct-2431-Oct-2431-Jan-24SAME DAY
2024
Cell Formulas
RangeFormula
J7J7=G7+30
K7K7=IF(IF(COUNTA(H7,I7)<>2,"",DAYS360(H7,I7,FALSE))=0,"SAME DAY",(IF(COUNTA(H7,I7)<>2,"",DAYS360(H7,I7,FALSE))))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
K7:K15Cell Value<=-1textNO
Cells with Data Validation
CellAllowCriteria
H7:I7List='Current Month'!$AL$26:$AL$29
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Not sure whats happening ....

There's no mystery here. Your formula returns "SAME DAY", because DAYS360(H7,I7)=0 in this case. What result were you expecting to see using DAYS360?

By the way, you could shorten your formula to:

Excel Formula:
=IF(COUNT(H7,I7)<>2,"",LET(d,DAYS360(H7,I7),IF(d=0,"SAME DAY",d)))
 
Upvote 0
Solution
There's no mystery here. Your formula returns "SAME DAY", because DAYS360(H7,I7)=0 in this case. What result were you expecting to see using DAYS360?

By the way, you could shorten your formula to:

Excel Formula:
=IF(COUNT(H7,I7)<>2,"",LET(d,DAYS360(H7,I7),IF(d=0,"SAME DAY",d)))
Thanks, BTW, I got that formula straight from a premade calendar in excel
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,250
Members
452,623
Latest member
Techenthusiast

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