ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   if statement with text (https://www.excelbanter.com/excel-discussion-misc-queries/32214-if-statement-text.html)

jerry

if statement with text
 
I am trying to create an if statement where the string of text contains
total, if yes then perform calculation base on that row and column. if no
total in text leave blank

help

George Nicholson

=IF(ISERROR(FIND("Total", A1)),"",-yourCalculation-)

FIND returns #VALUE if "Total" is not in A1
Therefore, ISERROR returns False if "Total" is in A1 (i.e., it was found, no
error)

HTH,
--
George Nicholson

Remove 'Junk' from return address.


"jerry" wrote in message
...
I am trying to create an if statement where the string of text contains
total, if yes then perform calculation base on that row and column. if no
total in text leave blank

help




jerry

George,

I was so close! Thanks !

have a great afternoon/eve

"George Nicholson" wrote:

=IF(ISERROR(FIND("Total", A1)),"",-yourCalculation-)

FIND returns #VALUE if "Total" is not in A1
Therefore, ISERROR returns False if "Total" is in A1 (i.e., it was found, no
error)

HTH,
--
George Nicholson

Remove 'Junk' from return address.


"jerry" wrote in message
...
I am trying to create an if statement where the string of text contains
total, if yes then perform calculation base on that row and column. if no
total in text leave blank

help






All times are GMT +1. The time now is 10:28 AM.

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