Help with

amac

New Member
Joined
Nov 15, 2005
Messages
5
How can we use the Text's Weekly Montly Quarterly and Yearly to calculate and show a date for our new Maintenance. For example if our Date is 11/11/05 and we ad the Text Monthly we should have as our NEW date of Maintenance 12/11/05. We are trying to use the Text's in a list as well.


Cell A1 11/11/05
Cell A2 (list of text ie Weekly, Monthly, quarterly Yearly)
Cell A3 The result shown in ddmmyyyy format

So far we have Define the Text as Numerical values but end up with Errors when using the A3 =SUM(A2+A1) formula


Thanks for any help
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Using EDATE from Analysis ToolPak

=IF(A2="weekly",A1+7,EDATE(A1,LOOKUP(A2,{"monthly","quarterly","yearly";1,3,12})))

format as date

or without that addin, an alternative...

=IF(A2="weekly",A1+7,DATE(YEAR(A1),MONTH(A1)+LOOKUP(A2,{"monthly","quarterly","yearly";1,3,12}),DAY(A1)))
 
Upvote 0

Forum statistics

Threads
1,214,947
Messages
6,122,413
Members
449,082
Latest member
tish101

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