Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Find All Instances of a Value

Hello,

I have a weird problem that I think can be best described with an
example. I have a "lookup table" immediately below, and a list of
"Values to look up" and expected results for when I look up those
values below that. Please look at the example and see if you can
answer the question below.

List of Words Table Values
aaa 1,2,3,4,5
bbb 1,3,5
ccc 3,4,5

Values to Look Up Expected Results
1 aaa,bbb
2 aaa
3 aaa,bbb,ccc
4 aaa,ccc
5 aaa,bbb,ccc

So, what I'm asking is... if I have a lookup table like the one above,
and a list of values, can I iterate through every value in my list,
and end up with every word that corresponds to that value in the
lookup table (as shown in the 'Expected Results' above)?

Thanks!

-Ben

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Find All Instances of a Value

I table values are less than 9 you won't have a problem. If above 9, you
will have to extract the numbers in the commar delimited string. Otherwise
you if you search for a 1 and you have the numbers 1 & 10 you'll have a
problem.

" wrote:

Hello,

I have a weird problem that I think can be best described with an
example. I have a "lookup table" immediately below, and a list of
"Values to look up" and expected results for when I look up those
values below that. Please look at the example and see if you can
answer the question below.

List of Words Table Values
aaa 1,2,3,4,5
bbb 1,3,5
ccc 3,4,5

Values to Look Up Expected Results
1 aaa,bbb
2 aaa
3 aaa,bbb,ccc
4 aaa,ccc
5 aaa,bbb,ccc

So, what I'm asking is... if I have a lookup table like the one above,
and a list of values, can I iterate through every value in my list,
and end up with every word that corresponds to that value in the
lookup table (as shown in the 'Expected Results' above)?

Thanks!

-Ben


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 to find all instances of a ticket number in a spreadsheet DebraR Excel Worksheet Functions 3 January 3rd 09 05:40 AM
Find double instances of a row fran_dk Excel Programming 5 March 14th 06 01:16 PM
find all instances of text in string Dave B[_3_] Excel Programming 0 October 18th 05 05:44 AM
Find all instances in formula string Ed Excel Programming 0 February 22nd 05 05:05 PM
Find all text instances in a sheet and add one number from each row Greg Excel Discussion (Misc queries) 1 January 31st 05 11:45 PM


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