Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Lookup into tbl w/ duplicate values

Hi,

I need help with an array formula (CSE) or lookup that will return all
values the lookup finds not just the first. Here is an example of my data,
as u can see there are dups.

brand1 blue
brand1 green
brand1 red
brand2 yellow
brand2 blue
brand2 brown

I'd like to be able to drag the formula down and have it return all values
for 'brand1' not just the 1st one it finds. Been having difficulty
manipulating vlookups & index(match) to accomplish this.

Thanks for your help

MattR
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Lookup into tbl w/ duplicate values

In the menu select Filter Auto Filter (make sure you have a header in your
data)

If you prefered the formula method then try this:

=IF(ISERR(SMALL(IF($C$2:$C$7=$E$1,ROW(INDIRECT("1: "&ROWS($D$2:$D$7)))),ROWS($1:1))),"",INDEX($D$2:$D $7,SMALL(IF($C$2:$C$7=$E$1,ROW(INDIRECT("1:"&ROWS( $D$2:$D$7)))),ROWS($1:1))))

ctrl+shift+enter (not just enter)
copy down




"Matt R" wrote:

Hi,

I need help with an array formula (CSE) or lookup that will return all
values the lookup finds not just the first. Here is an example of my data,
as u can see there are dups.

brand1 blue
brand1 green
brand1 red
brand2 yellow
brand2 blue
brand2 brown

I'd like to be able to drag the formula down and have it return all values
for 'brand1' not just the 1st one it finds. Been having difficulty
manipulating vlookups & index(match) to accomplish this.

Thanks for your help

MattR

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Lookup into tbl w/ duplicate values

I forgot to mention...assuming E1 is your citeria


"Teethless mama" wrote:

In the menu select Filter Auto Filter (make sure you have a header in your
data)

If you prefered the formula method then try this:

=IF(ISERR(SMALL(IF($C$2:$C$7=$E$1,ROW(INDIRECT("1: "&ROWS($D$2:$D$7)))),ROWS($1:1))),"",INDEX($D$2:$D $7,SMALL(IF($C$2:$C$7=$E$1,ROW(INDIRECT("1:"&ROWS( $D$2:$D$7)))),ROWS($1:1))))

ctrl+shift+enter (not just enter)
copy down




"Matt R" wrote:

Hi,

I need help with an array formula (CSE) or lookup that will return all
values the lookup finds not just the first. Here is an example of my data,
as u can see there are dups.

brand1 blue
brand1 green
brand1 red
brand2 yellow
brand2 blue
brand2 brown

I'd like to be able to drag the formula down and have it return all values
for 'brand1' not just the 1st one it finds. Been having difficulty
manipulating vlookups & index(match) to accomplish this.

Thanks for your help

MattR

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
MATCH() and duplicate values -- is there a workaround? JimmyQ Excel Worksheet Functions 1 August 10th 06 10:33 AM
Is there a way MATCH() can cope with duplicate values? JimmyQ Excel Worksheet Functions 3 August 9th 06 11:25 PM
LOOKUP 2 DIFFERENT VALUES AT ONE TIME AND RETURN A VALUE nickipas Excel Worksheet Functions 2 July 20th 06 01:39 PM
Lookup Function - Specific Values Steve Elliott Excel Worksheet Functions 6 April 9th 05 07:15 PM
Need help with lookup and comparing values Steve Excel Worksheet Functions 7 January 30th 05 02:38 PM


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