Help on Excel (Count Values)

itsalllowercase

New Member
Joined
Aug 25, 2013
Messages
15
Hey Guys,

I'm working on an Excel project and been pretty unsuccessful. I hope someone can help me.

I have a table with the following values:

[TABLE="width: 500, align: center"]
<TBODY>[TR]
[TD="align: center"]Site[/TD]
[TD="align: center"]Name[/TD]
[TD="align: center"]Status[/TD]
[TD="align: center"]Tenure[/TD]
[TD="align: center"]Department[/TD]
[/TR]
[TR]
[TD="align: center"]Site 1[/TD]
[TD="align: center"]ABC, Joe[/TD]
[TD="align: center"]Trainee[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Dep 1[/TD]
[/TR]
[TR]
[TD="align: center"]Site 1[/TD]
[TD="align: center"]DEF, Jane[/TD]
[TD="align: center"]Regular[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Dep 2[/TD]
[/TR]
[TR]
[TD="align: center"]Site 2[/TD]
[TD="align: center"]GHI, Joe[/TD]
[TD="align: center"]Regular[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Dep 3[/TD]
[/TR]
[TR]
[TD="align: center"]Site 3[/TD]
[TD="align: center"]JKL, Jim[/TD]
[TD="align: center"]Trainee[/TD]
[TD][/TD]
[TD="align: center"]Dep 7[/TD]
[/TR]
</TBODY>[/TABLE]


I need it to:
1) Count all cells with Site 1, Site 2 and Site 3. (This I was able to do with COUNTIF).
2) Count all trainees from Site 1.
3) Count all trainees from Site 1 under Department 1.

Is there an easy way to do this?

Thanks in advance!
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Hi,

You need to use SUMPRODUCT: -

Code:
=SUMPRODUCT((A2:A5="Site 1")*(C2:C5="Trainee"))
=SUMPRODUCT((A2:A5="Site 1")*(C2:C5="Trainee")*(E2:E5="Dep 1"))
 
Upvote 0
So the last example I gave didn't work, or did you type it in yourself?

Which range is your data in, and on the one that gave you N/A is there data in the Cells to match?

Regards
 
Upvote 0

Forum statistics

Threads
1,223,244
Messages
6,170,976
Members
452,372
Latest member
Natalie18

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top