LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Dynamically adjusting Vlookup


Hi,

At work we often paste multiple reports into excel. These reports are
always different sizes. I've created a search function which allows me
to to identify exactly where the report has been pasted. The function
also gathers information about where the report starts and stops. The
problem I'm having is being able to use variables within the Vlookup
function within Excel.

This is what I would like to do:


Dim Column1 as interger
Dim row1 as interger
Dim Column2 as interger
Dim row2 as interger
Dim Column3 as interger
Dim row3 as interger

{Program then assigns values to these varibles based upon the search
conducted.}

then this is what I can't figure out:

What's the syntax for passing my varibles into the vlookup
function?

' I've tried this, and it doesn't work.

=vlookup(cells(row1, column1), cells(row2, column2):cells(row3,
column3),9,false)

How come this won't work?

What I'm hoping to achieve is a dynamically adjusting vlookup field
based upon the inputs from the variables, but I can't seem to get the
syntax correct.


Any help would be greatly appreciated!!



Thanx,


Angusrocks.


--
angusrocks
------------------------------------------------------------------------
angusrocks's Profile: http://www.excelforum.com/member.php...o&userid=25583
View this thread: http://www.excelforum.com/showthread...hreadid=390061

 
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
Adjusting formula for month in vlookup? Tasha Excel Discussion (Misc queries) 3 July 7th 09 09:26 PM
Adjusting series Sandy Charts and Charting in Excel 3 May 12th 07 06:30 PM
Adjusting Formula Jasmine Excel Worksheet Functions 0 June 6th 06 02:24 PM
Adjusting Vlookup Values addie Excel Worksheet Functions 1 August 3rd 05 04:44 PM
adjusting Y-axis P. van de Zwalum Excel Programming 2 February 11th 04 05:01 PM


All times are GMT +1. The time now is 06:29 AM.

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"