Choose Weekday

Papi

Well-known Member
Joined
May 22, 2007
Messages
1,592
Cell A1 represents the first day of the month. Cell B4 needs to be the first day of that particular month but must be a weekday i.e. Monday to Friday and not weekends. This is the closest I got but it does not work. =CHOOSE(WEEKDAY(A1),0,0,1,0,1,0,2)+A1

Any help would be greatly appreciated.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Using WEEKDAY a Sunday is 1 through to 7 for a Saturday, so given that you want to add 1 to a Sunday and 2 to a Saturday that should be

=CHOOSE(WEEKDAY(A1),1,0,0,0,0,0,2)+A1

or if you don't mind using Analysis ToolPak functions you can use WORKDAY, i.e.

=WORKDAY(A1-1,1)
 
Upvote 0
Thanks very much Barry for a very quick response and two perfect solutions. My splitting headache (and somewhat limited skills) would not allow me to hone in closer to what you produced. Again...thanks.
 
Upvote 0
I forgot to mention, I appreciate your expalantion on how the weekday works. That really helped as well.
 
Upvote 0

Forum statistics

Threads
1,224,613
Messages
6,179,903
Members
452,948
Latest member
Dupuhini

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