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

I can not get the sumproduct function to work properly. I have read a number
of threads and followed the example to a tee, but function will not work.
Here is my problem. I have two colums both on another work sheet. I would
like to count the number of records based on two criterias, one for each
column.
Column one has names of vendors, column two has letters A,B,C
Vendor Part
abc A
abc B
lmn C
xyz B
lmn A

For the criteria Vendor (lmn) and Part (C) I should count only 1 record
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,081
Default Sumproduct

Are you using something like:

=sumproduct(--(A2:a100="lmn"),--(B2:B100="C"))

"6pak" wrote:

I can not get the sumproduct function to work properly. I have read a number
of threads and followed the example to a tee, but function will not work.
Here is my problem. I have two colums both on another work sheet. I would
like to count the number of records based on two criterias, one for each
column.
Column one has names of vendors, column two has letters A,B,C
Vendor Part
abc A
abc B
lmn C
xyz B
lmn A

For the criteria Vendor (lmn) and Part (C) I should count only 1 record

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

Yes, with some minor alterations:
the formula is on a sheet on then the two arrays.
the criteria for the for range is a cell value.
This what my formula looks like and ends up with an #N/A
=SUMPRODUCT(--('Item Master-BM'!$O$3:$O$1233=B10),--('Item
Master-BM'!$AB$3:$AB$1233="c"))

"Duke Carey" wrote:

Are you using something like:

=sumproduct(--(A2:a100="lmn"),--(B2:B100="C"))

"6pak" wrote:

I can not get the sumproduct function to work properly. I have read a number
of threads and followed the example to a tee, but function will not work.
Here is my problem. I have two colums both on another work sheet. I would
like to count the number of records based on two criterias, one for each
column.
Column one has names of vendors, column two has letters A,B,C
Vendor Part
abc A
abc B
lmn C
xyz B
lmn A

For the criteria Vendor (lmn) and Part (C) I should count only 1 record

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

What results do you get with your formula? A number you believe to be wrong,
or an error?

If an erroneous number, then I'd suspect extra spaces in some of the text.
You can use the TRIM() function in a helper column to ensure that there are
no extra spaces. See if that solves your problem.


"6pak" wrote:

Yes, with some minor alterations:
the formula is on a sheet on then the two arrays.
the criteria for the for range is a cell value.
This what my formula looks like and ends up with an #N/A
=SUMPRODUCT(--('Item Master-BM'!$O$3:$O$1233=B10),--('Item
Master-BM'!$AB$3:$AB$1233="c"))

"Duke Carey" wrote:

Are you using something like:

=sumproduct(--(A2:a100="lmn"),--(B2:B100="C"))

"6pak" wrote:

I can not get the sumproduct function to work properly. I have read a number
of threads and followed the example to a tee, but function will not work.
Here is my problem. I have two colums both on another work sheet. I would
like to count the number of records based on two criterias, one for each
column.
Column one has names of vendors, column two has letters A,B,C
Vendor Part
abc A
abc B
lmn C
xyz B
lmn A

For the criteria Vendor (lmn) and Part (C) I should count only 1 record

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

The error I get is #N/A.
I don't believe it has anything to do with extra spaces,
I have use the info in other formulas such as subif and countif
which seem to work. I wonder if it has anything to do with using
a cell value as a criteria or the fact the the arrays (ranges) are on
another sheet.

"Duke Carey" wrote:

What results do you get with your formula? A number you believe to be wrong,
or an error?

If an erroneous number, then I'd suspect extra spaces in some of the text.
You can use the TRIM() function in a helper column to ensure that there are
no extra spaces. See if that solves your problem.


"6pak" wrote:

Yes, with some minor alterations:
the formula is on a sheet on then the two arrays.
the criteria for the for range is a cell value.
This what my formula looks like and ends up with an #N/A
=SUMPRODUCT(--('Item Master-BM'!$O$3:$O$1233=B10),--('Item
Master-BM'!$AB$3:$AB$1233="c"))

"Duke Carey" wrote:

Are you using something like:

=sumproduct(--(A2:a100="lmn"),--(B2:B100="C"))

"6pak" wrote:

I can not get the sumproduct function to work properly. I have read a number
of threads and followed the example to a tee, but function will not work.
Here is my problem. I have two colums both on another work sheet. I would
like to count the number of records based on two criterias, one for each
column.
Column one has names of vendors, column two has letters A,B,C
Vendor Part
abc A
abc B
lmn C
xyz B
lmn A

For the criteria Vendor (lmn) and Part (C) I should count only 1 record



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

Comparing a range of values to the contents of a cell poses no problems for
SUMPRODUCT.

Select the cell with the formula and use Tools-Formula Auditing-Evaluate
Formula to see how Excel interprets the components of your formula. If that
doesn't give you the info you need to solve this, post back with the results
so we can anaylze it some more

"6pak" wrote:

The error I get is #N/A.
I don't believe it has anything to do with extra spaces,
I have use the info in other formulas such as subif and countif
which seem to work. I wonder if it has anything to do with using
a cell value as a criteria or the fact the the arrays (ranges) are on
another sheet.

"Duke Carey" wrote:

What results do you get with your formula? A number you believe to be wrong,
or an error?

If an erroneous number, then I'd suspect extra spaces in some of the text.
You can use the TRIM() function in a helper column to ensure that there are
no extra spaces. See if that solves your problem.


"6pak" wrote:

Yes, with some minor alterations:
the formula is on a sheet on then the two arrays.
the criteria for the for range is a cell value.
This what my formula looks like and ends up with an #N/A
=SUMPRODUCT(--('Item Master-BM'!$O$3:$O$1233=B10),--('Item
Master-BM'!$AB$3:$AB$1233="c"))

"Duke Carey" wrote:

Are you using something like:

=sumproduct(--(A2:a100="lmn"),--(B2:B100="C"))

"6pak" wrote:

I can not get the sumproduct function to work properly. I have read a number
of threads and followed the example to a tee, but function will not work.
Here is my problem. I have two colums both on another work sheet. I would
like to count the number of records based on two criterias, one for each
column.
Column one has names of vendors, column two has letters A,B,C
Vendor Part
abc A
abc B
lmn C
xyz B
lmn A

For the criteria Vendor (lmn) and Part (C) I should count only 1 record

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
using sumproduct Jakobshavn Isbrae Excel Discussion (Misc queries) 2 June 11th 06 01:11 AM
SUMPRODUCT? nastech Excel Discussion (Misc queries) 3 June 10th 06 10:10 AM
Sumproduct #value! wal50 Excel Worksheet Functions 8 May 8th 06 09:14 PM
Like Sumproduct, But Different ericsh Excel Worksheet Functions 6 August 11th 05 05:49 PM
Sumproduct Help Rob Excel Worksheet Functions 11 August 8th 05 10:00 PM


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