Please help with formula

Andries

Board Regular
Joined
Feb 3, 2011
Messages
127
Hi

Please help me with a formula. I have two tables...the lookup data is in the first table (colums A,B and C...this data is obviously only a small part of the actual data)

Excel Workbook
ABC
2BLOCK/ROW/SEATSUBJECT CODEO/B
3w2-81-1MNP20YT*
4w2-81-2MNP20YT*
5w2-81-3PTL311T*
6w2-81-4PTL311T*
7w2-81-5AMF40AT*
8w2-81-6BMN23BD*
9w2-81-7DLM501TO/B
10w2-81-8DLM501TO/B
11w2-81-9DLM501TO/B
12w2-81-10DLM501TO/B
13w2-82-1DLM501TO/B
14w2-82-2DLM501TO/B
15w2-82-3DLM501TO/B
16w2-82-4DLM501TO/B
17w2-82-5DLM501TO/B
18w2-82-6DLM501TO/B
19w2-82-7DLM501TO/B
20w2-82-8DLM501TO/B
21w2-82-9DLM501TO/B
22w2-82-10DLM501TO/B
23w2-83-1DLM501TO/B
24w2-83-2DLM501TO/B
25w2-83-3DLM501TO/B
26w2-83-4DLM501TO/B
27w2-83-5DLM501TO/B
28w2-83-6DLM501TO/B
29w2-83-7DLM501TO/B
30w2-83-8DLM501TO/B
31w2-83-9DLM501TO/B
32w2-83-10DLM501TO/B
data2



The second table must have the lookup formula to return the subject code in Column I and K and M. The problem that I have is if the subject code has an "O/B" next to it in Column C it must start in a new block

Excel Workbook
HIJKLM
2BLOCK/ROW/SEATSUBJECT CODEBLOCK/ROW/SEATSUBJECT CODEBLOCK/ROW/SEATSUBJECT CODE
3w2-81-1*w2-82-1*w2-83-1*
4w2-81-2*w2-82-2*w2-83-2*
5w2-81-3*w2-82-3*w2-83-3*
6w2-81-4*w2-82-4*w2-83-4*
7w2-81-5*w2-82-5*w2-83-5*
8w2-81-6*w2-82-6*w2-83-6*
9w2-81-7*w2-82-7*w2-83-7*
10w2-81-8*w2-82-8*w2-83-8*
11w2-81-9*w2-82-9*w2-83-9*
12w2-81-10*w2-82-10*w2-83-10*
data2



Please look at the last table...it must be populated like this


Excel Workbook
HIJKLM
14BLOCK/ROW/SEATSUBJECT CODEBLOCK/ROW/SEATSUBJECT CODEBLOCK/ROW/SEATSUBJECT CODE
15w2-81-1MNP20YTw2-82-1DLM501T - O/Bw2-83-1DLM501T - O/B
16w2-81-2MNP20YTw2-82-2DLM501T - O/Bw2-83-2DLM501T - O/B
17w2-81-3PTL311Tw2-82-3DLM501T - O/Bw2-83-3DLM501T - O/B
18w2-81-4PTL311Tw2-82-4DLM501T - O/Bw2-83-4DLM501T - O/B
19w2-81-5AMF40ATw2-82-5DLM501T - O/Bw2-83-5DLM501T - O/B
20w2-81-6BMN23BDw2-82-6DLM501T - O/Bw2-83-6DLM501T - O/B
21w2-81-7*w2-82-7DLM501T - O/Bw2-83-7DLM501T - O/B
22w2-81-8*w2-82-8DLM501T - O/Bw2-83-8DLM501T - O/B
23w2-81-9*w2-82-9DLM501T - O/Bw2-83-9DLM501T - O/B
24w2-81-10*w2-82-10DLM501T - O/Bw2-83-10DLM501T - O/B
data2


It is currently looking like this which is not correct and it must look like the above table

