Count values on one column that meet criteria in an other

verborgh

New Member
Joined
Apr 19, 2013
Messages
6
Hi all

I have an issue in excel, hope you can help me with it:

I have a number of values in one column (A), from 1 - 5. This is a code i gave certain objects.
In another column (B) i have different days of the week, not chronologically listed or anything.

I wish to track how many times a certain value from A happens on a certain day in B

So my column would look like this:

Value 1Value 2Value 3Value 4Value 5
Mondayappears 5 times on Monday
Tuesdayappears 10 times on Tuesday
Wednesday

<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>


I hope you can help me guys

Bests
verborgh
 

Some videos you may like

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

AlphaFrog

MrExcel MVP
Joined
Sep 2, 2009
Messages
16,379
Try this formula in E2 where E1 is the Value 1 and D2 is the weekday Monday. Your data is in A2:B100
=SUMPRODUCT(--($A$2:$A$100=E$1),--($B$2:$B$100=$D2))

Or use the COUNTIFS function for Excel 2007 or later
=COUNTIFS($A$2:$A$100,E$1,$B$2:$B$100,$D2)
 
Last edited:

verborgh

New Member
Joined
Apr 19, 2013
Messages
6
Try this formula in E2 where E1 is the Value 1 and D2 is the weekday Monday. Your data is in A2:B100
=SUMPRODUCT(--($A$2:$A$100=E$1),--($B$2:$B$100=$D2))

Or use the COUNTIFS function for Excel 2007 or later
=COUNTIFS($A$2:$A$100,E$1,$B$2:$B$100,$D2)


It worked, i will always be in your debt ! ;)
 

Watch MrExcel Video

Forum statistics

Threads
1,122,606
Messages
5,597,134
Members
414,128
Latest member
Jorglo

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
Top