Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Vlookup with col index no. array

I was screwing around at work today and stumbled upon an interesting
way to manipulate v/hlookup-returned values.

For example, an average of two columns - array entered:

{=AVERAGE(VLOOKUP($A12,'[xxx file.xls]Sheet1'!$B$4:$F$10,{4,5},FALSE))}

Anyway, I was kind of tickled when it worked.

Incidentally,

=SUMPRODUCT(VLOOKUP($A12,'[xxx
file.xls]Sheet1'!$B$4:$F$10,{4,5},FALSE))/2

{=SUM(VLOOKUP($A12,'[xxx file.xls]Sheet1'!$B$4:$F$10,{4,5},FALSE))/2}

achieve the same result.

I would be interested to know how people have extended this idea, that
is, using an array of indices in similar formulas.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Vlookup with col index no. array

It is a very common technique to get an array of results which can be passed
to another (array handling) function. M any examples have been posted here,
for example

To add 1 month, but cater for that month having less days and not
over-spilling,

=MIN(DATE(YEAR(A1),MONTH(A1)+{2,1},DAY(A1)*{0,1}))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Edward" wrote in message
oups.com...
I was screwing around at work today and stumbled upon an interesting
way to manipulate v/hlookup-returned values.

For example, an average of two columns - array entered:

{=AVERAGE(VLOOKUP($A12,'[xxx file.xls]Sheet1'!$B$4:$F$10,{4,5},FALSE))}

Anyway, I was kind of tickled when it worked.

Incidentally,

=SUMPRODUCT(VLOOKUP($A12,'[xxx
file.xls]Sheet1'!$B$4:$F$10,{4,5},FALSE))/2

{=SUM(VLOOKUP($A12,'[xxx file.xls]Sheet1'!$B$4:$F$10,{4,5},FALSE))/2}

achieve the same result.

I would be interested to know how people have extended this idea, that
is, using an array of indices in similar formulas.



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
vary the vlookup array depending on the value in a cell Greg Bergin Excel Worksheet Functions 1 June 14th 06 08:58 AM
Using single cell reference as table array argument in Vlookup CornNiblet Excel Worksheet Functions 3 September 22nd 05 09:15 AM
VLOOKUP in SUMPRODUCT array KM01 Excel Worksheet Functions 3 September 14th 05 12:06 AM
Array Function with VLOOKUP CoRrRan Excel Worksheet Functions 15 April 8th 05 05:54 PM
Match, Index, Vlookup, Large....Help Please [email protected] Excel Worksheet Functions 3 December 15th 04 01:38 PM


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