Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default VLOOKUP help needed.!!

I have several sheets with tabels using VLOOKUP in adjecent collums.

eg.
=VLOOKUP($A3;'DATA'!$A$6:$DC$283;56) followed by
=VLOOKUP($A3;'DATA'!$A$6:$DC$283;59) etc.

Now I I need to insert extra collums in both the 'DATA', as well as the
VLOOKUP sheets.
However when I insert new collums in the 'DATA' sheets the collumn number in
the VLOOKUP formula stays the same.
I need the collum numbers in the formula to change with the new place in the
'DATA' sheet.

eg.
insert 3 new collums on collumn nr 45
=VLOOKUP($A3;'DATA'!$A$6:$DC$283;56) becomes
=VLOOKUP($A3;'DATA'!$A$6:$DC$283;59)
And =VLOOKUP($A3;'DATA'!$A$6:$DC$283;59) becomes
=VLOOKUP($A3;'DATA'!$A$6:$DC$283;62)

There are just too many to change manually..
Any way to make this work automatically?




  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default VLOOKUP help needed.!!

You can do Find & Replace (CTRL-H) - highlight the offending columns,
then CTRL-H and:

Find What: ;56
Replace With: ;59
Click Replace All

CTRL-H again, then:

Find What: ;59
Replace With: ;62
Click Replace All

Hope this helps.

Pete

On May 21, 8:43*am, RickJB wrote:
I have several sheets with tabels using VLOOKUP in adjecent collums.

eg.
=VLOOKUP($A3;'DATA'!$A$6:$DC$283;56) followed by
=VLOOKUP($A3;'DATA'!$A$6:$DC$283;59) etc.

Now I I need to insert extra collums in both the 'DATA', as well as the
VLOOKUP sheets.
However when I insert new collums in the 'DATA' sheets the collumn number in
the VLOOKUP formula stays the same.
I need the collum numbers in the formula to change with the new place in the
'DATA' sheet.

eg.
insert 3 new collums on collumn nr 45
=VLOOKUP($A3;'DATA'!$A$6:$DC$283;56) becomes
=VLOOKUP($A3;'DATA'!$A$6:$DC$283;59)
And =VLOOKUP($A3;'DATA'!$A$6:$DC$283;59) becomes
=VLOOKUP($A3;'DATA'!$A$6:$DC$283;62)

There are just too many to change manually..
Any way to make this work automatically?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default VLOOKUP help needed.!!

Thanks Pete,

But to do this one collumn at the time will take days and will be very hard
error-prone.
Is this the only way or is it maybe possible to do this for all collums at
the same time?
I mean when inserting new collumns the collumn numbers in the formula will
automatically add the number of inserted collums.

Any tips?


"Pete_UK" wrote:

You can do Find & Replace (CTRL-H) - highlight the offending columns,
then CTRL-H and:

Find What: ;56
Replace With: ;59
Click Replace All

CTRL-H again, then:

Find What: ;59
Replace With: ;62
Click Replace All

Hope this helps.

Pete

On May 21, 8:43 am, RickJB wrote:
I have several sheets with tabels using VLOOKUP in adjecent collums.

eg.
=VLOOKUP($A3;'DATA'!$A$6:$DC$283;56) followed by
=VLOOKUP($A3;'DATA'!$A$6:$DC$283;59) etc.

Now I I need to insert extra collums in both the 'DATA', as well as the
VLOOKUP sheets.
However when I insert new collums in the 'DATA' sheets the collumn number in
the VLOOKUP formula stays the same.
I need the collum numbers in the formula to change with the new place in the
'DATA' sheet.

eg.
insert 3 new collums on collumn nr 45
=VLOOKUP($A3;'DATA'!$A$6:$DC$283;56) becomes
=VLOOKUP($A3;'DATA'!$A$6:$DC$283;59)
And =VLOOKUP($A3;'DATA'!$A$6:$DC$283;59) becomes
=VLOOKUP($A3;'DATA'!$A$6:$DC$283;62)

There are just too many to change manually..
Any way to make this work automatically?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default VLOOKUP help needed.!!

You might consider using index/match

Eg for: =VLOOKUP($A3;'DATA'!$A$6:$DC$283;56)
the equivalent index/match could be:
=INDEX(Data!BD:BD,MATCH($A3,Data!$A:$A,0))

Any subsequent insertion of new columns in sheet: Data
would not disrupt the formula's return
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
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 Help Needed mizzrizz Excel Discussion (Misc queries) 9 June 18th 06 01:52 AM
vlookup vs. if, help needed CraigSA Excel Worksheet Functions 7 May 18th 06 11:19 AM
VLOOKUP help needed PLEASE... Levi Excel Worksheet Functions 2 May 8th 06 08:41 PM
Help needed on VLOOKUP Dr Phibes Excel Discussion (Misc queries) 6 April 13th 06 10:00 AM
Vlookup Help Needed Eaglered Excel Discussion (Misc queries) 1 May 19th 05 10:36 PM


All times are GMT +1. The time now is 09:30 AM.

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

About Us

"It's about Microsoft Excel"