FORMULA WON'T WORK WITH LETTERS

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

Guest

I have this formula

=IF(LEN(TA!D2)>6,--RIGHT(TA!D2,6),TA!D2)

and it will take the last 6 numbers of a receipt from work book TA, line D2
and leave only the last six digits.

That is it will take 1234654318983

and leave 318983

It will only work with numbers. I have some receipts that have letters as
the last characters in the sequence.

How can I get the formula to work with letters as well as numbers?
 
=IF(LEN(TA!D2)>6,IF(ISNUMBER(TA!D2),--RIGHT(TA!D2,6),RIGHT(TA!D2,6)),TA!D2)

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)
 
Hi,
Try this one, it may be help you ...:
=IF(LEN(TA!D2)>6,RIGHT(TA!D2,6),TA!D2)

Rgds,

Halim
 

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

Similar Threads

Bug in my code 5
Beginner asking for advice 9
Len() 3
Macro Script 2
Formula Correction 5
End process at last row of data 3
Aliases Cell formulas Convert to VBA 1
formula help 1

Back
Top