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
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

AlphaFrog

MrExcel MVP
Joined
Sep 2, 2009
Messages
16,451
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 ! ;)
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,651
Messages
5,854,956
Members
431,689
Latest member
jacker01

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