#### Cranners

##### New Member
Hi!

I want to be able to make cells move together if I change the value of one of the headings. I currently have the heading set up to come from another sheet using a vlookup. When I insert a column on the other sheet, (say, Jim) the second table below is what I get, but what I want to occur is the third table below.
 Jeff Mark Phil Height 194 175 166 Weight 81 76 60 Jeff Jim Mark Phil Height 194 175 166 Weight 81 76 60 Jess Jim Mark Phil Height 194 175 166 Weight 81 76 60

<tbody>
</tbody>

Any help would be much appreciated

Thanks

### Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

#### steve the fish

##### Well-known Member
Something like in B2 of your new sheet. Copy across and down as required:

=IFERROR(INDEX(Sheet1!\$B\$2:\$D\$3,MATCH(\$A2,Sheet1!\$A\$2:\$A\$3,0),MATCH(B\$1,Sheet1!\$B\$1:\$D\$1,0)),"")

With the primary table in Sheet1!A1:E3

#### Cranners

##### New Member
The primary table is more like below

 Name City Level Jeff Perth 5 Mark London 2 Phil New York 4

<tbody>
</tbody>

And these Names become the heading of the table in the original post with the formula:
=IFERROR(VLOOKUP(COLUMN()-2,'Sheet1'!\$C\$5:\$F\$50,ROW(),0), "")
and dragged across.

So then what I'm trying to achieve is if I add a row to this table,

 Name City Level Jeff Perth 5 Jim Mark London 2 Phil New York 4

<tbody>
</tbody>

The second table (in the original post), will react as in the third table in the original post, whereas what occurs now is in the second table.

Will your solution still work in this context? Sorry I should have gone into more detail initially

Thanks a bunch!

#### Cranners

##### New Member
Be better frame and contextualize this questions:
Hi,
I have data in a primary table structured like below:

 Name City Level Jeff Perth 5 Mark London 2 Phil New York 4

<tbody>
</tbody>

The names in which, are being input into another sheet using a vlookup, as below:

 Jeff Mark Phil Height 194 175 166 Weight 81 76 60

<tbody>
</tbody>

With the following formula: =IFERROR(VLOOKUP(COLUMN()-2,'Sheet1'!\$C\$5:\$F\$50,ROW(),0), "")
dragged across, accounting for small formatting deviations.

What I'm trying to achieve, is if I add a row to my first table, as below:

 Name City Level Jeff Perth 5 Jim Mark London 2 Phil New York 4

<tbody>
</tbody>

The second table, will react like below:

 Jeff Jim Mark Phil Height 194 175 166 Weight 81 76 60

<tbody>
</tbody>

Instead of what I'm currently getting below:

 Jeff Jim Mark Phil Height 194 175 166 Weight 81 76 60

<tbody>
</tbody>

So, essentially, I want the data below the heading in the second sheet, to move along with the heading if a new Name is added on the first sheet.

Sorry if this is a little confusing to follow

Thanks

1,101,886
Messages
5,483,512
Members
407,397
Latest member
HerbA

### This Week's Hot Topics

• Finding issue in If elseif else with For each Loop
Finding issue in If elseif else with For each Loop I have tried this below code but i'm getting in Y column filled with W005. Colud you please...
• MsgBox Error
Hi Guys, I have the below error show up when i try and run my macro in File1 but works fine if i copy and paste the same code into file2. [ATTACH...
• CELL FORMAT - IF CONDITION
My Cell Format is [B]""0.00" Cr". [/B]But in the cell, it is showing 123.00 for editing. (123 is entry figure). (Data imported from other...
• Show numbers nearly the same
Is this possible. I have a number that can change very time eg 0.00001234 Then I have a lot of numbers 0.0000001, 0.0000002, 0.00000004...