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

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,214,430
Messages
6,119,438
Members
448,897
Latest member
dukenia71

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