ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   If Question (https://www.excelbanter.com/excel-worksheet-functions/186565-if-question.html)

Carl

If Question
 
I am looking for a formula in ColC that will return TRUE is the right
character in COLA is 0 (zero).


ColA ColC
123 FALSE
120 TRUE


Thank You in Advance.

Gary''s Student

If Question
 
=RIGHT(A1,1)="0"
--
Gary''s Student - gsnu200784

David Biddulph[_2_]

If Question
 
Yes, but the OP should be warned that it wouldn't give TRUE if A1 contained
the number 123 *formatted* to look like 123.00; in that case the right-hand
character of the number in A1 is not zero.
--
David Biddulph

"Gary''s Student" wrote in message
...
=RIGHT(A1,1)="0"
--
Gary''s Student - gsnu200784




Gary''s Student

If Question
 
Yes David, that is exactly the point of my formula:

if A1 is 123 then
=RIGHT(A1,1)="0"
will return FALSE,even if A1 has been formatted to display 123.000
--
Gary''s Student - gsnu200784


"David Biddulph" wrote:

Yes, but the OP should be warned that it wouldn't give TRUE if A1 contained
the number 123 *formatted* to look like 123.00; in that case the right-hand
character of the number in A1 is not zero.
--
David Biddulph

"Gary''s Student" wrote in message
...
=RIGHT(A1,1)="0"
--
Gary''s Student - gsnu200784






All times are GMT +1. The time now is 02:02 PM.

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