Counting and Indexing?

jlp

New Member
Joined
Feb 14, 2024
Messages
27
Office Version
  1. 365
Platform
  1. Windows
I asked a similar question previously and thought I could apply what I learned from that question to this question - but somewhere along the line I got lost.

What I want to do seems pretty easy and it SHOULD be something I could figure out on my own but I think what I'm missing is the understanding of how the formula's/functions can work together to get my answer.

Below, please find a mock up of what I want to achieve.
1. I want to return the number of "True's" given for Supplier A, then the number of "False's" given for Supplier B.
Then I want it to go down to the next Supplier and have it give me the number of "True's" for that Supplier, then the number of "False's" for that supplier; and so on.
Suppl NamePO
TRUE​
FALSE​
Supplier ATRUESupplier A
2​
3​
Supplier ATRUESupplier B
2​
0​
Supplier AFALSESupplier C
0​
1​
Supplier AFALSESupplier D
0​
1​
Supplier AFALSESupplier E
1​
1​
Supplier BTRUESupplier F
1​
0​
Supplier BTRUE
Supplier CFALSE
Supplier DFALSE
Supplier ETRUE
Supplier EFALSE
Supplier FTRUE

So from my previous question I understand that I want to use pcs/parts from the following formula:
=LET(a,INDEX(UNIQUE($A$3:$B$62),,1),COUNTA(FILTER(a,a=$M3)))
The part of the formula that is in blue is the part I'm not sure what to do with. I'm assuming that I want to do some kind of COUNT but I'm not sure how to specify the counting of "TRUE" and "FALSE".

Thank you for any feedback you can give me.
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
How about
Fluff.xlsm
ABCDEF
1Suppl NamePOTRUEFALSE
2Supplier ATRUESupplier A23
3Supplier ATRUESupplier B20
4Supplier AFALSESupplier C01
5Supplier AFALSESupplier D01
6Supplier AFALSESupplier E11
7Supplier BTRUESupplier F10
8Supplier BTRUE
9Supplier CFALSE
10Supplier DFALSE
11Supplier ETRUE
12Supplier EFALSE
13Supplier FTRUE
14
Sheet6
Cell Formulas
RangeFormula
D2:D7D2=UNIQUE(A2:A13)
E2:F7E2=COUNTIFS(A:A,D2#,B:B,E1:F1)
Dynamic array formulas.
 
Upvote 0
Solution
Clear cells in the region & then re-enter the two formula in D2 & E2 only.
 
Upvote 0
YOu need the words TRUE and FALSE in E1 and F1, I think.
Nevermind, I did not get a notice that there was a new post, before I hit send.
 
Upvote 0
I missed that detail - of course that fixed my issue!

Thank you so much - and I do understand the formula!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,312
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