COUNTIFS question

remythesausage

New Member
Joined
Sep 29, 2022
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi all, I am trying to write a formula where I can calculate all the 4a’s that are in the Gym, playing Basketball and are on a Tuesday. Hoping to find a formula where I would be able to drop down H3, H4, H5 to give me what I want at any time. Is it possible given that the dates are column headers?

Many thanks
 

Attachments

  • 8BA9C68A-0895-44CA-AACD-0609D29ADB87.png
    8BA9C68A-0895-44CA-AACD-0609D29ADB87.png
    187.8 KB · Views: 8

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
You have 3D LOOKUP. So it would be better if you use SUMPRODUCT to count

Excel Formula:
=SUMPRODUCT(--(A:A=$H$2)*(B:B=$H$3)*($C1:$E1=$H$4))
 
Upvote 0
You have 3D LOOKUP. So it would be better if you use SUMPRODUCT to count

Excel Formula:
=SUMPRODUCT(--(A:A=$H$2)*(B:B=$H$3)*($C1:$E1=$H$4))
Appreciate your response, the formula works well however when trying to total for only 4a the formula includes the 5a.
Is it possible to add another formula within this sumproduct to only calculate 4a? within the Gym/Basketball/Mon
 
Upvote 0
Appreciate your response, the formula works well however when trying to total for only 4a the formula includes the 5a.
Is it possible to add another formula within this sumproduct to only calculate 4a? within the Gym/Basketball/Mon
 

Attachments

  • Screen Shot 2022-09-29 at 7.04.31 pm.png
    Screen Shot 2022-09-29 at 7.04.31 pm.png
    171.9 KB · Views: 3
Upvote 0
You could use:

Excel Formula:
=COUNTIFS(A:A,H2,B:B,H3,INDEX(C:E,0,MATCH(H4,$C$1:$E$1,0)),"4a")
 
Upvote 0
FWIW, it doesn't look like you have a lot of formulas like that, but using SUMPRODUCT on entire columns is not efficient.
 
Upvote 0

Forum statistics

Threads
1,215,963
Messages
6,127,957
Members
449,412
Latest member
montand

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