excel if statement + date

kelvin_9

Active Member
Joined
Mar 6, 2015
Messages
444
Office Version
  1. 2019
Hi All,

i'm trying to use one formula in my workbook with below criteria but i get some difficulties in this, anyone can help me out would be appreciated
assuming cell A1 is today, and i want C1 return date+1 / date+2 / date+3 if date in A1 is monday / tuesday / friday respectively.
last but not least, i will use this formula in VBA likely: Selection.AutoFill Destination:=Range("C1:C" & Range("A" & Rows.Count).End(xlUp).Row) finally.
my answer in this example in C1 should be 22 march, 2022

Book1
ABC
121 March, 2022 
Sheet1
Cell Formulas
RangeFormula
A1A1=TODAY()
C1C1=IF(A1="Monday","a1+1",IF(A1="Tuesday","a1+2",IF(A1="Friday","a1+3","")))


thank you very much
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
How about
Excel Formula:
=CHOOSE(WEEKDAY(A1,2),A1+1,A1+2,"","",A1+3,"","")
 
Upvote 0
How about
Excel Formula:
=CHOOSE(WEEKDAY(A1,2),A1+1,A1+2,"","",A1+3,"","")
Fluff
thank you very much for your great help and quick response
exactly what i want

i'm not very get this combination
just curious, what if i need one or two more criteria say: IF(A1="wednesday","a1+4", IF(A1="saturday","a1+5"
what should i change

thanks again
 
Upvote 0
How about
Excel Formula:
=CHOOSE(WEEKDAY(A1,2),A1+1,A1+2,A1+4,"",A1+3,A1+5,"")
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,915
Messages
6,122,214
Members
449,074
Latest member
cancansova

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