autodate

bohon79

New Member
Joined
Jul 2, 2015
Messages
45
Hello,

I have a sheet with multiple columns with data in it. in one column(lets say a2) I have a text (USMC, usaf, usa, usn), then in another column have a date (lets say b2). trying to get a future date (lets say c2), (30, 60 or 90 days later) in another column (lets say d2) if the text in a2 equals one of those text.

the reason is there will be different dates for each one.

thanks
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
I am not quite clear on the correlation between d2 and a2.
Do you only want the future date if d2=a2?
And how it is determined how many days to add to the date in b2 (you said 30,60,90 - so how do we know which one we should be using)?
 
Upvote 0
so basically if

a2=USMC
b2 has a date of 12 may 18
c2 would have a date of 12 jun 18 (30 days later)

or

a2=usa
b2 has a date of 12 may 18
c2 would have a date of 12 aug 18 (90 days later)
 
Upvote 0
In C2:
=B2 + IF(A2="USMC",30,IF(A2="usa",90,0)
 
Upvote 0

Forum statistics

Threads
1,223,956
Messages
6,175,607
Members
452,660
Latest member
Zatman

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