Formula Returning FALSE instead of date

MrCameronExcel

New Member
Joined
Apr 21, 2017
Messages
43
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am using a formula to come up with a date based on cells above.

The formula in cell N5 is below. The formula should return +0.5 days after the last workday from 2 rows above (either in column S or U), while excluding holidays and weekends.

This same formula worked in N4. For some reason it is returning a FALSE and not a date in N5. It should be returning 18/01/23.


=IF(U3="",IF(WEEKDAY(S3+0.5)=7,WORKDAY(S3,1,Holidays!$A$5:$BS$5),IF(IF(ISNUMBER(MATCH(S3+0.5,Holidays!$A$5:$BS$5,0)),1,0)=1,WORKDAY(S3,1,Holidays!$A$5:$BS$5),IF(CELLISDATE(S3),S3+0.5,

IF(WEEKDAY(U3+0.5)=7,WORKDAY(U3,1,Holidays!$A$5:$BS$5),IF(IF(ISNUMBER(MATCH(U3+0.5,Holidays!$A$5:$BS$5,0)),1,0)=1,WORKDAY(U3,1,Holidays!$A$5:$BS$5),U3+0.5))))))



NOPQRSTU
1
Large Lounge
Small Lounge
Bedroom 1Bedroom 2Bedroom 3KitchenWCBathroom
216/01/2316/01/2317/01/2317/01/2318/01/2318/01/23
316/01/2316/01/2317/01/2317/01/2318/01/23
419/01/2319/01/2320/01/23
5FALSE#Value!#Value!#Value!#Value!#Value!#Value!

Any ideas?

Thanks for looking
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
SOLVED.

I Just needed to close of the second IF statement prior to the second line.

=IF(U3="",IF(WEEKDAY(S3+0.5)=7,WORKDAY(S3,1,Holidays!$A$5:$BS$5),IF(IF(ISNUMBER(MATCH(S3+0.5,Holidays!$A$5:$BS$5,0)),1,0)=1,WORKDAY(S3,1,Holidays!$A$5:$BS$5),IF(CELLISDATE(S3),S3+0.5,))),

IF(WEEKDAY(U3+0.5)=7,WORKDAY(U3,1,Holidays!$A$5:$BS$5),IF(IF(ISNUMBER(MATCH(U3+0.5,Holidays!$A$5:$BS$5,0)),1,0)=1,WORKDAY(U3,1,Holidays!$A$5:$BS$5),U3+0.5)))
 
Upvote 0
Solution
Just curious, do you have a UDF for CELLISDATE ? It is not an actual Excel function and gives a #NAME? error on my machine.
You have MS365 and I think you could simplify the function using the LET statement but you don't seem to have an option for the FALSE component of "IF(CELLISDATE(S3)"

Your formula formatted looks like this:
Rich (BB code):
=IF(U3="",
        IF(WEEKDAY(S3+0.5)=7,
            WORKDAY(S3,1,Holidays!$A$5:$BS$5),
            IF( IF( ISNUMBER(MATCH(S3+0.5,Holidays!$A$5:$BS$5,0)),1,0)=1,
                  WORKDAY(S3,1,Holidays!$A$5:$BS$5),
                  IF(CELLISDATE(S3),S3+0.5,))),
         IF(WEEKDAY(U3+0.5)=7,
             WORKDAY(U3,1,Holidays!$A$5:$BS$5),
             IF( IF( ISNUMBER(MATCH(U3+0.5,Holidays!$A$5:$BS$5,0)),1,0)=1,
                  WORKDAY(U3,1,Holidays!$A$5:$BS$5),
                  U3+0.5)))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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