Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 90
Default VLOOKUP or maybe INDEX

hey gang,

I need a function that will search through a list of numbers, looking to see
if a number in columnA matches any of them. Here's the example:

In E5 I have "BAFE" and in A6 I have the number 26. Now on worksheet2 I
have a table (G2:AF13). In this table I have 12 groups (listed in G2:13).
Each group has 25 numbers in in (H2:AF13, each cell contains 1 number). I
need cell F5 to look through the table and see if the number 26 is in group
BAFE.

If it makes it easier I can reduce the table to 2 column, and list all 25
numbers per group in one cell, seperating them with a comma
(1,2,3,17,19,24...etc).

Thanks again!
Matt

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default VLOOKUP or maybe INDEX

Vlookup is a little easier to work with:
http://www.contextures.com/xlFunctions02.html#Arguments
http://www.mvps.org/dmcritchie/excel/vlookup.htm

If that doesn't work for you, and if you are feeling brave, try Index/Match:
http://www.contextures.com/xlFunctio...tml#IndexMatch
http://www.mvps.org/dmcritchie/excel/matchtwo.htm


Regards,
Ryan---


--
RyGuy


"mpenkala" wrote:

hey gang,

I need a function that will search through a list of numbers, looking to see
if a number in columnA matches any of them. Here's the example:

In E5 I have "BAFE" and in A6 I have the number 26. Now on worksheet2 I
have a table (G2:AF13). In this table I have 12 groups (listed in G2:13).
Each group has 25 numbers in in (H2:AF13, each cell contains 1 number). I
need cell F5 to look through the table and see if the number 26 is in group
BAFE.

If it makes it easier I can reduce the table to 2 column, and list all 25
numbers per group in one cell, seperating them with a comma
(1,2,3,17,19,24...etc).

Thanks again!
Matt

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default VLOOKUP or maybe INDEX

Try this:

=IF(COUNT(MATCH(A6,INDEX(Sheet2!H2:AF13,MATCH(E5,S heet2!G2:G13,0),),0)),"Yes","No")

--
Biff
Microsoft Excel MVP


"mpenkala" wrote in message
...
hey gang,

I need a function that will search through a list of numbers, looking to
see
if a number in columnA matches any of them. Here's the example:

In E5 I have "BAFE" and in A6 I have the number 26. Now on worksheet2 I
have a table (G2:AF13). In this table I have 12 groups (listed in G2:13).
Each group has 25 numbers in in (H2:AF13, each cell contains 1 number). I
need cell F5 to look through the table and see if the number 26 is in
group
BAFE.

If it makes it easier I can reduce the table to 2 column, and list all 25
numbers per group in one cell, seperating them with a comma
(1,2,3,17,19,24...etc).

Thanks again!
Matt



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
Should I use VLOOKUP? IF? INDEX? Susan Excel Worksheet Functions 4 March 13th 08 02:02 PM
VLOOKUP, INDEX, or ....? Mac Excel Worksheet Functions 1 October 15th 07 12:54 PM
Index and vlookup assistance MMB Excel Worksheet Functions 0 June 7th 07 08:22 PM
INDEX? VLOOKUP? lloydyleg11 Excel Discussion (Misc queries) 2 November 14th 06 04:35 AM
Index Match Vlookup? IntricateFool Excel Discussion (Misc queries) 23 October 3rd 06 10:39 PM


All times are GMT +1. The time now is 04:22 AM.

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"