Is Index Match the best option?

oreo haven

Board Regular
Joined
May 15, 2008
Messages
65
I have a report coming from a multi-value database that I am trying to rearrange.
I have almost no experience using Index and Match, but reading up, it seems like the logical step, if I can wrap my hear around building the correct arrays.
My starting data looks like this:

KEYENTRY_DATEINDEX_CODEINDEX_DATA
29470024/24/19INV.NO2019EPI0044
29470024/24/19PO.NO223882
29470024/24/19VENDOR.NO9502
29470024/24/19REC.NUM372347
29470004/24/19INV.NO2019EPI0042
29470004/24/19PO.NO223879
29470004/24/19VENDOR.NO9502
29470004/24/19REC.NUM372349
29470014/24/19INV.NO2019EPI0043
29470014/24/19PO.NO223880
29470014/24/19VENDOR.NO9502
29470014/24/19REC.NUM372348
29470014/24/19CPNUMCP104753

<tbody>
</tbody>

After copying and pasting Unique values from Column A, I would like to use formulas or VBA so that the results are like the following. I thought I could just throw it all into a PiVot Table, but it didn't quite work out. Is INDEX, MATCH the correct route? So, the KEY has to match, and there isn't always going to be data for some of the other columns like CPNUM. Any ideas would be greatly appreciated. I can just use a VLOOKUP for the date, because every instance will be the same. But the formulas in C2 through G2 have me at a loss.

KEYENTRY_DATEINV.NOPO.NOVENDOR.NOREC.NUMCPNUM
29470024/24/20192019EPI00442238829502372347
29470004/24/20192019EPI00422238799502372349
29470014/24/20192019EPI00432238809502372348CP104753

<tbody>
</tbody>
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
If you have Excel ver. 2010 or later try:
Formula in C17 can just be copied across and down as needed.
Excel Workbook
B
174/24/2019
Sheet
 
Upvote 0
Lets try that again. Data didn't post right first time.

you have Excel ver. 2010 or later try:
Formula in C17 can just be copied across and down as needed.
Excel Workbook
ABCDEFG
1KEYENTRY_DATEINDEX_CODEINDEX_DATA
229470024/24/2019INV.NO2019EPI0044
329470024/24/2019PO.NO223882
429470024/24/2019VENDOR.NO9502
529470024/24/2019REC.NUM372347
629470004/24/2019INV.NO2019EPI0042
729470004/24/2019PO.NO223879
829470004/24/2019VENDOR.NO9502
929470004/24/2019REC.NUM372349
1029470014/24/2019INV.NO2019EPI0043
1129470014/24/2019PO.NO223880
1229470014/24/2019VENDOR.NO9502
1329470014/24/2019REC.NUM372348
1429470014/24/2019CPNUMCP104753
15
16KEYENTRY_DATEINV.NOPO.NOVENDOR.NOREC.NUMCPNUM
1729470024/24/20192019EPI00442238829502372347
1829470004/24/20192019EPI00422238799502372349
1929470014/24/20192019EPI00432238809502372348CP104753
Sheet
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,893
Members
449,097
Latest member
dbomb1414

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