Combining two tables

rumble123

New Member
Joined
Aug 2, 2017
Messages
4
Hello All,

I have problem with creating a new table with correctly sorted data. Here's the issue:

I have two tables with data, first one has a columns named: "product" and "date". It has the dates related to the product. I have also other table (in another sheet) with columns: "product" and "sub-product". In this table we have sub-products assigned to the products (please see the image attachment). I would like to create a table which would change the cells with products into sub-products assigning the corresponding date just like in the image i've attached.

I've tried with vlookup but unfortunately it returns only one value. I've also tried with the 'match' function but It didn't work.

Could you please advise how can I manage this?

https://gyazo.com/d45571e53d99f963bfd06a946d079132
 
Last edited by a moderator:

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

Forum statistics

Threads
1,215,487
Messages
6,125,079
Members
449,205
Latest member
Healthydogs

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