Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default VLOOKUP on changing table!!HELP!!lol


Hi guys,

Basically it is a simple problem but no one knows a simple solution. I
am using VLOOKUP to find values fronm a table with about 40 columns,
but sadly I am not in control of this table and the columns order can
change (ie A becomes C and D becomes B) but I dont want to re-write the
code evrytime the column changes. So basically I need a way of using
VLOOKUP but not entering the column number and entering the column name
so it searches for that. So for example, it will look for the column
entitled 'Username' and not just the '7th column in' for example, as in
a few mnths tim,e it will still be called 'Username' but may now be the
9th column in.

Any help is appreciated. Thanks.


--
mozza820
------------------------------------------------------------------------
mozza820's Profile: http://www.excelforum.com/member.php...o&userid=36226
View this thread: http://www.excelforum.com/showthread...hreadid=560154

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default VLOOKUP on changing table!!HELP!!lol


Basically I am ideally looking to replace the column index number in the
Vlookup with a column title? can this be done or does anyone know a way
round this?


--
mozza820
------------------------------------------------------------------------
mozza820's Profile: http://www.excelforum.com/member.php...o&userid=36226
View this thread: http://www.excelforum.com/showthread...hreadid=560154

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default VLOOKUP on changing table!!HELP!!lol


You can use column() function instead of hard coding column number. Just
use this function in Vlookup function. and also you shd subtract no.of
columns from first column to first column of your array.
=vlookup(b1,test!b1:bz100,column(test!d1)-1)


--
blissworks
------------------------------------------------------------------------
blissworks's Profile: http://www.excelforum.com/member.php...o&userid=36156
View this thread: http://www.excelforum.com/showthread...hreadid=560154

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vlookup will not reference a validation/drop down box Dave Excel Discussion (Misc queries) 2 August 19th 05 09:52 PM
VLOOKUP Limitations chris_manning Excel Worksheet Functions 2 August 9th 05 06:23 PM
Convert VLOOKUP to absolute cell reference Rich Excel Discussion (Misc queries) 2 August 6th 05 03:49 AM
make a vlookup using a variable path Alex St-Pierre Excel Worksheet Functions 1 March 2nd 05 11:54 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM


All times are GMT +1. The time now is 04:45 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"