Count number of occurences of certain values based on a lookup

tiawy

New Member
Joined
Nov 30, 2014
Messages
11
Hi

For each person i want to count the occurences of the letters x and a for alle dates for instance between 1. january 2023 to 5th of january 2023.

The result i want is marked with green in the attached picture.

How can I do this?

Thank you very much
 

Attachments

  • example.PNG
    example.PNG
    14.8 KB · Views: 6

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
What version of Excel are you using?
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
How about
Excel Formula:
=SUMPRODUCT((($B$2:$L$10="x")+($B$2:$L$10="a"))*($A$2:$A$10=M5)*($B$1:$L$1>=N5)*($B$1:$L$1<=O5))
 
Upvote 0
Thank you very much... However I cant get the formula to work? Can you also do it with COUNTIFS?
 
Upvote 0
In what way isn't it working?
Fluff.xlsm
ABCDEFGHIJKLMNOP
101/01/202302/01/202303/01/202304/01/202305/01/202306/01/202307/01/202308/01/202309/01/202310/01/202311/01/2023
2axdd
3bxadx
4c
5db01/01/202301/05/20233
6a01/01/202301/05/20231
Data
Cell Formulas
RangeFormula
P5:P6P5=SUMPRODUCT((($B$2:$L$10="x")+($B$2:$L$10="a"))*($A$2:$A$10=M5)*($B$1:$L$1>=N5)*($B$1:$L$1<=O5))


Also please update your profile to show your version of Excel.
 
Upvote 0

Forum statistics

Threads
1,215,326
Messages
6,124,267
Members
449,149
Latest member
mwdbActuary

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