Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default Index-Match, with Like or some other Function

I have two lists, one with Stock Symbol and Sector (Column A and B), the
other with Stock Symbol and Price (Column D & E). I'm trying to figure out
how to lookup a Symbol in Column A, where there could be TGH.N and find all
matches in Column D, where the Symbols could be TGH.N, as well as TGH.400,
TGH.500, and TGH.600. The logic is, the first part of the symbol, up to the
period, will be the same. For instance, EL.400 and EL.500 are in the same
sector and EL.N, EL.400, and EL.500 are all in the same sector. I want to
lookup EL.N, EL.400, and EL.500 and find stock prices for each in Column E.

Thanks!
Ryan---



Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Index-Match, with Like or some other Function

Hi Ryan

If I understand your correctly you want to lookup all stock symbols and
prices for a single query..say TGH.n should list down all TGH.* and its
corresponding prices

In Cell F1 type the symbol to be searched
In F2 enter the below formula (array entered)...Copy the formula down as
required.Also copy the same formula to ColG2 and copy down as required.

(array entered)
=IF(COUNTIF($D$1:$D$1000,LEFT($F$1,FIND(".",$F$1)) & "*")<ROW(A1),"",
INDEX(D$1:D$1000,SMALL(IF(LEFT($D$1:$D$1000,FIND(" .",$F$1))=
LEFT($F$1,FIND(".",$F$1)),ROW($D$1:$D$1000)),ROW(A 1))))

If this post helps click Yes
---------------
Jacob Skaria


"ryguy7272" wrote:

I have two lists, one with Stock Symbol and Sector (Column A and B), the
other with Stock Symbol and Price (Column D & E). I'm trying to figure out
how to lookup a Symbol in Column A, where there could be TGH.N and find all
matches in Column D, where the Symbols could be TGH.N, as well as TGH.400,
TGH.500, and TGH.600. The logic is, the first part of the symbol, up to the
period, will be the same. For instance, EL.400 and EL.500 are in the same
sector and EL.N, EL.400, and EL.500 are all in the same sector. I want to
lookup EL.N, EL.400, and EL.500 and find stock prices for each in Column E.

Thanks!
Ryan---



Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default Index-Match, with Like or some other Function

Thanks Jacob! Unfortunately, that gives me all blanks, everywhere. My data
really starts on Row 2, not row 1, but i think that is irrelevant since this
is array-entered, right.

Let me throw out another example. I have TGT.5000 Nov call in A2, TGT.5250
Dec call in A3, and TGT.5250 Nov call in A4. I have TGT.N in D2 (but it
could be anywhere in Col D, approx 200 rows). I want to look at the value in
D2, and pull in the corresponding stock prices in B2, B3, and B4. I've done
something similar before, but i couldn't find that function in my library,
and I'm not even sure that would work even if I could find it.

What else can I try?


Thanks!
Ryan--



--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Jacob Skaria" wrote:

Hi Ryan

If I understand your correctly you want to lookup all stock symbols and
prices for a single query..say TGH.n should list down all TGH.* and its
corresponding prices

In Cell F1 type the symbol to be searched
In F2 enter the below formula (array entered)...Copy the formula down as
required.Also copy the same formula to ColG2 and copy down as required.

(array entered)
=IF(COUNTIF($D$1:$D$1000,LEFT($F$1,FIND(".",$F$1)) & "*")<ROW(A1),"",
INDEX(D$1:D$1000,SMALL(IF(LEFT($D$1:$D$1000,FIND(" .",$F$1))=
LEFT($F$1,FIND(".",$F$1)),ROW($D$1:$D$1000)),ROW(A 1))))

If this post helps click Yes
---------------
Jacob Skaria


"ryguy7272" wrote:

