Assigning column values to a heading

Status
Not open for further replies.

Cranners

New Member
Joined
Jun 17, 2019
Messages
5
Hi,
Yesterday I posted a similar question to this one but figured more context is needed in order for a solution to work for me :(
For context, I have data in a primary table structured like below:

NameCityLevel
JeffPerth5
MarkLondon2
PhilNew York4

<tbody>
</tbody>


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


Jeff
MarkPhil
Height194175166
Weight817660

<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:


NameCityLevel
JeffPerth5
Jim
MarkLondon2
PhilNew York4

<tbody>
</tbody>

The second table, will react like below:


JeffJimMarkPhil
Height194175166
Weight817660

<tbody>
</tbody>

Instead of what I'm currently getting below:


JeffJimMarkPhil
Height194175166
Weight817660


<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 :) :)
 

Some videos you may like

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Status
Not open for further replies.

Watch MrExcel Video

Forum statistics

Threads
1,109,127
Messages
5,526,989
Members
409,733
Latest member
revender17

This Week's Hot Topics

Top