#1   Report Post  
Annette
 
Posts: n/a
Default Date with links

My ss contains links to another spreadsheet. In col A are dates. I need to
add only those pieces of information that are valid dates and not include
the links, but I'm having a bit of difficulty. Here is the formula I used,
but I get #value error.

=SUMPRODUCT(--(MONTH(Burlington!$A$2:$A$201)=10),--(YEAR(Burlington!$A$2:$A$
201)=2004),--ISNUMBER(--(MONTH(Burlington!$A$2:$A$201))))

Maybe is not possible?

Thanks!


  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Sounds like you have text as opposed to numeric dates, also you can shorten
that to

=SUMPRODUCT(--(MONTH(Burlington!$A$2:$A$201)=10),--(YEAR(Burlington!$A$2:$A$201)=2004))

Regards,

Peo Sjoblom

"Annette" wrote:

My ss contains links to another spreadsheet. In col A are dates. I need to
add only those pieces of information that are valid dates and not include
the links, but I'm having a bit of difficulty. Here is the formula I used,
but I get #value error.

=SUMPRODUCT(--(MONTH(Burlington!$A$2:$A$201)=10),--(YEAR(Burlington!$A$2:$A$
201)=2004),--ISNUMBER(--(MONTH(Burlington!$A$2:$A$201))))

Maybe is not possible?

Thanks!



  #3   Report Post  
Annette
 
Posts: n/a
Default

It still results in #value ... in col A, there are links to another
spreadsheet which update when the file is opened. So the links look
something like this in each cell

=IF('\\Blacr2s3\ECSU\Medical Referrals From NPA Conversion\[Burlington
P.xls]Sheet1'!A32="","",'\\Blacr2s3\ECSU\Medical Referrals From NPA
Conversion\[Burlington P.xls]Sheet1'!A32)

When the update is made to the column, it appears as a date and in the ss I
have the format set to date. I only want to add by month those cells that
have dates only. (Hope this makes more sense and hopefully you can see my
problem easily)

Thanks Peo


"Peo Sjoblom" wrote in message
...
Sounds like you have text as opposed to numeric dates, also you can

shorten
that to


=SUMPRODUCT(--(MONTH(Burlington!$A$2:$A$201)=10),--(YEAR(Burlington!$A$2:$A$
201)=2004))

Regards,

Peo Sjoblom

"Annette" wrote:

My ss contains links to another spreadsheet. In col A are dates. I

need to
add only those pieces of information that are valid dates and not

include
the links, but I'm having a bit of difficulty. Here is the formula I

used,
but I get #value error.


=SUMPRODUCT(--(MONTH(Burlington!$A$2:$A$201)=10),--(YEAR(Burlington!$A$2:$A$
201)=2004),--ISNUMBER(--(MONTH(Burlington!$A$2:$A$201))))

Maybe is not possible?

Thanks!





  #4   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Got it! The reason is that you use the date function MONTH and YEAR and when
you have the linked cell is blank you want the date cell blank as well, the
date functions yare, month and day only work on numeric values and will
return #VALUE when you have a text string which "" is

There are some ways to solve this, you can change the link to

IF('\\Blacr2s3\ECSU\Medical Referrals From NPA Conversion\[Burlington
P.xls]Sheet1'!A32="",0,'\\Blacr2s3\ECSU\Medical Referrals From NPA
Conversion\[Burlington P.xls]Sheet1'!A32)

drawback is that you will get a date in Burlington sheet looking like

01/00/00

you can hide that with conditional formatting using a white font and cell
value equal to 0 (assuming the background is white) That way you can use your
formula as is (although the isnumber part is still not necessary) or you can
change the formula to

=SUMPRODUCT(--(Burlington!$A$2:$A$20=--"10/01/04"),--(Burlington!$A$2:$A$20<=--"10/31/04"))

where you would use the first and the last dates of the month you want to
check
(in this case October 2004)

better would be

