# Help with Text and Dates

#### amac

##### New Member
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

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
This is one way.

=A1+IF(B1="Weekly",7,IF(B1="Monthly",30,IF(B1="Quarterly",90,IF(B1="Yearly",365,0))))

Thanks! This works GREAT , When importing this sheet into ACCESS will these functions work as well?

Amac

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.

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

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.

Thanks I'll Try

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

Replies
7
Views
482
Replies
1
Views
144
Replies
1
Views
81
Replies
6
Views
419
Replies
4
Views
131

1,196,474
Messages
6,015,427
Members
441,893
Latest member
vjciletti

### 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.

### Which adblocker are you using?

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

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