#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Lookup Formula?

I'm trying to come up with a lookup formula for the following example:

Column A Column B
Row 1 22k b22kcw
Row 2 23k bf23kc
Row 3 32k b25kce
Row 4 28k be32kw

In Column C, I want a formula that looks at the value in A2, compares it to
column B, and if it finds "22k" anywhere in one of the values, it returns T.
If it doesn't, it returns F. I have a formula working when the values are
side by side (Row 1), but not when they are not (Row 3 and 4). Is this
possible?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Lookup Formula?

One way:
=if(isnumber(match("*" & a1 & "*", b:b,0)),"T","F")

Another:
=if(countif(b:b,"*" & a1 & "*")0,"T","F")


GHawkins wrote:

I'm trying to come up with a lookup formula for the following example:

Column A Column B
Row 1 22k b22kcw
Row 2 23k bf23kc
Row 3 32k b25kce
Row 4 28k be32kw

In Column C, I want a formula that looks at the value in A2, compares it to
column B, and if it finds "22k" anywhere in one of the values, it returns T.
If it doesn't, it returns F. I have a formula working when the values are
side by side (Row 1), but not when they are not (Row 3 and 4). Is this
possible?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Lookup Formula?

Try this:

=IF(COUNTIF(B$2:B$5,"*"&A2&"*"),"T","F")

Biff

"GHawkins" wrote in message
...
I'm trying to come up with a lookup formula for the following example:

Column A Column B
Row 1 22k b22kcw
Row 2 23k bf23kc
Row 3 32k b25kce
Row 4 28k be32kw

In Column C, I want a formula that looks at the value in A2, compares it
to
column B, and if it finds "22k" anywhere in one of the values, it returns
T.
If it doesn't, it returns F. I have a formula working when the values are
side by side (Row 1), but not when they are not (Row 3 and 4). Is this
possible?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Lookup Formula?

It works great! Thanks!!!!

"Dave Peterson" wrote:

One way:
=if(isnumber(match("*" & a1 & "*", b:b,0)),"T","F")

Another:
=if(countif(b:b,"*" & a1 & "*")0,"T","F")


GHawkins wrote:

I'm trying to come up with a lookup formula for the following example:

Column A Column B
Row 1 22k b22kcw
Row 2 23k bf23kc
Row 3 32k b25kce
Row 4 28k be32kw

In Column C, I want a formula that looks at the value in A2, compares it to
column B, and if it finds "22k" anywhere in one of the values, it returns T.
If it doesn't, it returns F. I have a formula working when the values are
side by side (Row 1), but not when they are not (Row 3 and 4). Is this
possible?


--

Dave Peterson

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Lookup Formula?

It works great! Thanks!!

"Biff" wrote:

Try this:

=IF(COUNTIF(B$2:B$5,"*"&A2&"*"),"T","F")

Biff

"GHawkins" wrote in message
...
I'm trying to come up with a lookup formula for the following example:

Column A Column B
Row 1 22k b22kcw
Row 2 23k bf23kc
Row 3 32k b25kce
Row 4 28k be32kw

In Column C, I want a formula that looks at the value in A2, compares it
to
column B, and if it finds "22k" anywhere in one of the values, it returns
T.
If it doesn't, it returns F. I have a formula working when the values are
side by side (Row 1), but not when they are not (Row 3 and 4). Is this
possible?






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Lookup Formula?

You're welcome!

Biff

"GHawkins" wrote in message
...
It works great! Thanks!!

"Biff" wrote:

Try this:

=IF(COUNTIF(B$2:B$5,"*"&A2&"*"),"T","F")

Biff

"GHawkins" wrote in message
...
I'm trying to come up with a lookup formula for the following example:

Column A Column B
Row 1 22k b22kcw
Row 2 23k bf23kc
Row 3 32k b25kce
Row 4 28k be32kw

In Column C, I want a formula that looks at the value in A2, compares
it
to
column B, and if it finds "22k" anywhere in one of the values, it
returns
T.
If it doesn't, it returns F. I have a formula working when the values
are
side by side (Row 1), but not when they are not (Row 3 and 4). Is this
possible?






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
LOOKUP formula Andy Excel Worksheet Functions 2 August 19th 06 12:39 AM
Populating a field based on lookup values Sav_C Excel Worksheet Functions 5 August 6th 06 02:49 AM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
How do I lookup a value in a array that is not in ascending order John Excel Worksheet Functions 6 June 20th 05 09:40 PM
copying LOOKUP formula R Birk Excel Worksheet Functions 3 February 3rd 05 01:05 AM


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