![]() |
if function, multiple characters from right
I am trying to enter a phrase in a certain cell if one of the last 3
characters in another cell is a "T". What I have so far is =if(right(z6,1)="T","TEMP CYCLED")), but it will only place "TEMP CYCLED" in cell A26 if the last character in Z6 is T. I need it recognize any of the last 3 characters as T and return "TEMP CYCLED" in cell A26. Thanks Jim |
Try this...
=IF(ISERROR(FINDB("T",z6,1)),"",IF(LEN(z6)-FINDB("T",z6,1)<=3,"TEMP CYCLED","")) "jimqual" wrote: I am trying to enter a phrase in a certain cell if one of the last 3 characters in another cell is a "T". What I have so far is =if(right(z6,1)="T","TEMP CYCLED")), but it will only place "TEMP CYCLED" in cell A26 if the last character in Z6 is T. I need it recognize any of the last 3 characters as T and return "TEMP CYCLED" in cell A26. Thanks Jim |
Dosent seem to work
"Naomi" wrote: Try this... =IF(ISERROR(FINDB("T",z6,1)),"",IF(LEN(z6)-FINDB("T",z6,1)<=3,"TEMP CYCLED","")) "jimqual" wrote: I am trying to enter a phrase in a certain cell if one of the last 3 characters in another cell is a "T". What I have so far is =if(right(z6,1)="T","TEMP CYCLED")), but it will only place "TEMP CYCLED" in cell A26 if the last character in Z6 is T. I need it recognize any of the last 3 characters as T and return "TEMP CYCLED" in cell A26. Thanks Jim |
Jim,
Put this in A26: =IF(ISERROR(FIND("T", Z6,LEN(Z6)-2)),"","Temp cycled") -- Earl Kiosterud mvpearl omitthisword at verizon period net ------------------------------------------- "jimqual" wrote in message ... I am trying to enter a phrase in a certain cell if one of the last 3 characters in another cell is a "T". What I have so far is =if(right(z6,1)="T","TEMP CYCLED")), but it will only place "TEMP CYCLED" in cell A26 if the last character in Z6 is T. I need it recognize any of the last 3 characters as T and return "TEMP CYCLED" in cell A26. Thanks Jim |
Earl,
Thanks, works like a charm Jim "Earl Kiosterud" wrote: Jim, Put this in A26: =IF(ISERROR(FIND("T", Z6,LEN(Z6)-2)),"","Temp cycled") -- Earl Kiosterud mvpearl omitthisword at verizon period net ------------------------------------------- "jimqual" wrote in message ... I am trying to enter a phrase in a certain cell if one of the last 3 characters in another cell is a "T". What I have so far is =if(right(z6,1)="T","TEMP CYCLED")), but it will only place "TEMP CYCLED" in cell A26 if the last character in Z6 is T. I need it recognize any of the last 3 characters as T and return "TEMP CYCLED" in cell A26. Thanks Jim |
All times are GMT +1. The time now is 04:48 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com