ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   If funtion wildcard (https://www.excelbanter.com/excel-worksheet-functions/8583-if-funtion-wildcard.html)

unodemad

If funtion wildcard
 
Is it posible to create an if function based on a partial text strim?

Don Guillett

=if(left(a1,3)="Joe",etc

--
Don Guillett
SalesAid Software

"unodemad" wrote in message
...
Is it posible to create an if function based on a partial text strim?




Peo Sjoblom

With the help of other functions

=IF(LEFT(A1,3)="abc","do","don't")

will look at the 3 first characters

=IF(ISNUMBER(SEARCH("abc",A1)),"do","don't")

will look for the string "abc"


=IF(COUNTIF(A1:A1,"*abc*")0,"do","don't")


will actually use wildcards, the above basically is the same as the search
formula



Regards,

Peo Sjoblom



"unodemad" wrote:

Is it posible to create an if function based on a partial text strim?



All times are GMT +1. The time now is 04:39 AM.

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