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:

SiteNameStatusTenureDepartment
Site 1ABC, JoeTraineeDep 1
Site 1DEF, JaneRegularDep 2
Site 2GHI, JoeRegularDep 3
Site 3JKL, JimTraineeDep 7

<TBODY>
</TBODY>


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

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
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,214,839
Messages
6,121,891
Members
449,058
Latest member
Guy Boot

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