Excel Workbook
HIJKLM
14BLOCK/ROW/SEATSUBJECT CODEBLOCK/ROW/SEATSUBJECT CODEBLOCK/ROW/SEATSUBJECT CODE
15w2-81-1MNP20YTw2-82-1DLM501T - O/Bw2-83-1DLM501T - O/B
16w2-81-2MNP20YTw2-82-2DLM501T - O/Bw2-83-2DLM501T - O/B
17w2-81-3PTL311Tw2-82-3DLM501T - O/Bw2-83-3DLM501T - O/B
18w2-81-4PTL311Tw2-82-4DLM501T - O/Bw2-83-4DLM501T - O/B
19w2-81-5AMF40ATw2-82-5DLM501T - O/Bw2-83-5DLM501T - O/B
20w2-81-6BMN23BDw2-82-6DLM501T - O/Bw2-83-6DLM501T - O/B
21w2-81-7DLM501T - O/Bw2-82-7DLM501T - O/Bw2-83-7DLM501T - O/B
22w2-81-8DLM501T - O/Bw2-82-8DLM501T - O/Bw2-83-8DLM501T - O/B
23w2-81-9DLM501T - O/Bw2-82-9DLM501T - O/Bw2-83-9DLM501T - O/B
24w2-81-10DLM501T - O/Bw2-82-10DLM501T - O/Bw2-83-10DLM501T - O/B
data2


Thank you in advance
Dries
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Not sure I fully understand about the 3 blocks, but see if this is what you want. Formulas copied down.

I3: =IF(VLOOKUP(H3,$A$3:$C$300,3,0)="O/B","",VLOOKUP(H3,$A$3:$B$300,2,0))
K3: =VLOOKUP(J3,$A$3:$B$300,2,0)
M3: =VLOOKUP(L3,$A$3:$B$300,2,0)
 
Upvote 0
Hi Peter

Thank you for your reply but I need 1 formula for all cells. The blocks are actually underneath each other.The formula works fine if there are no O/B's. What I need it to do is to skip a few lines (I21 to I24) and then continue to populate the subject codes with an O/B next to it in cell I25.

Hope this explains it better

Excel Workbook
HI
14BLOCK/ROW/SEATSUBJECT CODE
15w2-81-1MNP20YT
16w2-81-2MNP20YT
17w2-81-3PTL311T
18w2-81-4PTL311T
19w2-81-5AMF40AT
20w2-81-6BMN23BD
21w2-81-7*
22w2-81-8*
23w2-81-9*
24w2-81-10*
25w2-82-1*
26w2-82-2*
27w2-82-3*
28w2-82-4*
29w2-82-5*
30w2-82-6*
31w2-82-7*
32w2-82-8*
33w2-82-9*
34w2-82-10*
35w2-83-1*
36w2-83-2*
37w2-83-3*
38w2-83-4*
39w2-83-5*
40w2-83-6*
41w2-83-7*
42w2-83-8*
43w2-83-9*
44w2-83-10*
data2
 
Upvote 0
Like this?

Excel Workbook
ABCDEFGHI
1
2BLOCK/ROW/SEATSUBJECT CODEO/B
3w2-81-1MNP20YT
4w2-81-2MNP20YT
5w2-81-3PTL311T
6w2-81-4PTL311T
7w2-81-5AMF40AT
8w2-81-6BMN23BD
9w2-81-7DLM501TO/B
10w2-81-8DLM501TO/B
11w2-81-9DLM501TO/B
12w2-81-10DLM501TO/B
13w2-82-1DLM501TO/B
14w2-82-2DLM501TO/BBLOCK/ROW/SEATSUBJECT CODE
15w2-82-3DLM501TO/Bw2-81-1MNP20YT
16w2-82-4DLM501TO/Bw2-81-2MNP20YT
17w2-82-5DLM501TO/Bw2-81-3PTL311T
18w2-82-6DLM501TO/Bw2-81-4PTL311T
19w2-82-7DLM501TO/Bw2-81-5AMF40AT
20w2-82-8DLM501TO/Bw2-81-6BMN23BD
21w2-82-9DLM501TO/Bw2-81-7
22w2-82-10DLM501TO/Bw2-81-8
23w2-83-1DLM501TO/Bw2-81-9
24w2-83-2DLM501TO/Bw2-81-10
25w2-83-3DLM501TO/Bw2-82-1DLM501T
26w2-83-4DLM501TO/Bw2-82-2DLM501T
27w2-83-5DLM501TO/Bw2-82-3DLM501T
28w2-83-6DLM501TO/Bw2-82-4DLM501T
29w2-83-7DLM501TO/Bw2-82-5DLM501T
30w2-83-8DLM501TO/Bw2-82-6DLM501T
31w2-83-9DLM501TO/Bw2-82-7DLM501T
32w2-83-10DLM501TO/Bw2-82-8DLM501T
33w2-82-9DLM501T
34w2-82-10DLM501T
35w2-83-1DLM501T
36w2-83-2DLM501T
37w2-83-3DLM501T
38w2-83-4DLM501T
39w2-83-5DLM501T
40w2-83-6DLM501T
41w2-83-7DLM501T
42w2-83-8DLM501T
43w2-83-9DLM501T
44w2-83-10DLM501T
VLOOKUP



