Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
LOOKUP formula | Excel Worksheet Functions | |||
Populating a field based on lookup values | Excel Worksheet Functions | |||
Match then lookup | Excel Worksheet Functions | |||
How do I lookup a value in a array that is not in ascending order | Excel Worksheet Functions | |||
copying LOOKUP formula | Excel Worksheet Functions |