Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default FORMULA WON'T WORK WITH LETTERS

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?
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 380
Default FORMULA WON'T WORK WITH LETTERS

=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)

"OfficeNDN" wrote in message
...
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?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 113
Default FORMULA WON'T WORK WITH LETTERS

Hi,

How can I get the formula to work with letters as well as numbers?

Try this one, it may be help you ...:
=IF(LEN(TA!D2)6,RIGHT(TA!D2,6),TA!D2)

Rgds,

Halim

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default FORMULA WON'T WORK WITH LETTERS

Thank you all,

The formula's worked perfectly (all of the formula's submitted).

" wrote:

Hi,

How can I get the formula to work with letters as well as numbers?

Try this one, it may be help you ...:
=IF(LEN(TA!D2)6,RIGHT(TA!D2,6),TA!D2)

Rgds,

Halim


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Formating Letters to Numbers while Displaying Letters Luke Androsiglio Excel Worksheet Functions 2 March 31st 10 06:29 PM
formula to work in a 3-d reference with 2 work books capt c Excel Worksheet Functions 1 April 8th 09 08:04 PM
How do change a column of data in capitol letters to small letters Barb P. Excel Discussion (Misc queries) 6 November 15th 06 06:17 PM
formula with letters and numbers Bigdaddy0242 New Users to Excel 1 September 29th 06 02:26 PM
MAX formula for alphabetical letters bigwheel Excel Discussion (Misc queries) 1 June 1st 05 12:00 AM


All times are GMT +1. The time now is 11:01 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"