Separate data in a list according to reference list

phithack

New Member
Joined
May 21, 2018
Messages
6
SHEET 1
[TABLE="class: grid, width: 350, align: left"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A
[/TD]
[TD="align: center"]B
[/TD]
[TD="align: center"]C
[/TD]
[TD="align: center"]D
[/TD]
[TD="align: center"]E
[/TD]
[TD="align: center"]F
[/TD]
[TD="align: center"]G
[/TD]
[TD="align: center"]H
[/TD]
[TD="align: center"]I
[/TD]
[TD="align: center"]J
[/TD]
[TD="align: center"]K
[/TD]
[/TR]
[TR]
[TD="align: center"]1
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]FRUIT
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]OTHER
[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]2
[/TD]
[TD="align: center"]NAME
[/TD]
[TD="align: center"]QTY
[/TD]
[TD="align: center"]PRICE
[/TD]
[TD="align: center"][/TD]
[TD="align: center"]NAME
[/TD]
[TD="align: center"]QTY
[/TD]
[TD="align: center"]PRICE
[/TD]
[TD="align: center"][/TD]
[TD="align: center"]NAME
[/TD]
[TD="align: center"]QTY
[/TD]
[TD="align: center"]PRICE
[/TD]
[/TR]
[TR]
[TD="align: center"]3
[/TD]
[TD="align: center"]APPLE
[/TD]
[TD="align: center"]2
[/TD]
[TD="align: center"]100
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]4
[/TD]
[TD="align: center"]PINEAPPLE
[/TD]
[TD="align: center"]1
[/TD]
[TD="align: center"]150
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]5
[/TD]
[TD="align: center"]BAG
[/TD]
[TD="align: center"]3
[/TD]
[TD="align: center"]300
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]6
[/TD]
[TD="align: center"]BANANA
[/TD]
[TD="align: center"]2
[/TD]
[TD="align: center"]200
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]7
[/TD]
[TD="align: center"]PENCIL
[/TD]
[TD="align: center"]1
[/TD]
[TD="align: center"]50
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]8
[/TD]
[TD="align: center"]CALCULATOR
[/TD]
[TD="align: center"]2
[/TD]
[TD="align: center"]275
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]9[/TD]
[TD="align: center"]APPLE
[/TD]
[TD="align: center"]5
[/TD]
[TD="align: center"]300
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]10
[/TD]
[TD="align: center"]STRAWBERRY
[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]500
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]


















FRUIT LIST

[TABLE="class: grid, width: 200, align: left"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A
[/TD]
[TD] B
[/TD]
[TD] C
[/TD]
[/TR]
[TR]
[TD="align: center"]1
[/TD]
[TD="align: center"]NAME
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]2
[/TD]
[TD="align: center"]APPLE
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]3
[/TD]
[TD="align: center"]AVOCADO
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]4
[/TD]
[TD="align: center"]BANANA
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]5
[/TD]
[TD="align: center"]BLACKCURRANT
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]6
[/TD]
[TD="align: center"]DURIAN
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]7
[/TD]
[TD="align: center"]PAPAYA
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]8
[/TD]
[TD="align: center"]PINEAPPLE
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]9
[/TD]
[TD="align: center"]STRAWBERRY
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]














RESULT
[TABLE="class: grid, width: 350, align: left"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A
[/TD]
[TD="align: center"]B
[/TD]
[TD="align: center"]C
[/TD]
[TD="align: center"]D
[/TD]
[TD="align: center"]E
[/TD]
[TD="align: center"]F
[/TD]
[TD="align: center"]G
[/TD]
[TD="align: center"]H
[/TD]
[TD="align: center"]I
[/TD]
[TD="align: center"]J
[/TD]
[TD="align: center"]K
[/TD]
[/TR]
[TR]
[TD="align: center"]1
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]FRUIT
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]OTHER
[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]2
[/TD]
[TD="align: center"]NAME
[/TD]
[TD="align: center"]QTY
[/TD]
[TD="align: center"]PRICE
[/TD]
[TD="align: center"][/TD]
[TD="align: center"]NAME
[/TD]
[TD="align: center"]QTY
[/TD]
[TD="align: center"]PRICE
[/TD]
[TD="align: center"][/TD]
[TD="align: center"]NAME
[/TD]
[TD="align: center"]QTY
[/TD]
[TD="align: center"]PRICE
[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]APPLE
[/TD]
[TD="align: center"]2
[/TD]
[TD="align: center"]100
[/TD]
[TD="align: center"][/TD]
[TD="align: center"]APPLE
[/TD]
[TD="align: center"]2
[/TD]
[TD="align: center"]100
[/TD]
[TD="align: center"][/TD]
[TD="align: center"]BAG
[/TD]
[TD="align: center"]3
[/TD]
[TD="align: center"]300
[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"]PINEAPPLE
[/TD]
[TD="align: center"]1
[/TD]
[TD="align: center"]150
[/TD]
[TD="align: center"][/TD]
[TD="align: center"]PINEAPPLE
[/TD]
[TD="align: center"]1
[/TD]
[TD="align: center"]150
[/TD]
[TD="align: center"][/TD]
[TD="align: center"]PENCIL
[/TD]
[TD="align: center"]1
[/TD]
[TD="align: center"]50
[/TD]
[/TR]
[TR]
[TD="align: center"]5
[/TD]
[TD="align: center"]BAG
[/TD]
[TD="align: center"]3
[/TD]
[TD="align: center"]300
[/TD]
[TD="align: center"][/TD]
[TD="align: center"]BANANA
[/TD]
[TD="align: center"]2
[/TD]
[TD="align: center"]200
[/TD]
[TD="align: center"][/TD]
[TD="align: center"]CALCULATOR
[/TD]
[TD="align: center"]2
[/TD]
[TD="align: center"]275
[/TD]
[/TR]
[TR]
[TD="align: center"]6
[/TD]
[TD="align: center"]BANANA
[/TD]
[TD="align: center"]2
[/TD]
[TD="align: center"]200
[/TD]
[TD="align: center"][/TD]
[TD="align: center"]APPLE
[/TD]
[TD="align: center"]5
[/TD]
[TD="align: center"]300
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]7
[/TD]
[TD="align: center"]PENCIL
[/TD]
[TD="align: center"]1
[/TD]
[TD="align: center"]50
[/TD]
[TD="align: center"][/TD]
[TD="align: center"]STRAWBERRY
[/TD]
[TD="align: center"]3
[/TD]
[TD="align: center"]500
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD="align: center"]CALCULATOR
[/TD]
[TD="align: center"]2
[/TD]
[TD="align: center"]275
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]9
[/TD]
[TD="align: center"]APPLE
[/TD]
[TD="align: center"]5
[/TD]
[TD="align: center"]300
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]10
[/TD]
[TD="align: center"]STRAWBERRY
[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]500
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]


















Hi, I have 2 sheets..
First sheet looks like SHEET 1, and the other sheet includes Fruit name list as a reference list..

Can anyone help me with formula for column E, F, G and column I, J, K in Sheet 1 so it would become like table RESULT

Thank you for your help...
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Forum statistics

Threads
1,224,823
Messages
6,181,185
Members
453,020
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