Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 234
Default Using different range names in same function

i have requirement to lookup different ranges in the same
function depending on the day of operation ie vlookup
(a26,range,3,false)where range is one of three differing
ranges - am i able to use a cell reference to change the
range?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using different range names in same function

Rather than a VLookup function... you might consider the function calle
=sumproduct it does what VLookup does and so much more

--
Message posted from http://www.ExcelForum.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Using different range names in same function

you could use the indirect function to do the range or Offset or perhaps
Index

=vlookup(a26,offset(Sheet1!$A$1,a27,0,20,3),3,fals e)

A27 would hold the row offset from A1. You would replace the zero with a
cell reference for a column offset if needed.

or
using choose

=vlookup(a26,choose(A27,Sheet1!A1:C30,Sheet1!M20:O 50,Sheet1!AA100:AC130),3,F
alse)

A27 would contain a 1, 2 or 3

--
Regards,
Tom Ogilvy



"Rob" wrote in message
...
i have requirement to lookup different ranges in the same
function depending on the day of operation ie vlookup
(a26,range,3,false)where range is one of three differing
ranges - am i able to use a cell reference to change the
range?



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
converting email address names in a range of cells to real names John Excel Worksheet Functions 1 May 19th 10 03:44 PM
I need a lookup function using range names! Pam V Excel Worksheet Functions 0 April 22nd 09 09:29 PM
COPYING FORMULA CONTAINING NAMES/RELATIVE RANGE NAMES Bricol Excel Discussion (Misc queries) 0 July 8th 08 03:54 PM
can I use Indirect function within range definitons for names? surreyjed Excel Worksheet Functions 1 November 1st 07 07:14 PM
Help with using range names in sum function soteman2005 Excel Worksheet Functions 2 November 28th 05 04:43 PM


All times are GMT +1. The time now is 02:31 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"