Excel jeanie tip:
Not sure if you are aware that you can use the ‘Analyse range (Forum)’ field near the top left of the Excel jeanie screen to restrict the number of formulas generated. In that field, you can use Ctrl+Click/Drag to select multiple disjoint ranges if required. There is generally no need to display multiple formulas that are basically the same, it just fills up the board. Note that I have shown just one formula in my post because the others are just copied down
 
Upvote 0
Hi Peter

I was too quick in saying it is working...although it does work it should carry on with the subject codes where it stopped...meaning that if you look at cell I20 the column H value is (w2-81-6). Cell I21 value (w2-81-7) should start at I25(w2-82-1). Currently it is returning (w2-82-1) value and not (w2-81-7)

Hope I explained it clearly.

thx

Dries
 
Upvote 0
I was too quick in saying it is working...although it does work it should carry on with the subject codes where it stopped...meaning that if you look at cell I20 the column H value is (w2-81-6). Cell I21 value (w2-81-7) should start at I25(w2-82-1). Currently it is returning (w2-82-1) value and not (w2-81-7)
I don't understand this description. For the data you posted in post #1, could you post a screen shot (without any formulas) of what results you expect in columns H:I?
 
Upvote 0
Hi Peter

The code must look at table 1 and return the subject code to table 2 but when the there is a "O/B" status in column C then it should carry on in the green block for argument sake.

in the first table at cell B9 you find a subject with an O/B status...the code or function should then skip cells B9-12 because it is still part of the "81"rows and continue in cells B13 as shown in table 2



