LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 698
Default Multiple values (INDEX?)

With these parameters...
On sheet "RS"
A2:A986 contains numeric values
(Each of those numbers will exist on sheet "RD")

On sheet "RD"
D2:D15000 contains numeric values
(Some of those values MAY NOT exist in Col_A of sheet "RS")

A2:A15000 contains names associated with the Col_D numbers
(There may be more than one name in Col_A associated with each number in
Col_D)

Col_A/Col_D combinations are unique

------------------------
Try this
On sheet "RS"
B1:K1 contains the series 1,2,....10

This formula returns the Row_1 referenced name associated with the value in
Col_A
B2:
=IF(COUNTIF(RD!$D$2:$D$61,$A2)=B$1,INDEX(RD!$A$1: $A$61,SMALL(INDEX((RD!$D$2:$D$61=RS!$A2)*ROW(RD!$D $2:$D$61)+(RD!$D$2:$D$61<RS!$A2)*10^99,0),RS!B$1) ),"")

Copy that formula down and to the right as far as you need.

Note: In case text wrap impacts the display, that formula contains NO spaces.

Sample returned values (using bogus test data)
Nums 1 2 3
1 a t am
2 b u an
3 c v ao

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"DJ" wrote:

In one worksheet (RS), I have a list of numbers (A2:A:986). What I want to do
is search another sheet (RD) for every name (A2:A15000) that is associated
with each number (D2:D15000) and have it returned to the original sheet (RS)
on the same row as the number, but with each name occupying it's own cell
(B2, C2, D2, etc...)

I've been looking around to see if I can find a similar question and come up
with my own formula, but haven't been able to figure it out yet. It kind of
looks like I'd need to use INDEX, but I haven't used that one before and I'm
stuck.

Hopefully, I explained that adequately. Thanks in advance.


 
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
SUMPRODUCT or INDEX/MATCH for multiple conditions and multiple rec TravisB Excel Discussion (Misc queries) 21 March 16th 07 09:49 PM
Returning MULTIPLE values with Index and Match Fly Excel Discussion (Misc queries) 1 June 1st 06 05:50 PM
Index function using multiple values in one cell [email protected] Excel Worksheet Functions 2 May 11th 06 08:14 PM
match/index using multiple values perky2go Excel Worksheet Functions 5 January 20th 06 07:21 PM
return multiple corresponding values using INDEX BubbleGum Excel Worksheet Functions 2 January 5th 06 05:43 AM


All times are GMT +1. The time now is 03:12 PM.

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"