Countifs? or other formula?

feni1388

Board Regular
Joined
Feb 19, 2018
Messages
61
Office Version
  1. 2021
Platform
  1. Windows
Hello,

It looks simple but I can't get any idea on how to do it.
If anyone can help, I would really appreciate it.

As you can see from the table below, on the right side is all the details of each item and its delivery code.
Sometimes the same customer code will have 2 or even more delivery code.
In the end, all the delivery code will have to be summarized like the table on the right side.
I don't mind if the whole number is shown again after the slash sign (Order No. 503172/503173)

Delivery codeCustomer codeItem no.Result that I'm trying to achieve
503172HIM03001AB02AB02HIM03001Order No. 503172/3
503172HIM03001AS15AS15HIM03001Order No. 503172/3
503172HIM03001AS25AS25HIM03001Order No. 503172/3
503172HIM03001GI98GI98HIM03001Order No. 503172/3
503172HIM03001KZ15KZ15HIM03001Order No. 503172/3
503172HIM03001AS02AS02HIM03001Order No. 503172/3
503173HIM03001AB03AB03HIM03001Order No. 503172/3
503173HIM03001AB05AB05HIM03001Order No. 503172/3


Thank you in advace.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Try:

Book2 (version 1).xlsb
ABCDEFG
1Delivery codeCustomer codeItem no.Result that I'm trying to achieve
2503172HIM03001AB02AB02HIM03001Order No. 503172/503173
3503172HIM03001AS15AS15HIM03001Order No. 503172/503173
4503172HIM03001AS25AS25HIM03001Order No. 503172/503173
5503172HIM03001GI98GI98HIM03001Order No. 503172/503173
6503172HIM03001KZ15KZ15HIM03001Order No. 503172/503173
7503172HIM03001AS02AS02HIM03001Order No. 503172/503173
8503173HIM03001AB03AB03HIM03001Order No. 503172/503173
9503173HIM03001AB05AB05HIM03001Order No. 503172/503173
Sheet4
Cell Formulas
RangeFormula
G2:G9G2="Order No. "&TEXTJOIN("/",1,UNIQUE(FILTER($A$2:$A$9,$B$2:$B$9=F2)))
 
Upvote 0
Solution

Forum statistics

Threads
1,215,453
Messages
6,124,930
Members
449,195
Latest member
Stevenciu

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