Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
nmc1104
 
Posts: n/a
Default question about SUMPRODUCT

I have a worksheet laid out like this

COLUMN A COLUMN B
manager present
supervisor absent
supervisor present
CEO absent
manager absent

How would I write a formula that would count every "manager" and
"supervisor" present?

thanks.
  #2   Report Post  
Domenic
 
Posts: n/a
Default question about SUMPRODUCT

Try...

=SUMPRODUCT(--(ISNUMBER(MATCH(A1:A5,{"Manager","Supervisor"},0)) ),--(B1:B
5="Present"))

or

=SUMPRODUCT(--(ISNUMBER(MATCH(A1:A5,D1:D2,0))),--(B1:B5=E1))

....where D1:D2 contain Manager and Supervisor, and E1 contains Present.

Hope this helps!

In article ,
"nmc1104" wrote:

I have a worksheet laid out like this

COLUMN A COLUMN B
manager present
supervisor absent
supervisor present
CEO absent
manager absent

How would I write a formula that would count every "manager" and
"supervisor" present?

thanks.

  #3   Report Post  
Bernard Liengme
 
Posts: n/a
Default question about SUMPRODUCT

Try =SUMPRODUCT(--(A1:A100="manager"),--(B1:B100="supervisor"))
The double negatives convert FALSE/TRUE to 0/1 to allow arithmetic to work
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"nmc1104" wrote in message
...
I have a worksheet laid out like this

COLUMN A COLUMN B
manager present
supervisor absent
supervisor present
CEO absent
manager absent

How would I write a formula that would count every "manager" and
"supervisor" present?

thanks.



  #4   Report Post  
Peo Sjoblom
 
Posts: n/a
Default question about SUMPRODUCT

Assuming "and" means or in this case

=SUMPRODUCT((A1:A5={"manager","supervisor"})*(B1:B 5="present"))


--

Regards,

Peo Sjoblom

"nmc1104" wrote in message
...
I have a worksheet laid out like this

COLUMN A COLUMN B
manager present
supervisor absent
supervisor present
CEO absent
manager absent

How would I write a formula that would count every "manager" and
"supervisor" present?

thanks.



  #5   Report Post  
nmc1104
 
Posts: n/a
Default question about SUMPRODUCT

thanks! you guys are pros.

"Peo Sjoblom" wrote:

Assuming "and" means or in this case

=SUMPRODUCT((A1:A5={"manager","supervisor"})*(B1:B 5="present"))


--

Regards,

Peo Sjoblom

"nmc1104" wrote in message
...
I have a worksheet laid out like this

COLUMN A COLUMN B
manager present
supervisor absent
supervisor present
CEO absent
manager absent

How would I write a formula that would count every "manager" and
"supervisor" present?

thanks.




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
SUMPRODUCT Question John Moore Excel Discussion (Misc queries) 2 October 18th 05 12:31 PM
another sumproduct question cjjoo Excel Worksheet Functions 1 October 11th 05 03:43 AM
SUMPRODUCT Question... PokerZan Excel Discussion (Misc queries) 4 August 27th 05 12:09 AM
sumproduct question Dominique Feteau Excel Worksheet Functions 8 July 26th 05 08:43 AM
Question about sumproduct Jason Excel Discussion (Misc queries) 1 April 21st 05 05:44 PM


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