ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   find partial values in cell (https://www.excelbanter.com/excel-worksheet-functions/45965-find-partial-values-cell.html)

Luke

find partial values in cell
 
I there a way to look in one column with values like 6292, 266, 3885, 96,
47... then compare the last two digits from a cell with those in an array?
Example:

C K L
6292 00 18
266 11 28
3888 22 38
96 33 48
48 44 58
9 55 68
5565 66 78
2978 77 98
88
99

I need to lookup last part of a cell (ie, looking in col. "C" at 3888 and
match last two digits/values 38(88) with col's "K" and "L" or any array for
that matter.
Does that make sense?

There is the issue of single digit values like "9" that may mess with me but
there are very few of those and they can be over looked.

Thank you for your time
Luke




Aladin Akyurek

Your problem description is a bit underspecified... Given what is provided:

=ISNUMBER(MATCH(RIGHT(C2,2)+0,$K$2:$K$10,0))+

if the items in K2:K10 are numbers. Otherwise:

=ISNUMBER(MATCH(RIGHT(C2,2),$K$2:$K$10,0))+0

Regarding the single digit cases...

=ISNUMBER(MATCH(RIGHT("0"&C2,2),$K2:$K&10,0))+0

assuming that K2:K10 does not house true numbers.

Luke wrote:
I there a way to look in one column with values like 6292, 266, 3885, 96,
47... then compare the last two digits from a cell with those in an array?
Example:

C K L
6292 00 18
266 11 28
3888 22 38
96 33 48
48 44 58
9 55 68
5565 66 78
2978 77 98
88
99

I need to lookup last part of a cell (ie, looking in col. "C" at 3888 and
match last two digits/values 38(88) with col's "K" and "L" or any array for
that matter.
Does that make sense?

There is the issue of single digit values like "9" that may mess with me but
there are very few of those and they can be over looked.

Thank you for your time
Luke





All times are GMT +1. The time now is 03:50 PM.

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