<TABLE style="BACKGROUND-COLOR: #ffffff; PADDING-LEFT: 2pt; PADDING-RIGHT: 2pt; FONT-FAMILY: Calibri,Arial; FONT-SIZE: 11pt" border=1 cellSpacing=0 cellPadding=0><COLGROUP><COL style="WIDTH: 30px; FONT-WEIGHT: bold"><COL style="WIDTH: 163px"><COL style="WIDTH: 140px"><COL style="WIDTH: 78px"><COL style="WIDTH: 187px"><COL style="WIDTH: 163px"><COL style="WIDTH: 140px"><COL style="WIDTH: 38px"></COLGROUP><TBODY><TR style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt; FONT-WEIGHT: bold"><TD> </TD><TD>A</TD><TD>B</TD><TD>C</TD><TD>D</TD><TD>E</TD><TD>F</TD><TD>G</TD></TR><TR style="HEIGHT: 36px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">2</TD><TD style="TEXT-ALIGN: center; FONT-WEIGHT: bold">BLOCK/ROW/SEAT</TD><TD style="TEXT-ALIGN: center; FONT-WEIGHT: bold">SUBJECT CODE</TD><TD style="TEXT-ALIGN: center; FONT-WEIGHT: bold">STATUS</TD><TD style="FONT-WEIGHT: bold"> </TD><TD style="TEXT-ALIGN: center; FONT-WEIGHT: bold">BLOCK/ROW/SEAT</TD><TD style="TEXT-ALIGN: center; FONT-WEIGHT: bold">SUBJECT CODE</TD><TD style="TEXT-ALIGN: center; FONT-WEIGHT: bold">STATUS</TD></TR><TR style="HEIGHT: 24px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">3</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00; FONT-SIZE: 12pt">w2-81-1</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">MNP20YT</TD><TD style="FONT-SIZE: 12pt"> </TD><TD> </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00; FONT-SIZE: 12pt">w2-81-1</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">MNP20YT</TD><TD style="FONT-SIZE: 12pt"> </TD></TR><TR style="HEIGHT: 24px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">4</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00; FONT-SIZE: 12pt">w2-81-2</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">MNP20YT</TD><TD style="FONT-SIZE: 12pt"> </TD><TD> </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00; FONT-SIZE: 12pt">w2-81-2</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">MNP20YT</TD><TD style="FONT-SIZE: 12pt"> </TD></TR><TR style="HEIGHT: 24px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">5</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00; FONT-SIZE: 12pt">w2-81-3</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">PTL311T</TD><TD style="FONT-SIZE: 12pt"> </TD><TD> </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00; FONT-SIZE: 12pt">w2-81-3</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">PTL311T</TD><TD style="FONT-SIZE: 12pt"> </TD></TR><TR style="HEIGHT: 24px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">6</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00; FONT-SIZE: 12pt">w2-81-4</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">PTL311T</TD><TD style="FONT-SIZE: 12pt"> </TD><TD> </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00; FONT-SIZE: 12pt">w2-81-4</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">PTL311T</TD><TD style="FONT-SIZE: 12pt"> </TD></TR><TR style="HEIGHT: 24px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">7</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00; FONT-SIZE: 12pt">w2-81-5</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">AMF40AT</TD><TD style="FONT-SIZE: 12pt"> </TD><TD> </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00; FONT-SIZE: 12pt">w2-81-5</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">AMF40AT</TD><TD style="FONT-SIZE: 12pt"> </TD></TR><TR style="HEIGHT: 24px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">8</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00; FONT-SIZE: 12pt">w2-81-6</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">BMN23BD</TD><TD style="FONT-SIZE: 12pt"> </TD><TD> </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00; FONT-SIZE: 12pt">w2-81-6</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">BMN23BD</TD><TD style="FONT-SIZE: 12pt"> </TD></TR><TR style="HEIGHT: 24px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">9</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00; FONT-SIZE: 12pt">w2-81-7</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">DLM501T</TD><TD style="TEXT-ALIGN: center; FONT-SIZE: 12pt">O/B</TD><TD> </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00; FONT-SIZE: 12pt">w2-81-7</TD><TD> </TD><TD> </TD></TR><TR style="HEIGHT: 24px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">10</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00; FONT-SIZE: 12pt">w2-81-8</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">DLM501T</TD><TD style="TEXT-ALIGN: center; FONT-SIZE: 12pt">O/B</TD><TD> </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00; FONT-SIZE: 12pt">w2-81-8</TD><TD> </TD><TD> </TD></TR><TR style="HEIGHT: 24px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">11</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00; FONT-SIZE: 12pt">w2-81-9</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">DLM501T</TD><TD style="TEXT-ALIGN: center; FONT-SIZE: 12pt">O/B</TD><TD> </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00; FONT-SIZE: 12pt">w2-81-9</TD><TD> </TD><TD> </TD></TR><TR style="HEIGHT: 24px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">12</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00; FONT-SIZE: 12pt">w2-81-10</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">DLM501T</TD><TD style="TEXT-ALIGN: center; FONT-SIZE: 12pt">O/B</TD><TD> </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff00; FONT-SIZE: 12pt">w2-81-10</TD><TD> </TD><TD> </TD></TR><TR style="HEIGHT: 24px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">13</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #99cc00; FONT-SIZE: 12pt">w2-82-1</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">DLM501T</TD><TD style="TEXT-ALIGN: center; FONT-SIZE: 12pt">O/B</TD><TD> </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #99cc00; FONT-SIZE: 12pt">w2-82-1</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">DLM501T</TD><TD style="TEXT-ALIGN: center; FONT-SIZE: 12pt">O/B</TD></TR><TR style="HEIGHT: 24px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">14</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #99cc00; FONT-SIZE: 12pt">w2-82-2</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">DLM501T</TD><TD style="TEXT-ALIGN: center; FONT-SIZE: 12pt">O/B</TD><TD> </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #99cc00; FONT-SIZE: 12pt">w2-82-2</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">DLM501T</TD><TD style="TEXT-ALIGN: center; FONT-SIZE: 12pt">O/B</TD></TR><TR style="HEIGHT: 24px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">15</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #99cc00; FONT-SIZE: 12pt">w2-82-3</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">DLM501T</TD><TD style="TEXT-ALIGN: center; FONT-SIZE: 12pt">O/B</TD><TD> </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #99cc00; FONT-SIZE: 12pt">w2-82-3</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">DLM501T</TD><TD style="TEXT-ALIGN: center; FONT-SIZE: 12pt">O/B</TD></TR><TR style="HEIGHT: 24px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">16</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #99cc00; FONT-SIZE: 12pt">w2-82-4</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">DLM501T</TD><TD style="TEXT-ALIGN: center; FONT-SIZE: 12pt">O/B</TD><TD> </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #99cc00; FONT-SIZE: 12pt">w2-82-4</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">DLM501T</TD><TD style="TEXT-ALIGN: center; FONT-SIZE: 12pt">O/B</TD></TR><TR style="HEIGHT: 24px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">17</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #99cc00; FONT-SIZE: 12pt">w2-82-5</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">DLM501T</TD><TD style="TEXT-ALIGN: center; FONT-SIZE: 12pt">O/B</TD><TD> </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #99cc00; FONT-SIZE: 12pt">w2-82-5</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">DLM501T</TD><TD style="TEXT-ALIGN: center; FONT-SIZE: 12pt">O/B</TD></TR><TR style="HEIGHT: 24px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">18</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #99cc00; FONT-SIZE: 12pt">w2-82-6</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">DLM501T</TD><TD style="TEXT-ALIGN: center; FONT-SIZE: 12pt">O/B</TD><TD> </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #99cc00; FONT-SIZE: 12pt">w2-82-6</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">DLM501T</TD><TD style="TEXT-ALIGN: center; FONT-SIZE: 12pt">O/B</TD></TR><TR style="HEIGHT: 24px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">19</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #99cc00; FONT-SIZE: 12pt">w2-82-7</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">DLM501T</TD><TD style="TEXT-ALIGN: center; FONT-SIZE: 12pt">O/B</TD><TD> </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #99cc00; FONT-SIZE: 12pt">w2-82-7</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">DLM501T</TD><TD style="TEXT-ALIGN: center; FONT-SIZE: 12pt">O/B</TD></TR><TR style="HEIGHT: 24px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">20</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #99cc00; FONT-SIZE: 12pt">w2-82-8</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">DLM501T</TD><TD style="TEXT-ALIGN: center; FONT-SIZE: 12pt">O/B</TD><TD> </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #99cc00; FONT-SIZE: 12pt">w2-82-8</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">DLM501T</TD><TD style="TEXT-ALIGN: center; FONT-SIZE: 12pt">O/B</TD></TR><TR style="HEIGHT: 24px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">21</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #99cc00; FONT-SIZE: 12pt">w2-82-9</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">DLM501T</TD><TD style="TEXT-ALIGN: center; FONT-SIZE: 12pt">O/B</TD><TD> </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #99cc00; FONT-SIZE: 12pt">w2-82-9</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">DLM501T</TD><TD style="TEXT-ALIGN: center; FONT-SIZE: 12pt">O/B</TD></TR><TR style="HEIGHT: 24px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">22</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #99cc00; FONT-SIZE: 12pt">w2-82-10</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">DLM501T</TD><TD style="TEXT-ALIGN: center; FONT-SIZE: 12pt">O/B</TD><TD> </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #99cc00; FONT-SIZE: 12pt">w2-82-10</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">DLM501T</TD><TD style="TEXT-ALIGN: center; FONT-SIZE: 12pt">O/B</TD></TR><TR style="HEIGHT: 24px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">23</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #33cccc; FONT-SIZE: 12pt">w2-83-1</TD><TD style="FONT-FAMILY: Arial"> </TD><TD style="FONT-SIZE: 12pt"> </TD><TD> </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #33cccc; FONT-SIZE: 12pt">w2-83-1</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">DLM501T</TD><TD style="TEXT-ALIGN: center; FONT-SIZE: 12pt">O/B</TD></TR><TR style="HEIGHT: 24px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">24</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #33cccc; FONT-SIZE: 12pt">w2-83-2</TD><TD style="FONT-FAMILY: Arial"> </TD><TD style="FONT-SIZE: 12pt"> </TD><TD> </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #33cccc; FONT-SIZE: 12pt">w2-83-2</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">DLM501T</TD><TD style="TEXT-ALIGN: center; FONT-SIZE: 12pt">O/B</TD></TR><TR style="HEIGHT: 24px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">25</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #33cccc; FONT-SIZE: 12pt">w2-83-3</TD><TD style="FONT-FAMILY: Arial"> </TD><TD style="FONT-SIZE: 12pt"> </TD><TD> </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #33cccc; FONT-SIZE: 12pt">w2-83-3</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">DLM501T</TD><TD style="TEXT-ALIGN: center; FONT-SIZE: 12pt">O/B</TD></TR><TR style="HEIGHT: 24px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">26</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #33cccc; FONT-SIZE: 12pt">w2-83-4</TD><TD style="FONT-FAMILY: Arial"> </TD><TD style="FONT-SIZE: 12pt"> </TD><TD> </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #33cccc; FONT-SIZE: 12pt">w2-83-4</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial">DLM501T</TD><TD style="TEXT-ALIGN: center; FONT-SIZE: 12pt">O/B</TD></TR></TBODY></TABLE>