=SUMPRODUCT(--(Burlington!$A$2:$A$20=F1),--(Burlington!$A$2:$A$20<=G1)

where you can type in the lower date in F1 and the upper date in G1


Regards,

Peo Sjoblom


"Annette" wrote:

It still results in #value ... in col A, there are links to another
spreadsheet which update when the file is opened. So the links look
something like this in each cell

=IF('\\Blacr2s3\ECSU\Medical Referrals From NPA Conversion\[Burlington
P.xls]Sheet1'!A32="","",'\\Blacr2s3\ECSU\Medical Referrals From NPA
Conversion\[Burlington P.xls]Sheet1'!A32)

When the update is made to the column, it appears as a date and in the ss I
have the format set to date. I only want to add by month those cells that
have dates only. (Hope this makes more sense and hopefully you can see my
problem easily)

Thanks Peo


"Peo Sjoblom" wrote in message
...
Sounds like you have text as opposed to numeric dates, also you can

shorten
that to


=SUMPRODUCT(--(MONTH(Burlington!$A$2:$A$201)=10),--(YEAR(Burlington!$A$2:$A$
201)=2004))

Regards,

Peo Sjoblom

"Annette" wrote:

My ss contains links to another spreadsheet. In col A are dates. I

need to
add only those pieces of information that are valid dates and not

include
the links, but I'm having a bit of difficulty. Here is the formula I

used,
but I get #value error.


=SUMPRODUCT(--(MONTH(Burlington!$A$2:$A$201)=10),--(YEAR(Burlington!$A$2:$A$
201)=2004),--ISNUMBER(--(MONTH(Burlington!$A$2:$A$201))))

Maybe is not possible?

Thanks!






  #5   Report Post  
Annette
 
Posts: n/a
Default

AHHHHHHHHHHh ... newt you would get it after seeing more of the example ...
this works just as predicted now. Thanks!

"Peo Sjoblom" wrote in message
...
Got it! The reason is that you use the date function MONTH and YEAR and

when
you have the linked cell is blank you want the date cell blank as well,

the
date functions yare, month and day only work on numeric values and will
return #VALUE when you have a text string which "" is

There are some ways to solve this, you can change the link to

IF('\\Blacr2s3\ECSU\Medical Referrals From NPA Conversion\[Burlington
P.xls]Sheet1'!A32="",0,'\\Blacr2s3\ECSU\Medical Referrals From NPA
Conversion\[Burlington P.xls]Sheet1'!A32)

drawback is that you will get a date in Burlington sheet looking like

01/00/00

you can hide that with conditional formatting using a white font and cell
value equal to 0 (assuming the background is white) That way you can use

your
formula as is (although the isnumber part is still not necessary) or you

can
change the formula to


=SUMPRODUCT(--(Burlington!$A$2:$A$20=--"10/01/04"),--(Burlington!$A$2:$A$20
<=--"10/31/04"))

where you would use the first and the last dates of the month you want to
check
(in this case October 2004)

better would be

=SUMPRODUCT(--(Burlington!$A$2:$A$20=F1),--(Burlington!$A$2:$A$20<=G1)

where you can type in the lower date in F1 and the upper date in G1


Regards,

Peo Sjoblom


"Annette" wrote:

It still results in #value ... in col A, there are links to another
spreadsheet which update when the file is opened. So the links look
something like this in each cell

=IF('\\Blacr2s3\ECSU\Medical Referrals From NPA Conversion\[Burlington
P.xls]Sheet1'!A32="","",'\\Blacr2s3\ECSU\Medical Referrals From NPA
Conversion\[Burlington P.xls]Sheet1'!A32)

When the update is made to the column, it appears as a date and in the

ss I
have the format set to date. I only want to add by month those cells

that
have dates only. (Hope this makes more sense and hopefully you can see

my
problem easily)

Thanks Peo


"Peo Sjoblom" wrote in message
...
Sounds like you have text as opposed to numeric dates, also you can

shorten
that to



=SUMPRODUCT(--(MONTH(Burlington!$A$2:$A$201)=10),--(YEAR(Burlington!$A$2:$A$
201)=2004))

Regards,

Peo Sjoblom

"Annette" wrote:

My ss contains links to another spreadsheet. In col A are dates. I

need to
add only those pieces of information that are valid dates and not

include
the links, but I'm having a bit of difficulty. Here is the formula

I
used,
but I get #value error.



=SUMPRODUCT(--(MONTH(Burlington!$A$2:$A$201)=10),--(YEAR(Burlington!$A$2:$A$
201)=2004),--ISNUMBER(--(MONTH(Burlington!$A$2:$A$201))))

Maybe is not possible?

Thanks!








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 updates from worksheet to chart & changes date to a date series! Help!! Jayjg Charts and Charting in Excel 2 January 22nd 05 03:00 PM
Date issue between Windows and Macintosh version dlg1967 Excel Discussion (Misc queries) 4 January 19th 05 03:51 PM
Need help troubleshooting an array formula XLXP on Win2K KR Excel Worksheet Functions 1 December 13th 04 07:41 PM
Addition to Turn cell red if today is greater or equal to date in cell Rich New Users to Excel 2 December 9th 04 02:06 AM
Using formulas to determine date in one cell based on date in anot Gary Excel Worksheet Functions 2 November 22nd 04 08:11 AM


All times are GMT +1. The time now is 04:45 AM.

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"