Help with Text and Dates

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

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
This is one way.

=A1+IF(B1="Weekly",7,IF(B1="Monthly",30,IF(B1="Quarterly",90,IF(B1="Yearly",365,0))))
 
Upvote 0
Thanks! This works GREAT , When importing this sheet into ACCESS will these functions work as well?

Amac

:lol:
 
Upvote 0
If you *import* into Access cells containing formulas become values. Access does not have cells with formulas, only text or numbers etc.

It is possible to do something similar in Access, but you would need to set up an Update Query and run it periodically.
 
Upvote 0
Thanks I'll Try

Being New to Acces I will your suggestion, I know I have to read up on Access a bit to get my program to run as it did in Excel
Thanks Again
 
Upvote 0
Hi amac:

In addition to BrianB's fine contribution, try the following ...

=IF(B2="Weekly",A2+7,IF(B2="Monthly",EDATE(A2,1),IF(B2="Quarterly",EDATE(A2,3),IF(B2="Yearly",EDATE(A2,12),0))))

this formula will take account for non 30_day months and non 365_day years.
 
Upvote 0
Thanks I'll Try

Thanks for the Information I will definitly try that as well. This will help greatly with our Maintenance Program...
 
Upvote 0

Forum statistics

Threads
1,224,798
Messages
6,181,038
Members
453,013
Latest member
Shubashish_Nandy

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