ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Function / formula to be used if cell contains a letter. (https://www.excelbanter.com/excel-worksheet-functions/5278-function-formula-used-if-cell-contains-letter.html)

Cameron Stewart

Function / formula to be used if cell contains a letter.
 
I have a colum of values that includes data such as this:

1.9825
1.8770a
1.4617
1.02x20
1.4061
1.4163c
1.8002
2.4261
2.9756
3.6d679
1.6860

I want an if statement that says - if cell value contains ANY LETTER then . . . .

(NB - the letter may be in any position in the number sequence.)


Any Help?

Cameron

BenjieLop


This formula (entered in Cell B1)

=if(istext(A1),99999,88888)

means that if the entry in cell A1 contains a letter, THEN the number
99999 will appear in cell B1 ELSE, (if it does not contain any letter)
the number 88888 will appear.

For your own application, you can replace 99999 and 88888 to suit your
needs.

I hope this will help you.

Cameron Stewart Wrote:
I have a colum of values that includes data such as this:

1.9825
1.8770a
1.4617
1.02x20
1.4061
1.4163c
1.8002
2.4261
2.9756
3.6d679
1.6860

I want an if statement that says - if cell value contains ANY LETTER
then . . . .

(NB - the letter may be in any position in the number sequence.)


Any Help?

Cameron



--
BenjieLop


------------------------------------------------------------------------
BenjieLop's Profile: http://www.excelforum.com/member.php...o&userid=11019
View this thread: http://www.excelforum.com/showthread...hreadid=273464


Cameron Stewart

Thnx a lot - its easy once you know how . . ..


BenjieLop wrote in message ...
This formula (entered in Cell B1)

=if(istext(A1),99999,88888)

means that if the entry in cell A1 contains a letter, THEN the number
99999 will appear in cell B1 ELSE, (if it does not contain any letter)
the number 88888 will appear.

For your own application, you can replace 99999 and 88888 to suit your
needs.

I hope this will help you.

Cameron Stewart Wrote:
I have a colum of values that includes data such as this:

1.9825
1.8770a
1.4617
1.02x20
1.4061
1.4163c
1.8002
2.4261
2.9756
3.6d679
1.6860

I want an if statement that says - if cell value contains ANY LETTER
then . . . .

(NB - the letter may be in any position in the number sequence.)


Any Help?

Cameron



All times are GMT +1. The time now is 06:41 AM.

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