Formula for cell=exact(left...&2)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

trying to make an equation for conditional format...?? where same cell has
x2, need to test for Exact/ small "x",

is this close, can't quite get: (where bj6 is 20)
=T9=(EXACT(LEFT(T9,1),"x")&$BJ$6/10) comes up false for "x2", should be
true.

=EXACT(LEFT(T9,1),"x")&$BJ$6/10 gets a true2

thanks.
 
Since =(EXACT(LEFT(T9,1),"x")&$BJ$6/10) returns true2 and T9 = x2,
=T9=(EXACT(LEFT(T9,1),"x")&$BJ$6/10) must return false beacuse the 2 values
are not equal.

If you you just want to check on the small "x" you must use :
=EXACT(LEFT(T9,1),"x")

If you want to check the concatenation of "x"& BJ6/10 then use

=EXACT(T9;"x"&$BJ$6/10)

HTH

Hans
 
Try this

=AND(EXACT(LEFT(T9),"x"),--RIGHT(T9,LEN(T9)-1)=$BJ$6/10)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
Hi, thanks, will give that a try, was wondering what the double negative / 2
minus signs do? thanks
 
That is a double unary. The RIGHT function will return a string, so a single
unary will convert it to a number, but a negative number, so the second
reverts it back to positive.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
:) sorry, didn't realize same replier... thanks

Bob Phillips said:
That is a double unary. The RIGHT function will return a string, so a single
unary will convert it to a number, but a negative number, so the second
reverts it back to positive.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top