IF or ISnumber ???

F

Frank Kabel

Hi
try
=IF(ISNUMBER(--MID(D6,LEN(TRIM(D6)),1)),"Action for true","Action for
false")
 
B

Bernie Deitrick

Walt,

=IF(ISNUMBER(VALUE(MID(D6,LEN(TRIM(D6)),1))),"True part","False part")

But this is simpler:

=(ISNUMBER(VALUE(RIGHT(TRIM(D6),1))))

or

=IF(ISNUMBER(VALUE(RIGHT(TRIM(D6),1))),"True part","False part")

In VBA:

If IsNumeric(Right(Application.Trim(Range("D6").Value), 1)) Then
MsgBox "It's True"
Else
MsgBox "It's False"
End If

HTH,
Bernie
MS Excel MVP
 
O

Otto Moehrbach

What do you mean by "take action"?
What do you want to happen when it's True? False? HTH Otto
 

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

Top