Solved

How do I write a special date formula in Excel?

Posted on 2014-09-24
6
209 Views
Last Modified: 2014-10-03
How do I write a special date formula in Excel?  
If cell C2 = "Y" I would like today's date plus 15 days to be automatically entered into cell C10.

I am guessing that it would be something like: =If (C2 = 'Y') then C10=TODAY()+15

Also, where do I put the formula?  I looked at the Conditional Formatting area but it seems to be available for changing the color of the cell.

Let's say that today is: March 5, 2014.  A project listed on C1 was completed today and a completion notice has been placed into cell C2: "Yes".  The user should send an email notice to John immediately letting him know that step 2 should be sent out 15 days after the project is finished.  Therefore, I want the system to automatically enter "3/20/2014" into cell C10.

Any assistance that you can give will be appreciated.  

Thank you.
0
Comment
Question by:sherman6789
6 Comments
 
LVL 18

Accepted Solution

by:
Jerry Miller earned 300 total points
ID: 40342839
You don't want to do the TODAY or NOW function here because it will always be updating to the current date + 15 days. You want to use the original cell value + 15.

Put this formula in C10.

=If (C2 = 'Y', C10=C1+15)

Here is a reference:
http://www.techonthenet.com/excel/formulas/if.php
0
 
LVL 18

Assisted Solution

by:Jerry Miller
Jerry Miller earned 300 total points
ID: 40342842
0
 
LVL 40

Assisted Solution

by:Kyle Abrahams
Kyle Abrahams earned 100 total points
ID: 40342850
This would go in C10
=IF(C2="Y", Today()+15, Today())

Be sure to format the cell (c10) as a date.
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 1

Assisted Solution

by:Joe Mika
Joe Mika earned 100 total points
ID: 40342868
Jerry is right, if you use today each time the spreadsheet is opened it will update.

You may want to put completion date in C3 or somewhere, and mark that and C10 as date cells, then you could do
=IF(C2="y",C3+15,"N/A")
0
 

Author Comment

by:sherman6789
ID: 40353468
Thanks everyone for your suggestions and comments.  I had to go out of town for the job.  Since I am back I will work on updating and testing the project.  I will end the thread soon.

This is great.

Thanks again.

-sherman6789
0
 

Author Closing Comment

by:sherman6789
ID: 40360207
Thanks for your answers.  They are all helping us on our projects.

-sherman6789
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now