PC Review


Reply
Thread Tools Rate Thread

Adjusting lookup range

 
 
=?Utf-8?B?U25hcmE=?=
Guest
Posts: n/a
 
      1st Oct 2007
Hello - I am using a lookup function e.g lookup(a1, b1:c55) - but I would
like to be able to ajust the range of the lookup vector based on values in
other cells.

E.g. I would like to be able to type 3 and 21 into cells M1 and N1 and make
my formula adjust to Lookup(a1, b3:c21).

Does anyone have any ideas?

Thanks so much!


 
Reply With Quote
 
 
 
 
Pete_UK
Guest
Posts: n/a
 
      1st Oct 2007
Try this:

=LOOKUP(A1,INDIRECT("B"&M1&":C"&N1))

Hope this helps.

Pete

On Oct 1, 5:00 pm, Snara <Sn...@discussions.microsoft.com> wrote:
> Hello - I am using a lookup function e.g lookup(a1, b1:c55) - but I would
> like to be able to ajust the range of the lookup vector based on values in
> other cells.
>
> E.g. I would like to be able to type 3 and 21 into cells M1 and N1 and make
> my formula adjust to Lookup(a1, b3:c21).
>
> Does anyone have any ideas?
>
> Thanks so much!



 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      1st Oct 2007
=LOOKUP(A1, OFFSET(B3,,,N1-M1+1,2))


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Snara" <(E-Mail Removed)> wrote in message
news:F5FCA6A2-8966-4628-B314-(E-Mail Removed)...
> Hello - I am using a lookup function e.g lookup(a1, b1:c55) - but I would
> like to be able to ajust the range of the lookup vector based on values in
> other cells.
>
> E.g. I would like to be able to type 3 and 21 into cells M1 and N1 and
> make
> my formula adjust to Lookup(a1, b3:c21).
>
> Does anyone have any ideas?
>
> Thanks so much!
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adjusting To Current Row Range in Marco tmdrake Microsoft Excel Misc 0 19th May 2008 09:19 PM
Adjusting the range of a script jsd219 Microsoft Excel Programming 0 31st Oct 2006 07:56 PM
Adjusting a formula cell range =?Utf-8?B?SmFtaWU=?= Microsoft Excel Misc 1 26th May 2006 05:00 PM
HLOOKUP - Adjusting the lookup value... Regnab Microsoft Excel Misc 3 22nd May 2006 11:14 AM
adjusting the range of cells in macro CJ Microsoft Excel Worksheet Functions 0 29th Jul 2003 11:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:14 AM.