Excel Formula required for count of results from multiple column conditions

bobbyexcel

Board Regular
Joined
Nov 21, 2019
Messages
88
Office Version
  1. 365
Platform
  1. Windows
Need help on my below issue.. I've 3 sheets to go through multiple conditions to get the count if condition satisfies.

Here is the screenshot of the data and my requirements..
1668716274234.png

I need the results in Sheet1 based on the country of the manager.. I used the below Index formula but didn't get the results of it. Can someone help me on this.

=COUNT(INDEX('Sheet1'!$F:$F,MATCH(1,(B3='Sheet3'!$R:$R)*('Sheet3'!$Q:$Q='Sheet2'!$N:$N)*('Sheet1'!$F1='Sheet2'!$O:$O),0)))
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Maybe:

Book2
ABCDEFGHIJKLMNOPQRST
1All (Australia + US)AustraliaUSManagerCatManagerANL StatusSHC StatusGDP Status
2StatusANLSHCGDPANLSHCGDPANLSHCGDPJohnAustraliaJohnCompletedCompletedHold
3Completed230210020DavidUSDavidIn ProgressCompletedIn Progress
4In Progress103001102UriUSUriHoldCompletedIn Progress
5Hold111011100BoshAustraliaBoshCompletedHoldIn Progress
Sheet1
Cell Formulas
RangeFormula
C3:E5C3=F3+I3
F3:K5F3=LET(a,FILTER(Sheet2!$N$2:$N$5,Sheet2!$O$2:$O$5=F$1),MMULT(SEQUENCE(,ROWS(a),,0),COUNTIFS(Sheet3!$Q$2:$Q$5,a,OFFSET(Sheet3!$R$2:$R$5,0,{0,1,2}),$B3)))
Dynamic array formulas.
 
Upvote 0
Solution
Maybe:

Book2
ABCDEFGHIJKLMNOPQRST
1All (Australia + US)AustraliaUSManagerCatManagerANL StatusSHC StatusGDP Status
2StatusANLSHCGDPANLSHCGDPANLSHCGDPJohnAustraliaJohnCompletedCompletedHold
3Completed230210020DavidUSDavidIn ProgressCompletedIn Progress
4In Progress103001102UriUSUriHoldCompletedIn Progress
5Hold111011100BoshAustraliaBoshCompletedHoldIn Progress
Sheet1
Cell Formulas
RangeFormula
C3:E5C3=F3+I3
F3:K5F3=LET(a,FILTER(Sheet2!$N$2:$N$5,Sheet2!$O$2:$O$5=F$1),MMULT(SEQUENCE(,ROWS(a),,0),COUNTIFS(Sheet3!$Q$2:$Q$5,a,OFFSET(Sheet3!$R$2:$R$5,0,{0,1,2}),$B3)))
Dynamic array formulas.


Thanks allot and this is what I'm expecting.. Thanks allot for your time on helping this. Thumbs up to you..
 
Last edited:
Upvote 0
@Eric W Hi Eric, Need small info. How can I add one more condition if I need in the above formula ?? if you look into the attached screenshot, I want to add one more condition to Australia location. How should I achieve that ? Please help ..

1668804446176.png
 
Upvote 0
I've added like this and seems it is working for me.. hope my approach is correct ??

=LET(a,FILTER(Sheet2!$N$2:$N$5,Sheet2!$O$2:$O$5=F$1),MMULT(SEQUENCE(,ROWS(a),,0),COUNTIFS(Sheet3!$Q$2:$Q$5,a,OFFSET(Sheet3!$R$2:$R$5,0,{0,1,2}),$B3,OFFSET(Sheet3!$T$2:$T$5,0,{0}),$G4)))
 
Upvote 0
The columns in your example don't seem to match up with your formula, but it looks reasonable. It looks like you're looking for the 255 or 1200. You don't really need to use OFFSET for the last condition though. Just use Sheet3!$T$2:$T$5 like the first condition.
 
Upvote 0

Forum statistics

Threads
1,214,897
Messages
6,122,141
Members
449,066
Latest member
Andyg666

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