COUNTIFS with multiple criteria in both columns and rows

Sekiro1899

New Member
Joined
Mar 24, 2023
Messages
5
Office Version
  1. 365
Platform
  1. Windows
  2. Web
Hello, looking to have a recap table of attendance as follows:
- From the dropdown list you choose between 3 options and i'd like to have a count of sick days, timeoff and Tardiness for each employee for March, April...
1679704916645.png


What formula would fit in ?

1679704968818.png


I tried with some Countifs mixed with Index Match but it did not work ...
Thanks in advance for your help :) :)
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Welcome to Mr Excel

It would be better if your raw data was stored differently . Not only would it be easier to maintain, it would be much easier to
analyse the data. The emphasis in terms of how things are done moves away from the reporting to the area of data collection.
The reporting becomes the easier bit.

Data sets should really be long and thin rather than short and wide.

To start with, I suggest a data structure as in the attached image.
 

Attachments

  • Data.JPG
    Data.JPG
    89.9 KB · Views: 10
Upvote 0
Is this for Excel or for Google Sheets?
 
Upvote 0
Hello,
This is for Google Sheet but i need to translate it to Excel later...
I'm still in need of an answer though. Is it possible to have a formula to have the desired result ?

Thanks in advance
 
Upvote 0
Sheets & Excel are not the same thing, so a formula that works in Sheets may not work in Excel & vice-versa.
 
Upvote 0
I understand but in this case it's pretty much an index/match that might be required so I supposed I could ask here :)
 
Upvote 0
For excel I would use
Excel Formula:
=BYROW(FILTER(Sheet1!$B$4:$AF$100,Sheet1!$A$4:$A$100=$A3),LAMBDA(br,SUM(--(br="Time"))))
 
Upvote 0
Hello Thank you !

However i don't understand the Lamda(br,Sum(--(br="Time"))) part :)

Do you also have a solution for GoogleSheet ?

I know i'm asking a lot but it'll really help I'm trying to setup a HR reporting of absences... for an animal refuge
 
Upvote 0
That part is just counting how many times the word "Time" is found on the row.
I don't know much about Sheets, but this might work
Excel Formula:
=SUMPRODUCT((Sheet1!$A$4:$A$100=$A3)*(Sheet1!$B$4:$AF$100="Time"))
 
Upvote 0
Amazing i knew i could find an easier way like a SumProduct ! Thank you so much Sir FLUFF
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

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