I have two lists, one with Stock Symbol and Sector (Column A and B), the
other with Stock Symbol and Price (Column D & E). I'm trying to figure out
how to lookup a Symbol in Column A, where there could be TGH.N and find all
matches in Column D, where the Symbols could be TGH.N, as well as TGH.400,
TGH.500, and TGH.600. The logic is, the first part of the symbol, up to the
period, will be the same. For instance, EL.400 and EL.500 are in the same
sector and EL.N, EL.400, and EL.500 are all in the same sector. I want to
lookup EL.N, EL.400, and EL.500 and find stock prices for each in Column E.

Thanks!
Ryan---



Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Index-Match, with Like or some other Function

Maybe I have misunderstood your question. Do you mean a lookup ?

=INDEX(E:E,MATCH(LEFT(A1,FIND(".",A1)) & "*",D:D,0))

If this post helps click Yes
---------------
Jacob Skaria


"ryguy7272" wrote:

Thanks Jacob! Unfortunately, that gives me all blanks, everywhere. My data
really starts on Row 2, not row 1, but i think that is irrelevant since this
is array-entered, right.

Let me throw out another example. I have TGT.5000 Nov call in A2, TGT.5250
Dec call in A3, and TGT.5250 Nov call in A4. I have TGT.N in D2 (but it
could be anywhere in Col D, approx 200 rows). I want to look at the value in
D2, and pull in the corresponding stock prices in B2, B3, and B4. I've done
something similar before, but i couldn't find that function in my library,
and I'm not even sure that would work even if I could find it.

What else can I try?


Thanks!
Ryan--



--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Jacob Skaria" wrote:

Hi Ryan

If I understand your correctly you want to lookup all stock symbols and
prices for a single query..say TGH.n should list down all TGH.* and its
corresponding prices

In Cell F1 type the symbol to be searched
In F2 enter the below formula (array entered)...Copy the formula down as
required.Also copy the same formula to ColG2 and copy down as required.

(array entered)
=IF(COUNTIF($D$1:$D$1000,LEFT($F$1,FIND(".",$F$1)) & "*")<ROW(A1),"",
INDEX(D$1:D$1000,SMALL(IF(LEFT($D$1:$D$1000,FIND(" .",$F$1))=
LEFT($F$1,FIND(".",$F$1)),ROW($D$1:$D$1000)),ROW(A 1))))

If this post helps click Yes
---------------
Jacob Skaria


"ryguy7272" wrote:

I have two lists, one with Stock Symbol and Sector (Column A and B), the
other with Stock Symbol and Price (Column D & E). I'm trying to figure out
how to lookup a Symbol in Column A, where there could be TGH.N and find all
matches in Column D, where the Symbols could be TGH.N, as well as TGH.400,
TGH.500, and TGH.600. The logic is, the first part of the symbol, up to the
period, will be the same. For instance, EL.400 and EL.500 are in the same
sector and EL.N, EL.400, and EL.500 are all in the same sector. I want to
lookup EL.N, EL.400, and EL.500 and find stock prices for each in Column E.

Thanks!
Ryan---



Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default Index-Match, with Like or some other Function

That function finds the first match, but not subsequent matches. Seems to
work like a vlookup.

What I'd like to do is look for a value in A2, make sure it is in Col D, and
then find the corresponding value in B2. Then look in A3, make sure it is in
Col D, and then find the corresponding value in B3.

Does it make sense?

TIA!!
Ryan--
--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Jacob Skaria" wrote:

Maybe I have misunderstood your question. Do you mean a lookup ?

=INDEX(E:E,MATCH(LEFT(A1,FIND(".",A1)) & "*",D:D,0))

If this post helps click Yes
---------------
Jacob Skaria


"ryguy7272" wrote:

Thanks Jacob! Unfortunately, that gives me all blanks, everywhere. My data
really starts on Row 2, not row 1, but i think that is irrelevant since this
is array-entered, right.

Let me throw out another example. I have TGT.5000 Nov call in A2, TGT.5250
Dec call in A3, and TGT.5250 Nov call in A4. I have TGT.N in D2 (but it
could be anywhere in Col D, approx 200 rows). I want to look at the value in
D2, and pull in the corresponding stock prices in B2, B3, and B4. I've done
something similar before, but i couldn't find that function in my library,
and I'm not even sure that would work even if I could find it.

