# Count values on one column that meet criteria in an other

#### verborgh

##### New Member
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 1 Value 2 Value 3 Value 4 Value 5 Monday appears 5 times on Monday Tuesday appears 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
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
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 !

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.

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.

### Which adblocker are you using?

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

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