lookup in values within same table

krrishkrsna

Board Regular
Joined
Jan 31, 2009
Messages
84
hi

sorry if Title given in confusing way

in my data having columns of InvNum,MaterialNum,MaterialName,MaterialName1
[TABLE="width: 282"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]InvNum[/TD]
[TD]Material[/TD]
[TD]MaterialName[/TD]
[TD]MaterialName1[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]AB[/TD]
[TD]ABC[/TD]
[TD]ABC[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]KL[/TD]
[TD][/TD]
[TD]ABC[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]MN[/TD]
[TD][/TD]
[TD]ABC[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]ABL[/TD]
[TD]DEF[/TD]
[TD]DEF[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]GH[/TD]
[TD][/TD]
[TD]ABC[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]IJ[/TD]
[TD]GHI[/TD]
[TD]GHI[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]OP[/TD]
[TD][/TD]
[TD]ABC[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]BC[/TD]
[TD]MNO[/TD]
[TD]MNO[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]DE[/TD]
[TD]JKL[/TD]
[TD]JKL[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]IJL[/TD]
[TD][/TD]
[TD]GHI[/TD]
[/TR]
</tbody>[/TABLE]


1. will do vlookup on Material to get result of MaterialName (ie.,vlookup(material,anothertable,2,0))
2. will do vlookup for materialname1 within the same table to get result of MaterialName1 (ie., vlookup(invoicenum,invoicenum:materialname,3,0))

i think above cleared the doubt to providing your answer :)

i need formula to achieve above result in PowerQuery for MaterialName1
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,225,730
Messages
6,186,700
Members
453,369
Latest member
positivemind

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