Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
tuph
 
Posts: n/a
Default Counting cells using multiple parameters


I have a spreadsheet which reports customer sales for the month by
branch, as follows:

cust prefix cust code branch cat date opened last inv date sales avg
mthly sales d-ls-a
03 03cash 3 0 35299 38868 158777 14434.27273 a
03 03cod 3 0 35299 38849 22663 2060.272727 a
03 03po 3 0 35885 0 0 d
ad adiope 3 1 34625 38868 180230 16384.54545 a
ai airfri 3 3 37160 38509 -34 -3.090909091 d
ai airle2 3 8 38491 38608 1559 141.7272727 ls
am amrmax 3 8 36412 38868 39394 3581.272727 a
an anceng 3 8 38813 38868 8962 814.7272727 ls
an anderr 3 8 32721 38426 0 0 d
ap apvc 3 5 38518 38862 625 56.81818182 ls

I need to count the number of customers where Branch=3, CAT=8, and
D-LS-A=A. I thought this formula might do it, but the result is a
#VALUE error:

=IF($I$5:$I$19199,"=A",SUMPRODUCT(($F$5:$F$25000=3 )*($G$5:$G$25000=8)))

Thanks in anticipation,

Trish


--
tuph
------------------------------------------------------------------------
tuph's Profile: http://www.excelforum.com/member.php...o&userid=31390
View this thread: http://www.excelforum.com/showthread...hreadid=553080

  #2   Report Post  
Posted to microsoft.public.excel.misc
Chip Pearson
 
Posts: n/a
Default Counting cells using multiple parameters

Try


=SUMPRODUCT(--($I$5:$I$25000="A"),--($F$5:$F$25000=3),--($G$5:$G$25000=8)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com





"tuph" wrote
in message
...

I have a spreadsheet which reports customer sales for the month
by
branch, as follows:

cust prefix cust code branch cat date opened last inv date
sales avg
mthly sales d-ls-a
03 03cash 3 0 35299 38868 158777 14434.27273 a
03 03cod 3 0 35299 38849 22663 2060.272727 a
03 03po 3 0 35885 0 0 d
ad adiope 3 1 34625 38868 180230 16384.54545 a
ai airfri 3 3 37160 38509 -34 -3.090909091 d
ai airle2 3 8 38491 38608 1559 141.7272727 ls
am amrmax 3 8 36412 38868 39394 3581.272727 a
an anceng 3 8 38813 38868 8962 814.7272727 ls
an anderr 3 8 32721 38426 0 0 d
ap apvc 3 5 38518 38862 625 56.81818182 ls

I need to count the number of customers where Branch=3, CAT=8,
and
D-LS-A=A. I thought this formula might do it, but the result
is a
#VALUE error:

=IF($I$5:$I$19199,"=A",SUMPRODUCT(($F$5:$F$25000=3 )*($G$5:$G$25000=8)))

Thanks in anticipation,

Trish


--
tuph
------------------------------------------------------------------------
tuph's Profile:
http://www.excelforum.com/member.php...o&userid=31390
View this thread:
http://www.excelforum.com/showthread...hreadid=553080



  #3   Report Post  
Posted to microsoft.public.excel.misc
tuph
 
Posts: n/a
Default Counting cells using multiple parameters


Thanks very much, Chip. It's just what I needed.

Trish


--
tuph
------------------------------------------------------------------------
tuph's Profile: http://www.excelforum.com/member.php...o&userid=31390
View this thread: http://www.excelforum.com/showthread...hreadid=553080

  #4   Report Post  
Posted to microsoft.public.excel.misc
sukii21@gmail.com
 
Posts: n/a
Default Counting cells using multiple parameters

Hi there,

I would like to know the implications of the double dash placed before
each array in the sumproduct function, what does it do?

regards
sukii

Chip Pearson wrote:
Try


=SUMPRODUCT(--($I$5:$I$25000="A"),--($F$5:$F$25000=3),--($G$5:$G$25000=8)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com





"tuph" wrote
in message
...

I have a spreadsheet which reports customer sales for the month
by
branch, as follows:

cust prefix cust code branch cat date opened last inv date
sales avg
mthly sales d-ls-a
03 03cash 3 0 35299 38868 158777 14434.27273 a
03 03cod 3 0 35299 38849 22663 2060.272727 a
03 03po 3 0 35885 0 0 d
ad adiope 3 1 34625 38868 180230 16384.54545 a
ai airfri 3 3 37160 38509 -34 -3.090909091 d
ai airle2 3 8 38491 38608 1559 141.7272727 ls
am amrmax 3 8 36412 38868 39394 3581.272727 a
an anceng 3 8 38813 38868 8962 814.7272727 ls
an anderr 3 8 32721 38426 0 0 d
ap apvc 3 5 38518 38862 625 56.81818182 ls

I need to count the number of customers where Branch=3, CAT=8,
and
D-LS-A=A. I thought this formula might do it, but the result
is a
#VALUE error:

=IF($I$5:$I$19199,"=A",SUMPRODUCT(($F$5:$F$25000=3 )*($G$5:$G$25000=8)))

Thanks in anticipation,

Trish


--
tuph
------------------------------------------------------------------------
tuph's Profile:
http://www.excelforum.com/member.php...o&userid=31390
View this thread:
http://www.excelforum.com/showthread...hreadid=553080


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
Counting text in multiple cells. Phil Jenkins Excel Worksheet Functions 8 March 31st 06 05:18 PM
link multiple cells to multiple cells jpoltor Excel Discussion (Misc queries) 2 March 25th 06 09:59 AM
link multiple cells to multiple cells jpoltor Excel Discussion (Misc queries) 1 March 22nd 06 09:10 AM
Converting a link to values to multiple cells. Cesar_us Excel Worksheet Functions 1 June 22nd 05 10:37 PM
How can I have excel search and add multiple cells to find a targe Blakepro Excel Discussion (Misc queries) 1 April 1st 05 03:37 AM


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