Matching products with the same ID code

orangesegments

New Member
Joined
Dec 17, 2019
Messages
1
Hi.

I'm struggling with finding how to solve a particular Excel Problem.

I have a table that comprises of labelled columns with lists below. The columns are as follows with an example of a single transaction:

Unique Transaction IdentifierBusiness AreaCategorySub CategoryProduct CodeSales Quantity
434312132143542433551
43432312 (attachment)322212532492441
43432313 (attachment)321215862494431

Every time a product is sold, attachments can be sold with it and is shown on a separate line. In the above example, the second two products are attachments. The overall sheet has over 1000 transactions and I am trying to find the number of attachments by sub-category sold with each business area. I've tried using index match to show the business area sold in each transaction but am unable to then use the same formula to show the sub-categories because it just matches onto the first instance of the Unique ID and I'm unsure if offset or pivots will help. My end goal is a table along the lines of:

Business Area 12
Sub-CategorySales Quantity
12531
15861
........

Is this possible?
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
You could add 2 columns after Category say (D,E). In Column E (attachment): =IF(ISERROR(FIND("attachment",B2,1)),FALSE, TRUE)
Then in Column D (Parent Business Area): =INDEX(B:B,MATCH(1, (A2=A:A) * (E:E=FALSE), 0))... ctrl shift enter

This will allow you to filter Parent Business area and attachments
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,487
Members
448,967
Latest member
visheshkotha

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