Variable data in cell

jfarrackand

New Member
Joined
Oct 9, 2014
Messages
5
Hello, I have a doozy of a question.
I have multiple cells with this type of data

aaaaa;bbbbb;ccccc;
ddddd;eeeee
bbbbb;nnnnn;hhhhh;qqqqq

I have to perform a lookup on each 5 character code and the cells can hold up to 14 five character codes

Here is what I have so far
=IF(LEN(A1>4),INDEX($C:$C,MATCH(MID(A1,1,5),$D:$D,0)),"")&","&IF(LEN(A1>10),INDEX($C:$C,MATCH(MID(A1,7,5),$D:$D,0)),"")&","&IF(LEN(A1>16),INDEX($C:$C,MATCH(MID(A1,13,5),$D:$D,0)),"")

This formula will only work if the cell has 3 or more codes
I was trying to setup the formula to give a blank if the length was greater len(A1) - 2

Any help?


<colgroup><col></colgroup><tbody>
</tbody>
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
It would make sense to split them into separate columns but the actual data source is a dynamic 100 rows by 100 columns.
Each cell can be filled or not filled (and of variable length)

I found the culprit
=IF(LEN(A1>4)
should be
=IF(LEN(A1)>4

 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,391
Members
448,957
Latest member
Hat4Life

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