What else can I try?


Thanks!
Ryan--



--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Jacob Skaria" wrote:

Hi Ryan

If I understand your correctly you want to lookup all stock symbols and
prices for a single query..say TGH.n should list down all TGH.* and its
corresponding prices

In Cell F1 type the symbol to be searched
In F2 enter the below formula (array entered)...Copy the formula down as
required.Also copy the same formula to ColG2 and copy down as required.

(array entered)
=IF(COUNTIF($D$1:$D$1000,LEFT($F$1,FIND(".",$F$1)) & "*")<ROW(A1),"",
INDEX(D$1:D$1000,SMALL(IF(LEFT($D$1:$D$1000,FIND(" .",$F$1))=
LEFT($F$1,FIND(".",$F$1)),ROW($D$1:$D$1000)),ROW(A 1))))

If this post helps click Yes
---------------
Jacob Skaria


"ryguy7272" wrote:

I have two lists, one with Stock Symbol and Sector (Column A and B), the
other with Stock Symbol and Price (Column D & E). I'm trying to figure out
how to lookup a Symbol in Column A, where there could be TGH.N and find all
matches in Column D, where the Symbols could be TGH.N, as well as TGH.400,
TGH.500, and TGH.600. The logic is, the first part of the symbol, up to the
period, will be the same. For instance, EL.400 and EL.500 are in the same
sector and EL.N, EL.400, and EL.500 are all in the same sector. I want to
lookup EL.N, EL.400, and EL.500 and find stock prices for each in Column E.

Thanks!
Ryan---



Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Index-Match, with Like or some other Function

Ryan; why dont you post few examples .

=INDEX(E:E,MATCH(A1,D:D,0))

If this post helps click Yes
---------------
Jacob Skaria


"ryguy7272" wrote:

That function finds the first match, but not subsequent matches. Seems to
work like a vlookup.

What I'd like to do is look for a value in A2, make sure it is in Col D, and
then find the corresponding value in B2. Then look in A3, make sure it is in
Col D, and then find the corresponding value in B3.

Does it make sense?

TIA!!
Ryan--
--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Jacob Skaria" wrote:

Maybe I have misunderstood your question. Do you mean a lookup ?

=INDEX(E:E,MATCH(LEFT(A1,FIND(".",A1)) & "*",D:D,0))

If this post helps click Yes
---------------
Jacob Skaria


"ryguy7272" wrote:

Thanks Jacob! Unfortunately, that gives me all blanks, everywhere. My data
really starts on Row 2, not row 1, but i think that is irrelevant since this
is array-entered, right.

Let me throw out another example. I have TGT.5000 Nov call in A2, TGT.5250
Dec call in A3, and TGT.5250 Nov call in A4. I have TGT.N in D2 (but it
could be anywhere in Col D, approx 200 rows). I want to look at the value in
D2, and pull in the corresponding stock prices in B2, B3, and B4. I've done
something similar before, but i couldn't find that function in my library,
and I'm not even sure that would work even if I could find it.

What else can I try?


Thanks!
Ryan--



--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Jacob Skaria" wrote:

Hi Ryan

If I understand your correctly you want to lookup all stock symbols and
prices for a single query..say TGH.n should list down all TGH.* and its
corresponding prices

In Cell F1 type the symbol to be searched
In F2 enter the below formula (array entered)...Copy the formula down as
required.Also copy the same formula to ColG2 and copy down as required.

(array entered)
=IF(COUNTIF($D$1:$D$1000,LEFT($F$1,FIND(".",$F$1)) & "*")<ROW(A1),"",
INDEX(D$1:D$1000,SMALL(IF(LEFT($D$1:$D$1000,FIND(" .",$F$1))=
LEFT($F$1,FIND(".",$F$1)),ROW($D$1:$D$1000)),ROW(A 1))))

If this post helps click Yes
---------------
Jacob Skaria


"ryguy7272" wrote:

