Hi,
How I do i use CHAR in a =IF formula? (or something similar)
e.g. =IF(A1=1,1,0)
i get either 1 or 0 depending on A1 value.
but if i want something like
e.g. =IF(CHAR(Y)=1,1,0)
i get 1 if it Y and 0 is it not Y.
Any idea?
Thanks!!
Hi,
How I do i use CHAR in a =IF formula? (or something similar)
e.g. =IF(A1=1,1,0)
i get either 1 or 0 depending on A1 value.
but if i want something like
e.g. =IF(CHAR(Y)=1,1,0)
i get 1 if it Y and 0 is it not Y.
Any idea?
Thanks!!
CHAR returns Character
CODE returns number
Maybe you need CODE to compare with value?
Quang PT
Yea... CHAR(89) = Y or CHAR(121) = y Capital/Lower
What are you trying to do... if you want to say if it equals Y just put Y... = IF(A1="Y",1,0)
Char Table
Attachment 476368
And now that I think about it...are you trying to count if it contains a Y?
= Countifs(A1,"*Y*") The * asterisk symbol is a wildcard and says if anything comes before and after ignore it...count if everything between the two * exists...in this case Y... So count if it contains a Y
Really would help to know what you are thinking and or why you are doing this.
Last edited by ELeGault; 08-21-2016 at 11:39 PM.
-If you think you are done, Start over - ELeGault
I believe he is asking how to make it check if there is text in the form of "Y" in cell A1.
That can be done by:
=IF(A1="Y",1,0)
If you want to test for a letter in a cell, why not just test for that letter?
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
Maybe like this ...
=--(A1="Y")
Also note that in most cases Excel will evaluate that "Y" and "y" are the same.
If you need to distinguish between upper and lower case then you'll need something different.
Biff
Microsoft MVP Excel
Keep It Simple Stupid
Let's Go Pens. We Want The Cup.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks