Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 46
Default Find values in table and return correpsonding data in array

I'm not sure if you can do this in an array function or if it takes programming, but I am trying to search a database for multiple entries and display corresponding data separately in a new table. For example,

1 Red
2 Blue
1 Green
3 Yellow

I would like to create a new table that pulls out the data in column 2 if column 1 equals "1", like this...

Red
Green

Does anyone know if I can do this? I've tried VLOOKUP, INDEX & MATCH, and OFFSET & MATCH. Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Find values in table and return correpsonding data in array

Hi
some ways:
- if this is a one-time operation you may use 'Advanced Filters' (Menu:
'Data - Filter'). You can choose a different worksheet as target
location for your output

- A formula/UDF approach: Download Alan Beban's array functions
(http://home.pacbell.net/beban)
They'll include a function called VLOOKUPS (for returning multiple
lookup results)

- you can create a macro for this copying all relevant records to a new
sheet. Ron has some nice examples for this:
http://www.rondebruin.nl/copy5.htm

So now you have the choice. Please post back if you have further
questions :-)


--
Regards
Frank Kabel
Frankfurt, Germany


Ryan wrote:
I'm not sure if you can do this in an array function or if it takes
programming, but I am trying to search a database for multiple
entries and display corresponding data separately in a new table.
For example,

1 Red
2 Blue
1 Green
3 Yellow

I would like to create a new table that pulls out the data in column
2 if column 1 equals "1", like this...

Red
Green

Does anyone know if I can do this? I've tried VLOOKUP, INDEX &
MATCH, and OFFSET & MATCH. Thank you.


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
Find values in table and return row/column name Fluxx Excel Worksheet Functions 8 August 11th 09 08:21 AM
Find Max in array- return corresponding cell [email protected] Excel Worksheet Functions 1 August 22nd 07 03:59 AM
Find data in table with to set of constant values Engineer Excel Worksheet Functions 4 May 26th 06 08:42 AM
Use array to return array of values Brad Excel Worksheet Functions 2 March 30th 06 05:58 PM
VBA Syntax for VLOOKUP to return array of return values Alan Beban[_3_] Excel Programming 7 August 5th 03 11:41 AM


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