#1   Report Post  
Ankur
 
Posts: n/a
Default vlookup limitation

when there are common refrence appearing in different cells in same column
for which we are using lookup function then it picks only the first value
from the reference sheet, is there any solution for this?

Thanks for your help
  #2   Report Post  
Dave O
 
Posts: n/a
Default

VLOOKUP is doing its job: finding the first instance in a list, and
returning a value. Do you need to sum all the values associated with
your lookup item? If yes then try SUMIF.

  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

Ankur,

you can do it with

=INDEX(B2:B10,SMALL(IF(A2:A10=C1,ROW(A2:A10)-1,""),ROW(A2:A10)-1))

where C1 holds the value to lookup, A2:A10 holds the lookup values, and
B2:B10 holds the values to list.

Then drag and copy this formula down for your anticipated maximum number of
hits, and with all cells still selected, hit F2, and then commit with
Ctrl-Shift-Enter as it is an array formula.


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Ankur" wrote in message
...
when there are common refrence appearing in different cells in same column
for which we are using lookup function then it picks only the first value
from the reference sheet, is there any solution for this?

Thanks for your help



  #4   Report Post  
Ankur
 
Posts: n/a
Default

Hi bob,
thanks for your help, seems to be very complex formula. One more thing is it
a substitution of Vlookup function. i.e. in all the cells i have to enter
this formula only?

"Bob Phillips" wrote:

Ankur,

you can do it with

=INDEX(B2:B10,SMALL(IF(A2:A10=C1,ROW(A2:A10)-1,""),ROW(A2:A10)-1))

where C1 holds the value to lookup, A2:A10 holds the lookup values, and
B2:B10 holds the values to list.

Then drag and copy this formula down for your anticipated maximum number of
hits, and with all cells still selected, hit F2, and then commit with
Ctrl-Shift-Enter as it is an array formula.


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Ankur" wrote in message
...
when there are common refrence appearing in different cells in same column
for which we are using lookup function then it picks only the first value
from the reference sheet, is there any solution for this?

Thanks for your help




  #5   Report Post  
Kees Oosterveld
 
Posts: n/a
Default

Hi Ankur,

Can I help you with:
http://home.planet.nl/~oost1250/Excel/multivlookup.xls

Kees Oosterveld.


"Ankur" wrote:

Hi bob,
thanks for your help, seems to be very complex formula. One more thing is it
a substitution of Vlookup function. i.e. in all the cells i have to enter
this formula only?

"Bob Phillips" wrote:

Ankur,

you can do it with

=INDEX(B2:B10,SMALL(IF(A2:A10=C1,ROW(A2:A10)-1,""),ROW(A2:A10)-1))

where C1 holds the value to lookup, A2:A10 holds the lookup values, and
B2:B10 holds the values to list.

Then drag and copy this formula down for your anticipated maximum number of
hits, and with all cells still selected, hit F2, and then commit with
Ctrl-Shift-Enter as it is an array formula.


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Ankur" wrote in message
...
when there are common refrence appearing in different cells in same column
for which we are using lookup function then it picks only the first value
from the reference sheet, is there any solution for this?

Thanks for your help




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
VLOOKUP Limitations chris_manning Excel Worksheet Functions 2 August 9th 05 06:23 PM
Have Vlookup return a Value of 0 instead of #N/A Mr Mike Excel Worksheet Functions 4 May 25th 05 04:51 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM
VLOOKUP not working Scott Excel Worksheet Functions 3 November 12th 04 08:06 PM


All times are GMT +1. The time now is 09:34 PM.

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"