vlookup: how tu use colum names instead of colum numbers

brf82

New Member
Joined
Jul 28, 2010
Messages
2
I have a data base that is feeded by 9 other data bases. There is a set of 50columns but the order of each column is diferent or dynamic in each small database. I need to send the information daily to the major database (pheraps I need to program some macros here)

Then I need to call the function vlookup for a column but I don´t want to be identified by the colum number but the column name, because the order of this columns can be altered by the flow of data that keeps coming(expanding the number of new columns of information)

Can you tell me a function that does this?

I have a solution: I created an associated list with numbers 1,2,3, n that I associate to the names, to sort them out, in the original vlookup structure.
Or maybe I could use a Hlookup inside a vlookup to identify the column name...

Can it be simplified?

Thank you
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

brf82

New Member
Joined
Jul 28, 2010
Messages
2
For the database problem I think will use filters to grab the set of columns from the minor databases to paste them in the major database( but I still need to sort the column structure to fit the major structure first)


For the second problem I found answer here. http://www.mrexcel.com/forum/showthread.php?t=43384

thanks
 

Watch MrExcel Video

Forum statistics

Threads
1,133,278
Messages
5,657,804
Members
418,414
Latest member
ECMdusty

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
Top