conditional sunday formula

apgmin

Board Regular
Joined
Mar 1, 2010
Messages
143
Office Version
  1. 2013
Platform
  1. Windows
COLUMN A COLUMN B
START OF CLASSES6-Aug-18
EMAIL OF LIST OF PROMOTED STUDENTS OR NEW STUDENTS5-Aug-18

<tbody>
</tbody>

<tbody>
</tbody>

In the above example Cell B2 has the formula B2-1
I want it to change to B2-1+1 if the value of B2-1 is sunday
or B2-1+2 if B2-1 is saturday

<tbody>
</tbody>
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hello,

Excel 2016 (Windows) 32 bit
AB
1InfoTerm
2START OF CLASSES2018-08-06
3EMAIL OF LIST OF PROMOTED STUDENTS OR NEW STUDENTS2018-08-06

<tbody>
</tbody>
Arkusz1

Worksheet Formulas
CellFormula
B3=IF(WEEKDAY(B2-1,2)=7,B2,IF(WEEKDAY(B2-1,2)=6,B2+1,B2-1))

<tbody>
</tbody>

<tbody>
</tbody>


Note that B2-1+1 can be wrote as B2, and B2-1+2 can be wrote as B2+1. :)

P.s. Oh. You need to adjust date to your regional format, as YYYY-MM-DD is in my country and your excel might not understand this.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,545
Members
449,089
Latest member
davidcom

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