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

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
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,215,446
Messages
6,124,900
Members
449,194
Latest member
JayEggleton

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