Excel Formula improvement

ItalianPlatinum

Well-known Member
Joined
Mar 23, 2017
Messages
857
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hello - In a long round about way the below formula fits its purpose. But i wanted to know for those excel experts is there a cleaner more efficient way to accomplish the below? Or a better way you would have chosen?

long story short Sheet2 has all the data (600,000+ rows). Sheet1 is merely a summary.

=COUNTIFS(Sheet1!$S:$S,Sheet2!A4,Sheet1!$U:$U,Sheet2!$B$1)+COUNTIFS(Sheet1!$W:$W,Sheet2!A4,Sheet1!$Y:$Y,Sheet2!$B$1)+COUNTIFS(Sheet1!$AA:$AA,Sheet2!A4,Sheet1!$AC:$AC,Sheet2!$B$1)+COUNTIFS(Sheet1!$AE:$AE,Sheet2!A4,Sheet1!$AG:$AG,Sheet2!$B$1)+COUNTIFS(Sheet1!$AI:$AI,Sheet2!A4,Sheet1!$AK:$AK,Sheet2!$B$1)

UserCDEA
AAAbove FormulaAbove FormulaAbove Formula
BBAbove FormulaAbove FormulaAbove Formula
CCAbove FormulaAbove FormulaAbove Formula
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Can you show us you data in Sheet2 and explain what you want to accomplish?
 
Upvote 0
Can you show us you data in Sheet2 and explain what you want to accomplish?
its a lot of data. its basically taking the first countif S:S will have the user (AA) then U:U will have (either C, DE, or A). so trying to count how many times a user does C, DE, or A. Then their is 5 iteration of that. Continuing on the next countifs. same concept. Not sure if that helps or hurts
 
Upvote 0
You could try
Excel Formula:
=COUNTIFS(Sheet1!$S:$AI,$A4,Sheet1!$U:$AK,B$1)
 
Upvote 0
Solution
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,315
Members
452,634
Latest member
cpostell

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