Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default countif or sumproduct ?

I have job titles in H2:H54 ( 10 various)
Some are occupied (names in B2:B34)
Some are vacant (B35:B54) nothing in B35:B54
I'd like a formula to count how many are occupied by title, and how many are
vacant by title.

Thanks,

Steve
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default countif or sumproduct ?

=SUMPRODUCT((H2:H54="job titles")*(B2:B54="occupied"))


"Steve" wrote:

I have job titles in H2:H54 ( 10 various)
Some are occupied (names in B2:B34)
Some are vacant (B35:B54) nothing in B35:B54
I'd like a formula to count how many are occupied by title, and how many are
vacant by title.

Thanks,

Steve

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default countif or sumproduct ?

Thank you. In my haste, I wasn't totally clear on what I needed, but while
waiting, another thread helped. This is what produced what I needed, counting
how many occupied or vacant for each job title( refs B3 dragged down and B11
dragged down:

=SUMPRODUCT(N('WC'!$H$2:$H$54=B3),N('WC'!$B$2:$B$5 40)) - for the occupied
and
=SUMPRODUCT(N('WC'!$H$2:$H$54=B11),N('WC'!$B$2:$B$ 54<=0)) - for the vacant

What is the N mean ?

Thanks,

"Teethless mama" wrote:

=SUMPRODUCT((H2:H54="job titles")*(B2:B54="occupied"))


"Steve" wrote:

I have job titles in H2:H54 ( 10 various)
Some are occupied (names in B2:B34)
Some are vacant (B35:B54) nothing in B35:B54
I'd like a formula to count how many are occupied by title, and how many are
vacant by title.

Thanks,

Steve

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default countif or sumproduct ?

Hi,

You may create a pivot table. Drag title to the row area and column B data
to the data area

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Steve" wrote in message
...
I have job titles in H2:H54 ( 10 various)
Some are occupied (names in B2:B34)
Some are vacant (B35:B54) nothing in B35:B54
I'd like a formula to count how many are occupied by title, and how many
are
vacant by title.

Thanks,

Steve


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default countif or sumproduct ?

Thank you, but I don't know pivot tables yet.

"Ashish Mathur" wrote:

Hi,

You may create a pivot table. Drag title to the row area and column B data
to the data area

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Steve" wrote in message
...
I have job titles in H2:H54 ( 10 various)
Some are occupied (names in B2:B34)
Some are vacant (B35:B54) nothing in B35:B54
I'd like a formula to count how many are occupied by title, and how many
are
vacant by title.

Thanks,

Steve




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
Countif Sumproduct gjameson via OfficeKB.com Excel Worksheet Functions 5 December 19th 08 07:44 PM
SumProduct and Countif Nycole Excel Worksheet Functions 5 February 19th 08 07:52 PM
Countif and Sumproduct Sandy Excel Worksheet Functions 4 August 18th 07 10:08 PM
SumProduct + CountIf Sarah Excel Discussion (Misc queries) 2 May 7th 07 09:17 PM
CountIf or sumproduct timmulla Excel Discussion (Misc queries) 1 January 18th 07 03:49 AM


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