Return results based on days of the week

jeffdlinn

New Member
Joined
Nov 18, 2013
Messages
29
Office Version
  1. 365
Platform
  1. Windows
I have the following data in Column A. I'm trying to write a formula that looks at column A and will place the value of 1 in column b if the day of the week is not Tuesday or Wednesday.

so
Saturday, January 1, 2022 = 1
Sunday, January 2, 2022 = 1
Monday, January 3, 2022 = 1
Tuesday, January 4, 2022 = 0
Wednesday, January 5, 2022 = 0

Saturday, January 1, 2022
Sunday, January 2, 2022
Monday, January 3, 2022
Tuesday, January 4, 2022
Wednesday, January 5, 2022
Thursday, January 6, 2022
Friday, January 7, 2022
Saturday, January 8, 2022
Sunday, January 9, 2022
Monday, January 10, 2022
Tuesday, January 11, 2022
Wednesday, January 12, 2022
Thursday, January 13, 2022
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
=IF(AND(WEEKDAY(A1)<>3,WEEKDAY(A1)<>4),1,0) and copy down

Book11
AB
1Saturday, January 1, 20221
2Sunday, January 2, 20221
3Monday, January 3, 20221
4Tuesday, January 4, 20220
5Wednesday, January 5, 20220
6Thursday, January 6, 20221
7Friday, January 7, 20221
8Saturday, January 8, 20221
9Sunday, January 9, 20221
10Monday, January 10, 20221
11Tuesday, January 11, 20220
12Wednesday, January 12, 20220
13Thursday, January 13, 20221
Sheet2
Cell Formulas
RangeFormula
B1:B13B1=IF(AND(WEEKDAY(A1)<>3,WEEKDAY(A1)<>4),1,0)
 
Upvote 0
Bit late, but another option
Excel Formula:
=--(A1=WORKDAY.INTL(A1-1,1,"0110000"))
 
Upvote 0

Forum statistics

Threads
1,214,858
Messages
6,121,960
Members
449,057
Latest member
FreeCricketId

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