Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Date functions and #value!

Normally I can hold my own when it comes to Excel, but I am drawing a blank
on this problem and after two days I'm going in circles and am overthinking.
Here is what I have
Column A has a date, which is linked to another spreadsheet, formula is:
=IF(ISBLANK('P:\[2009 COMEX CHART.xls]FEB'!$B7),"-",('P:\[2009 COMEX
CHART.xls]FEB'!$B7))
Column C should be the next business day, and was working fine, but if a
date is not in column A i get the dreaded #value!; column c's formula is:
=A34+IF(WEEKDAY(A34+1)=7,3,1)

My question is how can I get column C to stay blank if column A is blank. I
tried the isblank with the formula, but I must not be typing it correctly
because I get an error message that says I've entered too many arguments.

Thanks for the help.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Date functions and #value!

=if(a34="","",A34+IF(WEEKDAY(A34+1)=7,3,1))

Or maybe better:

=if(isnumber(a34),A34+IF(WEEKDAY(A34+1)=7,3,1),"")





SafetyIntern wrote:

Normally I can hold my own when it comes to Excel, but I am drawing a blank
on this problem and after two days I'm going in circles and am overthinking.
Here is what I have
Column A has a date, which is linked to another spreadsheet, formula is:
=IF(ISBLANK('P:\[2009 COMEX CHART.xls]FEB'!$B7),"-",('P:\[2009 COMEX
CHART.xls]FEB'!$B7))
Column C should be the next business day, and was working fine, but if a
date is not in column A i get the dreaded #value!; column c's formula is:
=A34+IF(WEEKDAY(A34+1)=7,3,1)

My question is how can I get column C to stay blank if column A is blank. I
tried the isblank with the formula, but I must not be typing it correctly
because I get an error message that says I've entered too many arguments.

Thanks for the help.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Date functions and #value!

Hi,

the problem is occuring because you return "-" if the cell is blank. To
handle this

change =A34+IF(WEEKDAY(A34+1)=7,3,1)

to
=IF(A34="-","",A34+IF(WEEKDAY(A34+1)=7,3,1))
--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"SafetyIntern" wrote:

Normally I can hold my own when it comes to Excel, but I am drawing a blank
on this problem and after two days I'm going in circles and am overthinking.
Here is what I have
Column A has a date, which is linked to another spreadsheet, formula is:
=IF(ISBLANK('P:\[2009 COMEX CHART.xls]FEB'!$B7),"-",('P:\[2009 COMEX
CHART.xls]FEB'!$B7))
Column C should be the next business day, and was working fine, but if a
date is not in column A i get the dreaded #value!; column c's formula is:
=A34+IF(WEEKDAY(A34+1)=7,3,1)

My question is how can I get column C to stay blank if column A is blank. I
tried the isblank with the formula, but I must not be typing it correctly
because I get an error message that says I've entered too many arguments.

Thanks for the help.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Date functions and #value!

This one worked like a charm...thank you so much

"Shane Devenshire" wrote:

Hi,

the problem is occuring because you return "-" if the cell is blank. To
handle this

change =A34+IF(WEEKDAY(A34+1)=7,3,1)

to
=IF(A34="-","",A34+IF(WEEKDAY(A34+1)=7,3,1))
--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"SafetyIntern" wrote:

Normally I can hold my own when it comes to Excel, but I am drawing a blank
on this problem and after two days I'm going in circles and am overthinking.
Here is what I have
Column A has a date, which is linked to another spreadsheet, formula is:
=IF(ISBLANK('P:\[2009 COMEX CHART.xls]FEB'!$B7),"-",('P:\[2009 COMEX
CHART.xls]FEB'!$B7))
Column C should be the next business day, and was working fine, but if a
date is not in column A i get the dreaded #value!; column c's formula is:
=A34+IF(WEEKDAY(A34+1)=7,3,1)

My question is how can I get column C to stay blank if column A is blank. I
tried the isblank with the formula, but I must not be typing it correctly
because I get an error message that says I've entered too many arguments.

Thanks for the help.

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
Date functions Dianethetech Excel Worksheet Functions 4 May 17th 07 04:31 PM
Date functions matchwalk Excel Worksheet Functions 5 March 28th 07 01:34 PM
Date Functions KA Madrigal-Young Excel Discussion (Misc queries) 1 January 24th 06 07:27 PM
Date Functions Bonniem Excel Discussion (Misc queries) 5 December 2nd 05 04:50 PM
Date functions excelpomoc Excel Worksheet Functions 2 September 14th 05 04:58 PM


All times are GMT +1. The time now is 02:15 AM.

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"