ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   VLOOKUP or maybe INDEX (https://www.excelbanter.com/excel-worksheet-functions/184275-vlookup-maybe-index.html)

mpenkala

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


ryguy7272

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


T. Valko

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





All times are GMT +1. The time now is 05:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com