#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 31
Default isblank

I am trying to enter a formula to calculate a date 30 days later in cell b1
only if cell a1 has a date. If cell a1 does not have a date then leave b1
blank. I am getting a return date of 30-Jan-00 when cell a1 is blank. I don't
understand why 30-Jan-00 comes up. This is the formula that I am using:

=IF(ISBLANK(A1),"",IF(COUNT(A1+30),A1+30,""))

Thank you in advance for your help.
Eileen

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default isblank

Your function seems to work for me (the logic part). Right-click on the cell
that reads '30-Jan-00' then select an appropriate format...perhaps General,
Date, or Custom. Try different scenarios until you get what you want.


Regards,
Ryan---

--
RyGuy


"Eileen" wrote:

I am trying to enter a formula to calculate a date 30 days later in cell b1
only if cell a1 has a date. If cell a1 does not have a date then leave b1
blank. I am getting a return date of 30-Jan-00 when cell a1 is blank. I don't
understand why 30-Jan-00 comes up. This is the formula that I am using:

=IF(ISBLANK(A1),"",IF(COUNT(A1+30),A1+30,""))

Thank you in advance for your help.
Eileen

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Bob is offline
external usenet poster
 
Posts: 972
Default isblank

=IF(ISBLANK(a1),"",DATE(YEAR(a1),MONTH(a1), DAY(a1)+30))

"Eileen" wrote:

I am trying to enter a formula to calculate a date 30 days later in cell b1
only if cell a1 has a date. If cell a1 does not have a date then leave b1
blank. I am getting a return date of 30-Jan-00 when cell a1 is blank. I don't
understand why 30-Jan-00 comes up. This is the formula that I am using:

=IF(ISBLANK(A1),"",IF(COUNT(A1+30),A1+30,""))

Thank you in advance for your help.
Eileen

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default isblank

=IF(A1="","",A1+30)
--
David Biddulph

"Eileen" wrote in message
...
I am trying to enter a formula to calculate a date 30 days later in cell b1
only if cell a1 has a date. If cell a1 does not have a date then leave b1
blank. I am getting a return date of 30-Jan-00 when cell a1 is blank. I
don't
understand why 30-Jan-00 comes up. This is the formula that I am using:

=IF(ISBLANK(A1),"",IF(COUNT(A1+30),A1+30,""))

Thank you in advance for your help.
Eileen



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default isblank

The only way that your formula could return 30-Jan-00 is if A1 contains a
number =0, <1 or the logical value FALSE.

If A1 is empty or contains a formula blank ("") the result will be "".

Maybe A1 contains 0 but you have 0 display turned off: ToolsOptionsView
tabZero display.

Try this (assuming that only true Excel dates are to be entered in A1):

=IF(AND(COUNT(A1),A10),A1+30,"")


--
Biff
Microsoft Excel MVP


"Eileen" wrote in message
...
I am trying to enter a formula to calculate a date 30 days later in cell b1
only if cell a1 has a date. If cell a1 does not have a date then leave b1
blank. I am getting a return date of 30-Jan-00 when cell a1 is blank. I
don't
understand why 30-Jan-00 comes up. This is the formula that I am using:

=IF(ISBLANK(A1),"",IF(COUNT(A1+30),A1+30,""))

Thank you in advance for your help.
Eileen



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ISBLANK() kw_uh97 Excel Worksheet Functions 8 June 30th 07 06:42 AM
isBlank() alex Excel Worksheet Functions 6 February 8th 07 10:33 PM
ISBLANK Gimpy815 Excel Worksheet Functions 2 February 24th 06 06:09 PM
IF(ISBLANK) Bill R Excel Worksheet Functions 4 August 13th 05 07:43 PM
If(ISBLANK) Bill R Excel Worksheet Functions 1 August 13th 05 05:56 PM


All times are GMT +1. The time now is 04:00 PM.

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

About Us

"It's about Microsoft Excel"