INDEX MATCH using partial "Begins With" lookup

Quinapalus

New Member
Joined
Jul 12, 2017
Messages
1
I'm trying to organise FIX message data using Excel. The challenge here is that different types of FIX message are comprised of different numbers of component tags and not always in the same order; for example (XXXX denotes sensitive values):

A
B
C
D
E
F
G
H
1
FIDEXP
00216793249FILO1
OUT
Heartbeat
49=XXXX
56=FIDESSA
43=N
34=1410
2
FIDEXP

00216793250FILO1

<tbody>
</tbody>

<tbody>
</tbody>
IN
Execution Report
115=XXXX
34=1774
49=FIDESSA
56=XXXX

<tbody>
</tbody>

In order to carry out analysis on the data, I would like to re-organise the Tag data into a cohesive order. I have been trying to do this by creating a second sheet in the workbook that has the Tag prefixes as a header row with the intention of using these a lookup values for relative ranges in the original sheet. The output that I am trying to achieve would look like this:

A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
...
DK
1
34=
35=
36=
37=
38=
39=
40=
41=
42=
43=
44=
45=
46=
47=
48=
49=
50=
51=
52=
53=
54=
55=
56=
...
115=
2
34=1410
43=N
49=XXX
56=FIDESSA
3
34=1774
49=FIDESSA
56=XXXX
115=XXXX

<tbody>
</tbody>

For each cell in the second sheet, I want to define the corresponding row in the first sheet as an array, then search within that array to find a value that begins with the value of the column header and return that value the cell.

I have tried to achieve this using various combinations of INDEX, MATCH and SEARCH in Array Formulae, but have not been able to put together anything that works consistently.

Grateful for any advice on this
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Forum statistics

Threads
1,215,497
Messages
6,125,157
Members
449,208
Latest member
emmac

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