IF formula too many arguments

Alphacsulb

Active Member
Joined
Mar 20, 2008
Messages
414
=IF(A4<>"",IF(WEEKDAY(A4+10,2)=6,A4+12),IF(WEEKDAY(A4+10,2)=7,A4+11),IF(WEEKDAY(A4+10,2)>6,A4+10),"")

I'm getting "You've entered too many arguments for this function."

I'm trying to get this formula to say:

IF A4 is not blank then:
Check to see if A4+10 days is a Saturday, if it is then add 2 days,
If A4+10 is a Sunday then add 1 day,
If A+10 is a weekday then A4+10 days,
Otherwise leave it blank.

I'm sure its simple but cant figure out what is wrong.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Try
=IF(A4<>"",IF(WEEKDAY(A4+10,2)=6,A4+12,IF(WEEKDAY(A4+10,2)=7,A4+11,IF(WEEKDAY(A4+10,2)>6,A4+10,""))))
 
Upvote 0
Thanks!!

This worked:

=IF(A4<>"",IF(WEEKDAY(A4+10,2)=6,A4+12,IF(WEEKDAY(A4+10,2)=7,A4+11,IF(WEEKDAY(A4+10,2)>6,A4+10,""))),"")
 
Last edited:
Upvote 0
Glad you sorted it & thanks for the feedback
 
Upvote 0
This should work too:

=IF(A4="","",CHOOSE(WEEKDAY(A4+10),1,0,0,0,0,0,2)+A4+10)
 
Upvote 0
Hello Alphacsulb

I assumed the rest of Fluff’s formula is correct. If this is true, then all I did was to change the first ‘IF’. Will this work for you?
=IF(A4="","",IF(WEEKDAY(A4+10,2)=6,A4+12,IF(WEEKDAY(A4+10,2)=7,A4+11,IF(WEEKDAY(A4+10,2)>6,A4+10,""))))

TotallyConfused
 
Upvote 0

Forum statistics

Threads
1,214,528
Messages
6,120,065
Members
448,941
Latest member
AlphaRino

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