Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Nat Nat is offline
external usenet poster
 
Posts: 47
Default Performing calculations on only cells with data

I have a worksheet which has a column called File date and another column
called response due which I would like to calculate based on the File Date
column. The request is to add 30 days to the File Date column. I looked up
the followin function in an excle book
=DATE(YEAR(D3),MONTH(D3)+1,DAY(D3))

My question is how do I only bring back values only for the cells with data.
As it stands now, there are blank cells and it brings back 1/31/1900 anyhow.
I think I need to add an If argument but am not sure how to format if I do.

I tried the following
=ISTEXT(D3),DATE(YEAR(D3),MONTH(D3)+1,DAY(D3),"") but that got an argument
error.

Thanks in advance ..
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Performing calculations on only cells with data

Try:

=IF(ISBLANK(D3),"",DATE(YEAR(D3),MONTH(D3)+1,DAY(D 3)))

HTH

"Nat" wrote:

I have a worksheet which has a column called File date and another column
called response due which I would like to calculate based on the File Date
column. The request is to add 30 days to the File Date column. I looked up
the followin function in an excle book
=DATE(YEAR(D3),MONTH(D3)+1,DAY(D3))

My question is how do I only bring back values only for the cells with data.
As it stands now, there are blank cells and it brings back 1/31/1900 anyhow.
I think I need to add an If argument but am not sure how to format if I do.

I tried the following
=ISTEXT(D3),DATE(YEAR(D3),MONTH(D3)+1,DAY(D3),"") but that got an argument
error.

Thanks in advance ..

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 130
Default Performing calculations on only cells with data

Use an if then else type function such as the following:

=IF(D3="","",DATE(YEAR(D3),MONTH(D3)+1,DAY(D3))

Note, your DATE function was attempting to use one too many arguments. For
conditional things like this, you have to use the IF, THEN, ELSE function to
get what you are looking for when writing formula.

Ronald R. Dodge, Jr.
Master MOUS 2000

"Nat" wrote in message
...
I have a worksheet which has a column called File date and another column
called response due which I would like to calculate based on the File Date
column. The request is to add 30 days to the File Date column. I looked
up
the followin function in an excle book
=DATE(YEAR(D3),MONTH(D3)+1,DAY(D3))

My question is how do I only bring back values only for the cells with
data.
As it stands now, there are blank cells and it brings back 1/31/1900
anyhow.
I think I need to add an If argument but am not sure how to format if I
do.

I tried the following
=ISTEXT(D3),DATE(YEAR(D3),MONTH(D3)+1,DAY(D3),"") but that got an
argument
error.

Thanks in advance ..



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Nat Nat is offline
external usenet poster
 
Posts: 47
Default Performing calculations on only cells with data

Thanks that was perfect. I knew it was something similar. Thanks a bunch.

Nat

"Toppers" wrote:

Try:

=IF(ISBLANK(D3),"",DATE(YEAR(D3),MONTH(D3)+1,DAY(D 3)))

HTH

"Nat" wrote:

I have a worksheet which has a column called File date and another column
called response due which I would like to calculate based on the File Date
column. The request is to add 30 days to the File Date column. I looked up
the followin function in an excle book
=DATE(YEAR(D3),MONTH(D3)+1,DAY(D3))

My question is how do I only bring back values only for the cells with data.
As it stands now, there are blank cells and it brings back 1/31/1900 anyhow.
I think I need to add an If argument but am not sure how to format if I do.

I tried the following
=ISTEXT(D3),DATE(YEAR(D3),MONTH(D3)+1,DAY(D3),"") but that got an argument
error.

Thanks in advance ..

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
Performing a function on visible cells only in a range creative Excel Discussion (Misc queries) 2 April 9th 07 05:14 PM
Calculations of cells Lasse Excel Discussion (Misc queries) 6 February 26th 07 04:35 PM
Help on performing calculations on formula results AussieExcelUser Excel Worksheet Functions 3 March 14th 06 08:01 AM
Calculations on Only Unhidden Data Cells dcotejr Excel Discussion (Misc queries) 1 October 3rd 05 05:35 PM
performing least squares Darius Blaszijk Excel Discussion (Misc queries) 5 March 19th 05 07:25 PM


All times are GMT +1. The time now is 08:40 PM.

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

About Us

"It's about Microsoft Excel"