Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
chrisdedobb
 
Posts: n/a
Default Counting the number of times more than 1 variable occurs


I need to determine how many Separations were processed by a particular
salesperson.

A | B
1 MIKE | SEPARATION
2 MIKE | LEAVE
3 SARA | SEPARATION
4 JOE | SEPARATION
5 JAMIE | LEAVE
6 MIKE | LEAVE
7 JOE | LEAVE
8 SARA | SEPARATION

The only way I can think of is the COUNTIF Funtion
*COUNTIF(-range,criteria-)*
=COUNTIF(A1:A8,(A1:A8="MIKE")*(B1:B8="SEPARATION") )
This does not work though. The results return 0 with no errors when
the answer should be 1.

does anyone else know of a way to get what I need? Or is there a
problem with my formula?


--
chrisdedobb
------------------------------------------------------------------------
chrisdedobb's Profile: http://www.excelforum.com/member.php...o&userid=30081
View this thread: http://www.excelforum.com/showthread...hreadid=497615

  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Counting the number of times more than 1 variable occurs

You may want to look at pivottables. You won't have to build separate formulas
for each name.

but:

=sumproduct(--(a1:a10="mike"),--(b1:b10="Separation"))

Adjust your ranges, but don't use the whole column.

=sumproduct() likes to work with numbers.

The -- converts trues and falses to 1's and 0's.

chrisdedobb wrote:

I need to determine how many Separations were processed by a particular
salesperson.

A | B
1 MIKE | SEPARATION
2 MIKE | LEAVE
3 SARA | SEPARATION
4 JOE | SEPARATION
5 JAMIE | LEAVE
6 MIKE | LEAVE
7 JOE | LEAVE
8 SARA | SEPARATION

The only way I can think of is the COUNTIF Funtion
*COUNTIF(-range,criteria-)*
=COUNTIF(A1:A8,(A1:A8="MIKE")*(B1:B8="SEPARATION") )
This does not work though. The results return 0 with no errors when
the answer should be 1.

does anyone else know of a way to get what I need? Or is there a
problem with my formula?

--
chrisdedobb
------------------------------------------------------------------------
chrisdedobb's Profile: http://www.excelforum.com/member.php...o&userid=30081
View this thread: http://www.excelforum.com/showthread...hreadid=497615


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Counting the number of times more than 1 variable occurs

=SUMPRODUCT(--(A1:A8="MIKE"),--(B1:B8="SEPARATION"))


--

HTH

RP
(remove nothere from the email address if mailing direct)


"chrisdedobb"
wrote in message
...

I need to determine how many Separations were processed by a particular
salesperson.

A | B
1 MIKE | SEPARATION
2 MIKE | LEAVE
3 SARA | SEPARATION
4 JOE | SEPARATION
5 JAMIE | LEAVE
6 MIKE | LEAVE
7 JOE | LEAVE
8 SARA | SEPARATION

The only way I can think of is the COUNTIF Funtion
*COUNTIF(-range,criteria-)*
=COUNTIF(A1:A8,(A1:A8="MIKE")*(B1:B8="SEPARATION") )
This does not work though. The results return 0 with no errors when
the answer should be 1.

does anyone else know of a way to get what I need? Or is there a
problem with my formula?


--
chrisdedobb
------------------------------------------------------------------------
chrisdedobb's Profile:

http://www.excelforum.com/member.php...o&userid=30081
View this thread: http://www.excelforum.com/showthread...hreadid=497615



  #4   Report Post  
Posted to microsoft.public.excel.misc
Vito
 
Posts: n/a
Default Counting the number of times more than 1 variable occurs


Try

=sumproduct(--(a1:a8="Mike"),--(b1:b8="Separation"))


--
Vito
------------------------------------------------------------------------
Vito's Profile: http://www.excelforum.com/member.php...o&userid=29182
View this thread: http://www.excelforum.com/showthread...hreadid=497615

  #5   Report Post  
Posted to microsoft.public.excel.misc
chrisdedobb
 
Posts: n/a
Default Counting the number of times more than 1 variable occurs


Thanks! That works great!


--
chrisdedobb
------------------------------------------------------------------------
chrisdedobb's Profile: http://www.excelforum.com/member.php...o&userid=30081
View this thread: http://www.excelforum.com/showthread...hreadid=497615



  #6   Report Post  
Posted to microsoft.public.excel.misc
BenjieLop
 
Posts: n/a
Default Counting the number of times more than 1 variable occurs


chrisdedobb Wrote:
I need to determine how many Separations were processed by a particular
salesperson.

A | B
1 MIKE | SEPARATION
2 MIKE | LEAVE
3 SARA | SEPARATION
4 JOE | SEPARATION
5 JAMIE | LEAVE
6 MIKE | LEAVE
7 JOE | LEAVE
8 SARA | SEPARATION

The only way I can think of is the COUNTIF Funtion
*COUNTIF(-range,criteria-)*
=COUNTIF(A1:A8,(A1:A8="MIKE")*(B1:B8="SEPARATION") )
This does not work though. The results return 0 with no errors when
the answer should be 1.

does anyone else know of a way to get what I need? Or is there a
problem with my formula?


=SUMPRODUCT((A1:A8=\"MIKE\")*(B1:B8=\"SEPARATION\" ))

is the formula to use.

Regards.


--
BenjieLop


------------------------------------------------------------------------
BenjieLop's Profile: http://www.excelforum.com/member.php...o&userid=11019
View this thread: http://www.excelforum.com/showthread...hreadid=497615

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 the number of times something is bought during a month ldd Excel Worksheet Functions 1 November 22nd 05 07:18 PM
how do I count the number of times text in column A matches text i Sheila Excel Worksheet Functions 2 November 16th 05 10:20 PM
How do I limit the number of times an Excel workbook can be opene. Chris Excel Discussion (Misc queries) 8 January 19th 05 04:02 PM
Can the number of times undo is used in Excel 2002 be increased? Austrian Hannes Setting up and Configuration of Excel 2 December 6th 04 05:54 PM
how do I get a calculation to repeat various number of times? weelittlekim Excel Worksheet Functions 1 October 27th 04 08:13 PM


All times are GMT +1. The time now is 09:37 PM.

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"