Count PO's per Supplier

jlp

New Member
Joined
Feb 14, 2024
Messages
27
Office Version
  1. 365
Platform
  1. Windows
I know this has been asked a number of ways and I feel I have got myself so convoluted with so much information I cannot make heads or tails out of how I need to write this formula

I have a spreadsheet
Suppl NamePO
Supplier A41058
Supplier A41099
Supplier A41099
Supplier A41166
Supplier A41271
Supplier B41059
Supplier B41059
Supplier C41052
Supplier D41136
Supplier E41157
Supplier E41168
Supplier F41139

I want the number of unique PO's per Supplier, such as:
Supplier A 4
Supplier B 1

For the life of me I cannot figure out how to do this.

Please help!
 

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.
That means you don't have choosecols, although as Joe said, I'm surprised you don't get a #name error.
Yeah, that is what was throwing me off. Had we seen that error (like we typically do), I would have expected that they did not have all the functions used in that formula.
But since they have 365 listed as their Office Version, and were not getting any errors, I discounted that as a possibility.
Now I know better!

Anyway, glad we were able to get to the bottom of it and you have a working solution now (thanks for the assist, Fluff!).
 
Upvote 0
EVERYTHING IS WORKING NOW!!!

Thank you, thank you, thank you!

This Formula worked:
=LET(a,INDEX(UNIQUE($A$2:$B$13),,1),COUNTA(FILTER(a,a=$E2)))

And this one worked when I did Cntl+Shift+Enter
 
Upvote 0
Do not use Ctrl shift enter, it is not needed in 365.
 
Upvote 0
jlp,
When marking a post as the solution, we want to mark the post that actually contains the formula that worked for you.
I re-marked it to Fluff's formula, as that is the one that worked for you.
 
Upvote 0
jlp,
When marking a post as the solution, we want to mark the post that actually contains the formula that worked for you.
I re-marked it to Fluff's formula, as that is the one that worked for you.
Thank you...I was trying to mark the correct one I guess I missed the "marked"
:)
 
Upvote 0
One more question (I hope).

I now want to do the same thing, but count a different column looking for the word "TRUE".
Basically this:
For Supplier A how many times does the word "TRUE" appear in Col XX
 
Upvote 0
One more question (I hope).

I now want to do the same thing, but count a different column looking for the word "TRUE".
Basically this:
For Supplier A how many times does the word "TRUE" appear in Col XX
Is it possible for this situation to occur? This will assist in creating a solution.
A​
B​
XX​
Supplier A41099TRUE
Supplier A41099FALSE
 
Upvote 0
Sorry...you have me thinking...one PO can have several receipts against it. Of those receipts some could have been "On time (false)" and some could have been "Late (True)".

So...I have the number of PO's per Supplier but the number of receipts are NOT a 1:1 comparison. So out of the number of receipts per supplier I would want to know how many receipts were late and how many were on time.

See example here:
OOP's a little too much info in that last spreadsheet - here is a simplified version

:)
 
Last edited:
Upvote 0
So, you are no longer looking for unique PO #, then?

If so:
* To get the number of Receipts per Supplier:
Excel Formula:
=COUNTIF($A$2:$A$16,"Supplier A")
* To get the number of Receipts per Supplier that were on time:
Excel Formula:
=SUM(FILTER(IF($E$2:$E$16<=$D$2:$D$16,1,0),$A$2:$A$16="Supplier A"))
* To get the number of Receipts per Supplier that were late:
Excel Formula:
=SUM(FILTER(IF($E$2:$E$16<=$D$2:$D$16,0,1),$A$2:$A$16="Supplier A"))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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