Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jennie
 
Posts: n/a
Default sumproduct function returns #value or #ref error

hi all,
I'm trying to make a summary sheet for my inventory sheet that will tell me
the total #of product (types a, b, c...) produced in a certain month. My
inventory sheet looks something like this:

Month Product
1 a
1 a
1 b
2 a
3 a
3 c

For my summary, say I want to enter the month of interest in cell c1. So, if
I'm interested in month 1, the cell in which my formula is in will spit out 3
as the total number of product produced.
I tried both =sumproduct((month(b2:b6)=c1)*1) and
=sumproduct((a2:a6(b2:b6)=c1)*1) which give me #value and #ref errors,
respectively. What am I doing wrong? Is there another formula I could try?

Thanks in advance.
  #2   Report Post  
Leo Heuser
 
Posts: n/a
Default

Hi Jennie

Take a look at the COUNTIF() formula.

--
Best Regards
Leo Heuser

Followup to newsgroup only please.

"Jennie" skrev i en meddelelse
...
hi all,
I'm trying to make a summary sheet for my inventory sheet that will tell
me
the total #of product (types a, b, c...) produced in a certain month. My
inventory sheet looks something like this:

Month Product
1 a
1 a
1 b
2 a
3 a
3 c

For my summary, say I want to enter the month of interest in cell c1. So,
if
I'm interested in month 1, the cell in which my formula is in will spit
out 3
as the total number of product produced.
I tried both =sumproduct((month(b2:b6)=c1)*1) and
=sumproduct((a2:a6(b2:b6)=c1)*1) which give me #value and #ref errors,
respectively. What am I doing wrong? Is there another formula I could try?

Thanks in advance.



  #3   Report Post  
Jennie
 
Posts: n/a
Default

sorry leo, your post is not showing up

"Jennie" wrote:

hi all,
I'm trying to make a summary sheet for my inventory sheet that will tell me
the total #of product (types a, b, c...) produced in a certain month. My
inventory sheet looks something like this:

Month Product
1 a
1 a
1 b
2 a
3 a
3 c

For my summary, say I want to enter the month of interest in cell c1. So, if
I'm interested in month 1, the cell in which my formula is in will spit out 3
as the total number of product produced.
I tried both =sumproduct((month(b2:b6)=c1)*1) and
=sumproduct((a2:a6(b2:b6)=c1)*1) which give me #value and #ref errors,
respectively. What am I doing wrong? Is there another formula I could try?

Thanks in advance.

  #4   Report Post  
Jennie
 
Posts: n/a
Default

I don't know how to make the countif formula work if I have 3 parameters. It
only works with 2. I already tried something like countif(a2:a6=c1,b2:b6) and
the program doesn't understand this command.

Any other suggestions, please?????

"Leo Heuser" wrote:

Hi Jennie

Take a look at the COUNTIF() formula.

--
Best Regards
Leo Heuser

Followup to newsgroup only please.

"Jennie" skrev i en meddelelse
...
hi all,
I'm trying to make a summary sheet for my inventory sheet that will tell
me
the total #of product (types a, b, c...) produced in a certain month. My
inventory sheet looks something like this:

Month Product
1 a
1 a
1 b
2 a
3 a
3 c

For my summary, say I want to enter the month of interest in cell c1. So,
if
I'm interested in month 1, the cell in which my formula is in will spit
out 3
as the total number of product produced.
I tried both =sumproduct((month(b2:b6)=c1)*1) and
=sumproduct((a2:a6(b2:b6)=c1)*1) which give me #value and #ref errors,
respectively. What am I doing wrong? Is there another formula I could try?

Thanks in advance.




  #5   Report Post  
Leo Heuser
 
Posts: n/a
Default

What exactly are you trying to count? Your first
posting, with a solution of 3, apparently just counted
the number of ones in column A.
Do you want the number of a's(2), b's(1) and c's(0) for the month in C1

Is this the formula, you are looking for:

=SUMPRODUCT((A1:A100=C1)*(B1:B100={"a","b","c"}))

--
Best Regards
Leo Heuser

Followup to newsgroup only please.

"Jennie" skrev i en meddelelse
...
I don't know how to make the countif formula work if I have 3 parameters.
It
only works with 2. I already tried something like countif(a2:a6=c1,b2:b6)
and
the program doesn't understand this command.

Any other suggestions, please?????

"Leo Heuser" wrote:

Hi Jennie

Take a look at the COUNTIF() formula.

--
Best Regards
Leo Heuser

Followup to newsgroup only please.

"Jennie" skrev i en meddelelse
...
hi all,
I'm trying to make a summary sheet for my inventory sheet that will
tell
me
the total #of product (types a, b, c...) produced in a certain month.
My
inventory sheet looks something like this:

Month Product
1 a
1 a
1 b
2 a
3 a
3 c

For my summary, say I want to enter the month of interest in cell c1.
So,
if
I'm interested in month 1, the cell in which my formula is in will spit
out 3
as the total number of product produced.
I tried both =sumproduct((month(b2:b6)=c1)*1) and
=sumproduct((a2:a6(b2:b6)=c1)*1) which give me #value and #ref errors,
respectively. What am I doing wrong? Is there another formula I could
try?

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
weeknum function returns name error Unison Mike Excel Worksheet Functions 4 May 24th 05 09:27 PM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
Why do I get a #Name error when I use the DateDif function? PhilS Excel Worksheet Functions 6 April 2nd 05 02:07 PM
Match Function - no room for error Dee Veloper Excel Worksheet Functions 0 January 28th 05 11:58 PM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM


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