ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Simple problem for you all....killing me though (https://www.excelbanter.com/excel-discussion-misc-queries/150350-simple-problem-you-all-killing-me-though.html)

[email protected]

Simple problem for you all....killing me though
 
Must be a COUNTIF or similar function
DATA is LOCATION (A, B, C) and JOB TITLE (X, Y, Z)
I figured how to get the # of people at each SITE (using COUNTIF)
Need to figure out how to have subsets of this...Operators, Foremen,
Supervisors at Site A, and the same for SIte B, etc...
It can't be that hard.
Thanks


JLatham

Simple problem for you all....killing me though
 
Assuming that your data is in 2 columns, E and F (to separate them from your
ABC and XYZ locations/titles in the formulas) and goes from row 2 to row 100:
=SUMPRODUCT(--(E2:E100="A"),--(F2:F100="X"))
Will give you number of job title X's at Location A. Just change the "A"
and "X" for each pairing.

" wrote:

Must be a COUNTIF or similar function
DATA is LOCATION (A, B, C) and JOB TITLE (X, Y, Z)
I figured how to get the # of people at each SITE (using COUNTIF)
Need to figure out how to have subsets of this...Operators, Foremen,
Supervisors at Site A, and the same for SIte B, etc...
It can't be that hard.
Thanks



Toppers

Simple problem for you all....killing me though
 
Location by jobs:

=SUMPRODUCT(--(A2:A100=Location),--(B2:B100=JobTitle))

Put Location and Job Title in cells

=SUMPRODUCT(--(A2:A100=C2),--(B2:B100=D2))

Location total:

=SUMPRODUCT(--(A2:A100=Location))


" wrote:

Must be a COUNTIF or similar function
DATA is LOCATION (A, B, C) and JOB TITLE (X, Y, Z)
I figured how to get the # of people at each SITE (using COUNTIF)
Need to figure out how to have subsets of this...Operators, Foremen,
Supervisors at Site A, and the same for SIte B, etc...
It can't be that hard.
Thanks



Roger Govier

Simple problem for you all....killing me though
 
Hi

Put a list of your job titles in cells D2:Dnn
Put a list of your Sites in E1:??1

In E2
=SUMPRODUCT(($A$2:$A$1000=E$1)*($B$2:$B$1000=$D2))
copy across and down as required.

Alternatively, use a Pivot Table.
Mark the range of data.
DataPivot TableFinish
On the new tab created, drag Site from the field list to the Column area
Drag Job Title from the field list to the Row Area
Drag Job title again from the field list to the Data area

--
Regards

Roger Govier


wrote in message
oups.com...
Must be a COUNTIF or similar function
DATA is LOCATION (A, B, C) and JOB TITLE (X, Y, Z)
I figured how to get the # of people at each SITE (using COUNTIF)
Need to figure out how to have subsets of this...Operators, Foremen,
Supervisors at Site A, and the same for SIte B, etc...
It can't be that hard.
Thanks




[email protected]

Simple problem for you all....killing me though
 
On Jul 16, 3:58 pm, Toppers wrote:
Location by jobs:

=SUMPRODUCT(--(A2:A100=Location),--(B2:B100=JobTitle))

Put Location and Job Title in cells

=SUMPRODUCT(--(A2:A100=C2),--(B2:B100=D2))

Location total:

=SUMPRODUCT(--(A2:A100=Location))



" wrote:
Must be a COUNTIF or similar function
DATA is LOCATION (A, B, C) and JOB TITLE (X, Y, Z)
I figured how to get the # of people at each SITE (using COUNTIF)
Need to figure out how to have subsets of this...Operators, Foremen,
Supervisors at Site A, and the same for SIte B, etc...
It can't be that hard.
Thanks- Hide quoted text -


- Show quoted text -


=SUMPRODUCT(--($G$5:$G$340=$R5),--($H$5:$H$340=S$4))
I put this in the first cell and it works!!!!
I now have a 57R x 4C array that is perfect for all 336 entries.
Thanks so much for the selfless giving of yoru time to make my day.


Toppers

Simple problem for you all....killing me though
 
Thanks for the feedback.

" wrote:

On Jul 16, 3:58 pm, Toppers wrote:
Location by jobs:

=SUMPRODUCT(--(A2:A100=Location),--(B2:B100=JobTitle))

Put Location and Job Title in cells

=SUMPRODUCT(--(A2:A100=C2),--(B2:B100=D2))

Location total:

=SUMPRODUCT(--(A2:A100=Location))



" wrote:
Must be a COUNTIF or similar function
DATA is LOCATION (A, B, C) and JOB TITLE (X, Y, Z)
I figured how to get the # of people at each SITE (using COUNTIF)
Need to figure out how to have subsets of this...Operators, Foremen,
Supervisors at Site A, and the same for SIte B, etc...
It can't be that hard.
Thanks- Hide quoted text -


- Show quoted text -


=SUMPRODUCT(--($G$5:$G$340=$R5),--($H$5:$H$340=S$4))
I put this in the first cell and it works!!!!
I now have a 57R x 4C array that is perfect for all 336 entries.
Thanks so much for the selfless giving of yoru time to make my day.




All times are GMT +1. The time now is 12:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com