I have two lists, one with Stock Symbol and Sector (Column A and B), the
other with Stock Symbol and Price (Column D & E). I'm trying to figure out
how to lookup a Symbol in Column A, where there could be TGH.N and find all
matches in Column D, where the Symbols could be TGH.N, as well as TGH.400,
TGH.500, and TGH.600. The logic is, the first part of the symbol, up to the
period, will be the same. For instance, EL.400 and EL.500 are in the same
sector and EL.N, EL.400, and EL.500 are all in the same sector. I want to
lookup EL.N, EL.400, and EL.500 and find stock prices for each in Column E.

Thanks!
Ryan---



Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Index-Match, with Like or some other Function

Ryan, I read your post in the other group..bit confusing..I think my original
solution will help..which picks up all matching entries from ColD and ColE.
if you are unable to make it work send me the file.

"Jacob Skaria" wrote:

Ryan; why dont you post few examples .

=INDEX(E:E,MATCH(A1,D:D,0))

If this post helps click Yes
---------------
Jacob Skaria


"ryguy7272" wrote:

That function finds the first match, but not subsequent matches. Seems to
work like a vlookup.

What I'd like to do is look for a value in A2, make sure it is in Col D, and
then find the corresponding value in B2. Then look in A3, make sure it is in
Col D, and then find the corresponding value in B3.

Does it make sense?

TIA!!
Ryan--
--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Jacob Skaria" wrote:

Maybe I have misunderstood your question. Do you mean a lookup ?

=INDEX(E:E,MATCH(LEFT(A1,FIND(".",A1)) & "*",D:D,0))

If this post helps click Yes
---------------
Jacob Skaria


"ryguy7272" wrote:

Thanks Jacob! Unfortunately, that gives me all blanks, everywhere. My data
really starts on Row 2, not row 1, but i think that is irrelevant since this
is array-entered, right.

Let me throw out another example. I have TGT.5000 Nov call in A2, TGT.5250
Dec call in A3, and TGT.5250 Nov call in A4. I have TGT.N in D2 (but it
could be anywhere in Col D, approx 200 rows). I want to look at the value in
D2, and pull in the corresponding stock prices in B2, B3, and B4. I've done
something similar before, but i couldn't find that function in my library,
and I'm not even sure that would work even if I could find it.

What else can I try?


Thanks!
Ryan--



--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Jacob Skaria" wrote:

Hi Ryan

If I understand your correctly you want to lookup all stock symbols and
prices for a single query..say TGH.n should list down all TGH.* and its
corresponding prices

In Cell F1 type the symbol to be searched
In F2 enter the below formula (array entered)...Copy the formula down as
required.Also copy the same formula to ColG2 and copy down as required.

(array entered)
=IF(COUNTIF($D$1:$D$1000,LEFT($F$1,FIND(".",$F$1)) & "*")<ROW(A1),"",
INDEX(D$1:D$1000,SMALL(IF(LEFT($D$1:$D$1000,FIND(" .",$F$1))=
LEFT($F$1,FIND(".",$F$1)),ROW($D$1:$D$1000)),ROW(A 1))))

If this post helps click Yes
---------------
Jacob Skaria


"ryguy7272" wrote:

I have two lists, one with Stock Symbol and Sector (Column A and B), the
other with Stock Symbol and Price (Column D & E). I'm trying to figure out
how to lookup a Symbol in Column A, where there could be TGH.N and find all
matches in Column D, where the Symbols could be TGH.N, as well as TGH.400,
TGH.500, and TGH.600. The logic is, the first part of the symbol, up to the
period, will be the same. For instance, EL.400 and EL.500 are in the same
sector and EL.N, EL.400, and EL.500 are all in the same sector. I want to
lookup EL.N, EL.400, and EL.500 and find stock prices for each in Column E.

Thanks!
Ryan---



Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default Index-Match, with Like or some other Function

I got it! I got it! This was the solution:
=INDEX(E:E,MATCH(LEFT(A1,FIND(".",A1)) & "*",D:D,0))

