LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Lookup Values, return multiple.

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"JJ" wrote in message
...
Tx a mil guys, I appreciate your assistance.

Both formulas worked.

JJ

"T. Valko" wrote:

Try this...

In the formulas:

Rng1 refers to worksheet B $A$2:$A$5
Rng2 refers to worksheet B $B$2:$B$5
ReturnThis refers to worksheet B $C:$C

On worksheet A enter this formula in A2. This will return the count of
records that meet the conditions.

=SUMPRODUCT(--(Rng1=A1),--(LEFT(Rng2,2)="PL"))

On worksheet A enter this array formula** in B1:

=IF(ROWS(B$1:B1)A$2,"",INDEX(ReturnThis,SMALL(IF( Rng1=A$1,IF(LEFT(Rng2,2)="PL",ROW(Rng1))),ROWS(B$1 :B1))))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the
SHIFT
key then hit ENTER.

Copy the formula in B1 down until you get blanks.

--
Biff
Microsoft Excel MVP


"JJ" wrote in message
...
I need help please.

The formula I require has to in Worksheet A :-
[B1]

lookup DATA in Worksheet A
[A1]
SP001

in worksheet B
[A] [b] [C]
SP001 PL001 16
SP001 PL002 5
SP001 DR001 10
CR001 PL001 2

Search for all Text String starting with "PL" in Worksheet B [b] only
for
SP001 in [A]

and return with values from Worksheet B [C]
16 and 5

I need the values to be seperated and not summed.

Tx. Appreciate assistance.



.



 
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
LOOKUP TO RETURN MULTIPLE VALUES wilma2299 Excel Discussion (Misc queries) 1 August 18th 07 01:38 PM
LOOKUP TO RETURN MULTIPLE VALUES wilma2299 Excel Discussion (Misc queries) 1 August 18th 07 10:44 AM
Lookup and Return Multiple Values billinr Excel Worksheet Functions 3 April 27th 07 06:59 PM
lookup and return multiple values Treena Excel Worksheet Functions 1 April 10th 07 10:26 PM
how to lookup a value and return multiple corresponding values Asthee Excel Worksheet Functions 1 November 5th 05 01:49 PM


All times are GMT +1. The time now is 08:25 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"