GET THE "DATE" OF THE "NEXT" DAY OF THE WEEK

JuicyMusic

Board Regular
Joined
Jun 13, 2020
Messages
210
Office Version
  1. 365
Platform
  1. Windows
Help please,
How do I write the formula to get me the date of the NEXT WEDNESDAY OR FRIDAY OF ANY DATE? I've tried for an hour.


1) Column A has a specific date - Column B shows the DAY of that date.
2) Column C has a formula based on 2 criteria - and the results will always either be "Friday" or "Wednesday".

Criteria 1 for the formula in column C: For batches made on Saturday, Sunday, Monday, and/or Tuesday, taxes must be “settled” by the following Friday.
Criteria 2 for the formula in column C: For batches posted on Wednesday, Thursday, and/or Friday, taxes must be “settled” by the following Wednesday.

Formula in Column C:
Excel Formula:
=IF(A3="","",
IF(OR(B3="Wednesday",B3="Thursday",B3="Friday"),"Wednesday","Friday"))


I'm sorry that I'm not allowed to insert the XL2BB. My company won't let me. Thank you so much in advance.
 

Attachments

  • Capture_sample date columns.PNG
    Capture_sample date columns.PNG
    11.7 KB · Views: 6

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Upvote 0
Solution
How about:

Book1
ABCD
1Schedule B
2Pay DateDay of WeekNext "Must be settled by" DayNext "Must be settled by" date
34/1/2021ThursdayWednesday4/7/2021
44/2/2021FridayWednesday4/7/2021
54/5/2021MondayFriday4/9/2021
64/6/2021TuesdayFriday4/9/2021
74/8/2021ThursdayWednesday4/14/2021
84/9/2021FridayWednesday4/14/2021
94/10/2021SaturdayFriday4/16/2021
Sheet6
Cell Formulas
RangeFormula
B3:B9B3=TEXT(A3,"dddd")
C3:C9C3=TEXT(D3,"dddd")
D3:D9D3=A3+CHOOSE(WEEKDAY(A3),5,4,3,7,6,5,6)
Well, that is the most interesting formula for dates I've ever seen. Absolutely neat and PERFECT RESULTS! SOLVED!
I'm reading it right now to understand it and get familiar with it. TY!
 
Upvote 0
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,279
Members
449,075
Latest member
staticfluids

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