Not sure what happened before; I must have screwed up a reference somehow
when I made a small change to customize it a bit.

Thanks for everything Jacob! Very helpful!! This will definitely be saved
in my library of useful functions!!!

Ryan---

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Jacob Skaria" wrote:

Ryan, I read your post in the other group..bit confusing..I think my original
solution will help..which picks up all matching entries from ColD and ColE.
if you are unable to make it work send me the file.

"Jacob Skaria" wrote:

Ryan; why dont you post few examples .

=INDEX(E:E,MATCH(A1,D:D,0))

If this post helps click Yes
---------------
Jacob Skaria


"ryguy7272" wrote:

That function finds the first match, but not subsequent matches. Seems to
work like a vlookup.

What I'd like to do is look for a value in A2, make sure it is in Col D, and
then find the corresponding value in B2. Then look in A3, make sure it is in
Col D, and then find the corresponding value in B3.

Does it make sense?

TIA!!
Ryan--
--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Jacob Skaria" wrote:

Maybe I have misunderstood your question. Do you mean a lookup ?

=INDEX(E:E,MATCH(LEFT(A1,FIND(".",A1)) & "*",D:D,0))

If this post helps click Yes
---------------
Jacob Skaria


"ryguy7272" wrote:

Thanks Jacob! Unfortunately, that gives me all blanks, everywhere. My data
really starts on Row 2, not row 1, but i think that is irrelevant since this
is array-entered, right.

Let me throw out another example. I have TGT.5000 Nov call in A2, TGT.5250
Dec call in A3, and TGT.5250 Nov call in A4. I have TGT.N in D2 (but it
could be anywhere in Col D, approx 200 rows). I want to look at the value in
D2, and pull in the corresponding stock prices in B2, B3, and B4. I've done
something similar before, but i couldn't find that function in my library,
and I'm not even sure that would work even if I could find it.

What else can I try?


Thanks!
Ryan--



--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Jacob Skaria" wrote:

Hi Ryan

If I understand your correctly you want to lookup all stock symbols and
prices for a single query..say TGH.n should list down all TGH.* and its
corresponding prices

In Cell F1 type the symbol to be searched
In F2 enter the below formula (array entered)...Copy the formula down as
required.Also copy the same formula to ColG2 and copy down as required.

(array entered)
=IF(COUNTIF($D$1:$D$1000,LEFT($F$1,FIND(".",$F$1)) & "*")<ROW(A1),"",
INDEX(D$1:D$1000,SMALL(IF(LEFT($D$1:$D$1000,FIND(" .",$F$1))=
LEFT($F$1,FIND(".",$F$1)),ROW($D$1:$D$1000)),ROW(A 1))))

If this post helps click Yes
---------------
Jacob Skaria


"ryguy7272" wrote:

I have two lists, one with Stock Symbol and Sector (Column A and B), the
other with Stock Symbol and Price (Column D & E). I'm trying to figure out
how to lookup a Symbol in Column A, where there could be TGH.N and find all
matches in Column D, where the Symbols could be TGH.N, as well as TGH.400,
TGH.500, and TGH.600. The logic is, the first part of the symbol, up to the
period, will be the same. For instance, EL.400 and EL.500 are in the same
sector and EL.N, EL.400, and EL.500 are all in the same sector. I want to
lookup EL.N, EL.400, and EL.500 and find stock prices for each in Column E.

Thanks!
Ryan---



Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.

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
Need help with function using INDEX and MATCH. Sean.rogers[_2_] Excel Worksheet Functions 2 April 24th 08 04:53 PM
Help with Index / Match function Livin Excel Worksheet Functions 2 July 26th 07 09:40 PM
index match array function-returning only first match, need last. Julie Olsen Excel Worksheet Functions 3 December 29th 06 12:50 AM
Emulate Index/Match combo function w/ VBA custom function Spencer Hutton Excel Worksheet Functions 2 May 2nd 05 05:26 PM
index / match function Lisa Excel Worksheet Functions 3 April 1st 05 05:03 AM


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