If Statement

eramirez148

Board Regular
Joined
Aug 17, 2022
Messages
66
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
  5. 2013
  6. 2011
  7. 2010
Platform
  1. Windows
  2. MacOS
How can I make a cell read from Wednesday to Wednesday from todays date.
For example once cell will show todays dates. Let's say today is Tuesday 08/20/2024 the the next cell should read the Wednesday prior 08/14/2024. Once today's date hits the Wednesday of the week lest say 08/21/2024, then the next cell should read that Wednesday 08/21/2024 as well. See examples below.

Todays Date
Tuesday, August 20, 2024​
Current OSD
Wednesday, August 14, 2024​
Todays Date
Wednesday, August 21, 2024​
Current OSD
Wednesday, August 21, 2024​
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Use the formula below. It does not incorporate today's date but it refers to the cell with today's date. You could directly use TODAY() in the formula if you prefer.

$scratch.xlsm
AB
1Today's DateTuesday, August 20, 2024
2Current or prior WednesdayWednesday, August 14, 2024
Sheet2
Cell Formulas
RangeFormula
B2B2=B1-WEEKDAY(B1,13)+1


Here's what it will look like tomorrow:

$scratch.xlsm
AB
1Today's DateWednesday, August 21, 2024
2Current or prior WednesdayWednesday, August 21, 2024
Sheet2
Cell Formulas
RangeFormula
B2B2=B1-WEEKDAY(B1,13)+1
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
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