LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using a Macro to perform a VLookup on varying number of rows


A number of get-arounds:

1 - use a named range for the vlookup. Redefine the named range from
macro then go
2 - use the range right down to the bottom of the spreadsheet (this i
the easiest workaround). ie to row 65536. You don't need to worry ho
many rows there are now.
3 - use code to look it up. Depends on what else you're doing.
4 - get a macro to update your vlookup formula depending on the numbe
of rows by using string manipulations to make the C3:F2000 bit.


I'm sure there's more but I use 2 unless there are other thing
happening making the other things worth doing

--
gearo
-----------------------------------------------------------------------
gearoi's Profile: http://www.excelforum.com/member.php...fo&userid=2657
View this thread: http://www.excelforum.com/showthread.php?threadid=40190

 
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
Sorting and grouping data with varying number or rows Vickie Excel Worksheet Functions 1 January 13th 10 09:01 PM
How do I make a chart take into account a varying number of rows? Leo Charts and Charting in Excel 1 June 19th 08 01:44 PM
Formatting/Totalling Macro with varying rows of data MSteckbeck Excel Discussion (Misc queries) 2 February 5th 08 10:41 PM
vba macro to perform custom reporting -transpose from rows to columns vba_newbie New Users to Excel 0 September 12th 07 01:28 PM
Using macro/vba to copy varying ranges of rows BCLivell Excel Discussion (Misc queries) 3 June 6th 07 02:52 PM


All times are GMT +1. The time now is 03:54 PM.

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"