COUNTIF WITH UNIQUE COMBINATION

dannwid

New Member
Joined
Jul 26, 2017
Messages
27
Office Version
  1. 365
Platform
  1. Windows
Hello fellas, I need a little help on countif formula.

I have table with contains No of PO and Vendor Name. Sometimes, some vendors split one PO into 2 or more, hence they appear twice or more.

So, i need to countif every each of vendor by their unique PO. You can see the case in the picture below, I also put the xlsx file.

What combination formula can i use to achieve result in yellow area, with criteria on F4,F5,F6 and so on?

I am hopeful that I describe the case well.

Thank you in advance

Screenshot_13.jpg



EXCEL FILE: DOWNLOAD
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hello, one way to do it could be:

Excel Formula:
=LET(
a,CHOOSECOLS(UNIQUE(B4:C15),2),
GROUPBY(a,a,COUNTA,,0))
 
Upvote 0
How about
Case 123.xlsx
ABCDEFG
1
2formula result goal:
3POVENDORS NAMEVENDORNumber of POs (unique)
4123AAAAAA2
5123AAABBB1
6123AAACCC3
7123AAA
8222AAA
9222AAA
10333BBB
11333BBB
12441CCC
13442CCC
14443CCC
15443CCC
Sheet1
Cell Formulas
RangeFormula
F4:G6F4=GROUPBY(C4:C15,B4:B15,LAMBDA(v, ROWS(UNIQUE(v))),,0)
Dynamic array formulas.
 
Upvote 0
How about
Case 123.xlsx
ABCDEFG
1
2formula result goal:
3POVENDORS NAMEVENDORNumber of POs (unique)
4123AAAAAA2
5123AAABBB1
6123AAACCC3
7123AAA
8222AAA
9222AAA
10333BBB
11333BBB
12441CCC
13442CCC
14443CCC
15443CCC
Sheet1
Cell Formulas
RangeFormula
F4:G6F4=GROUPBY(C4:C15,B4:B15,LAMBDA(v, ROWS(UNIQUE(v))),,0)
Dynamic array formulas.

There is no link to F4? and should i put this formula in F4? My result should be in G4, G5, and G6, hence i think the formulas should be put in G4 G5 G6, no?
 
Upvote 0
The formula goes into a single cell & will spill down & across.
 
Upvote 0
How about
Case 123.xlsx
ABCDEFG
1
2formula result goal:
3POVENDORS NAMEVENDORNumber of POs (unique)
4123AAAAAA2
5123AAABBB1
6123AAACCC3
7123AAA
8222AAA
9222AAA
10333BBB
11333BBB
12441CCC
13442CCC
14443CCC
15443CCC
Sheet1
Cell Formulas
RangeFormula
F4:G6F4=GROUPBY(C4:C15,B4:B15,LAMBDA(v, ROWS(UNIQUE(v))),,0)
Dynamic array formulas.
Fluff - Where does the value for v come from? Thanks.
 
Upvote 0
It's the values from col B that are associated with col C.
 
Upvote 0
That suggests you don't have the groupby function yet.
Try
Case 123.xlsx
BCDEFG
2formula result goal:
3POVENDORS NAMEVENDORNumber of POs (unique)
4123AAAAAA2
5123AAABBB1
6123AAACCC3
7123AAA
8222AAA
9222AAA
10333BBB
11333BBB
12441CCC
13442CCC
14443CCC
15443CCC
16
Sheet1
Cell Formulas
RangeFormula
F4:F6F4=UNIQUE(TOCOL(C4:C100,1))
G4:G6G4=ROWS(UNIQUE(FILTER($B$4:$B$100,$C$4:$C$100=F4)))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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