Excel tables to the web >> http://www.excel-jeanie-html.de/index.php?f=1" target="_blank"> Excel Jeanie HTML 4
 
Upvote 0
You seem to keep swapping columns and rows which makes it a bit tricky to follow. However, what you have just shown in columns E:F appears to be identical to columns H:I in my post #4. You initially said that was what you wanted, then you said it wasn't what you wanted now your last screen shot appears to again say it is what you want.

Maybe the problem in trying to explain what you want is that you have so many identical values down your columns so it is impossible to tell which "DLM501T" is being returned by the formula.

Is it as simple as this? (If not please make up some new dummy data that has all different values down column B so we can see exactly where they are turning up in column F)

Excel Workbook
ABCDEF
2BLOCK/ROW/SEATSUBJECT CODEO/BBLOCK/ROW/SEATSUBJECT CODE
3w2-81-1MNP20YTw2-81-1MNP20YT
4w2-81-2MNP20YTw2-81-2MNP20YT
5w2-81-3PTL311Tw2-81-3PTL311T
6w2-81-4PTL311Tw2-81-4PTL311T
7w2-81-5AMF40ATw2-81-5AMF40AT
8w2-81-6BMN23BDw2-81-6BMN23BD
9w2-81-7DLM501TO/Bw2-81-7
10w2-81-8DLM501TO/Bw2-81-8
11w2-81-9DLM501TO/Bw2-81-9
12w2-81-10DLM501TO/Bw2-81-10
13w2-82-1DLM501TO/Bw2-82-1DLM501T
14w2-82-2DLM501TO/Bw2-82-2DLM501T
15w2-82-3DLM501TO/Bw2-82-3DLM501T
16w2-82-4DLM501TO/Bw2-82-4DLM501T
17w2-82-5DLM501TO/Bw2-82-5DLM501T
18w2-82-6DLM501TO/Bw2-82-6DLM501T
Formula
 
Upvote 0

Forum statistics

Threads
1,224,520
Messages
6,179,267
Members
452,902
Latest member
Knuddeluff

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