A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

#value! for calculating date



 
 
Thread Tools Display Modes
  #1  
Old April 27th, 2007, 12:00 AM posted to microsoft.public.excel.worksheet.functions
NANGO
external usenet poster
 
Posts: 17
Default #value! for calculating date

I have a quote template with calculates a "quote valid until" date based on
adding 30 days to the date of the quote.

The issue I have is that if the quote date isn't entered in, I get a #VALUE!
in that cell because it has nothing to calculate the formula on.

Do you have any work arounds for this?

I can't have the quote date automatically filled in because it changes
everytime you reopen the quote.
  #2  
Old April 27th, 2007, 12:46 AM posted to microsoft.public.excel.worksheet.functions
Dave Peterson
external usenet poster
 
Posts: 19,791
Default #value! for calculating date

=if(a1="","",a1+30)
or
=if(a1="","Please enter a date in A1",a1+30)



NANGO wrote:

I have a quote template with calculates a "quote valid until" date based on
adding 30 days to the date of the quote.

The issue I have is that if the quote date isn't entered in, I get a #VALUE!
in that cell because it has nothing to calculate the formula on.

Do you have any work arounds for this?

I can't have the quote date automatically filled in because it changes
everytime you reopen the quote.


--

Dave Peterson
  #3  
Old April 27th, 2007, 12:49 AM posted to microsoft.public.excel.worksheet.functions
Pete_UK
external usenet poster
 
Posts: 8,780
Default #value! for calculating date

You could try something like:

=IF(A1="","","Quote valid until "&TEXT(A1+30,"dd/mm/yyyy"))

where A1 contains your quote date - adjust as required.

Hope this helps.

Pete

On Apr 27, 12:00 am, NANGO wrote:
I have a quote template with calculates a "quote valid until" date based on
adding 30 days to the date of the quote.

The issue I have is that if the quote date isn't entered in, I get a #VALUE!
in that cell because it has nothing to calculate the formula on.

Do you have any work arounds for this?

I can't have the quote date automatically filled in because it changes
everytime you reopen the quote.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:23 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.