Conditional search for text substrings

Closed
typeajpd Posts 1 Registration date Tuesday March 16, 2010 Status Member Last seen March 16, 2010 - Mar 16, 2010 at 02:35 PM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Mar 16, 2010 at 03:25 PM
Hello,

This is one of several nested conditional statements that if I can get to work as required I can modify the remaining statements:

=IF((VLOOKUP(A2,'Second Worksheet'!A$2:M$100,7,FALSE) = "*TRACTOR*"),(C2+10000),"")

My troubleshooting has reduced the apparent problem to trying to make this conditional statement example work as required:

=IF((G10="*TRACTOR*"),(C2+10000),"")

It is not treating the asteriks as wildcards. The field G10 might have any of the followng values: Tractor, Truck Tractor, HET Tractor, Tractor Truck, as well as Crane, Van, Minivan, Forklift, etc. I want to test for any occurence withind the cell or as in the first actual case the value returned from a cell via a VLOOKUP search of a specific text substring.

I am creating the workbook use with Excel 2003.

TIA
Related:

1 response

rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 766
Mar 16, 2010 at 03:25 PM
Use search, instead of If
0