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

Having 'brain freeze' with sumproduct...my formula is:
=SUMPRODUCT(--L2:L306=$L309)--(N2:N306=N$308)
column 'L' is a list of departments (and I can list as either numeric or
alpha)
Column 'N" is dates

What I want is a the number of times the department matches the date in
N$308 (all dates are in date format).

The 'value' error appears to be in the dates.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default Sumproduct

Corrected structu

=SUMPRODUCT(--(L2:L306=$L309),--(N2:N306=N$308))

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"ronnomad" wrote:

Having 'brain freeze' with sumproduct...my formula is:
=SUMPRODUCT(--L2:L306=$L309)--(N2:N306=N$308)
column 'L' is a list of departments (and I can list as either numeric or
alpha)
Column 'N" is dates

What I want is a the number of times the department matches the date in
N$308 (all dates are in date format).

The 'value' error appears to be in the dates.

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

Perhaps you intended to say not
=SUMPRODUCT(--L2:L306=$L309)--(N2:N306=N$308) but
=SUMPRODUCT(--(L2:L306=$L309),--(N2:N306=N$308)) ?

If you are still getting a #VALUE! error after that, you'll need to check
that your dates really are dates, and not text strings.
=ISNUMBER(cellref) and =ISTEXT(cellref) will tell you.
--
David Biddulph

"ronnomad" wrote in message
...
Having 'brain freeze' with sumproduct...my formula is:
=SUMPRODUCT(--L2:L306=$L309)--(N2:N306=N$308)
column 'L' is a list of departments (and I can list as either numeric or
alpha)
Column 'N" is dates

What I want is a the number of times the department matches the date in
N$308 (all dates are in date format).

The 'value' error appears to be in the dates.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 47
Default Sumproduct

Sorry, didn't work. The "value' error is gone but the result is wrong.

More info: there are 14 different departments and a total of 305 lines. I
know the first dept is a total of 9 lines of which 4 should correspond to
the date parameter. The result I get with the new formula is 109. And, when
I look at all 14 depts the total is 1,663. I have a feeling that it is the
way I have the date set up but, since the date is really a number, I'm not
sure that's correct.

Ron R.



"Luke M" wrote:

Corrected structu

=SUMPRODUCT(--(L2:L306=$L309),--(N2:N306=N$308))

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"ronnomad" wrote:

Having 'brain freeze' with sumproduct...my formula is:
=SUMPRODUCT(--L2:L306=$L309)--(N2:N306=N$308)
column 'L' is a list of departments (and I can list as either numeric or
alpha)
Column 'N" is dates

What I want is a the number of times the department matches the date in
N$308 (all dates are in date format).

The 'value' error appears to be in the dates.

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
Conditional SUMPRODUCT or SUMPRODUCT with Filters Ted M H Excel Worksheet Functions 4 August 14th 08 07:50 PM
sumproduct? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM
Do I need SUMPRODUCT? DaveMoore Excel Worksheet Functions 3 November 10th 06 08:49 PM
Sumproduct(N and -- BobS Excel Worksheet Functions 9 November 3rd 06 07:09 AM
Sumproduct sanders Excel Discussion (Misc queries) 2 August 9th 06 11:05 AM


All times are GMT +1. The time now is 07:01 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"