PC Review


Reply
Thread Tools Rate Thread

cells of varied length extract last 3 digits

 
 
PeggyT
Guest
Posts: n/a
 
      28th Nov 2009
each cell in a column ends with "Program ###". I would like to create a
column with just the ###. Where ### represents varied digits.
Thanks
Peggy
 
Reply With Quote
 
 
 
 
Ms-Exl-Learner
Guest
Posts: n/a
 
      28th Nov 2009
Use the formula for retreiving the last three characters / digits from a
particular cell.

For Retrieving Last Three Text Characters from a cell
=TRIM(RIGHT(A1,3))

For Retrieving Last Three Numeric Values from a cell
=--TRIM(RIGHT(A1,3))

Change the cell reference to your desired cell, if required.

If this post helps, Click Yes!

--------------------
(Ms-Exl-Learner)
--------------------



"PeggyT" wrote:

> each cell in a column ends with "Program ###". I would like to create a
> column with just the ###. Where ### represents varied digits.
> Thanks
> Peggy

 
Reply With Quote
 
T. Valko
Guest
Posts: n/a
 
      28th Nov 2009
> For Retrieving Last Three Numeric Values from a cell
> =--TRIM(RIGHT(A1,3))


A1 = text program 001

Your formulas return 1.

If you want the number extracted as a numeric number and to retain the 3
digit format then you'll have to use a custom number format like 000 to
display the leading 0s. Note that when doing this the leading 0s are for
display purposes only. The true value of the cell will be numeric 1.

--
Biff
Microsoft Excel MVP


"Ms-Exl-Learner" <(E-Mail Removed)> wrote in message
news:40163A66-DD43-4B72-B6CB-(E-Mail Removed)...
> Use the formula for retreiving the last three characters / digits from a
> particular cell.
>
> For Retrieving Last Three Text Characters from a cell
> =TRIM(RIGHT(A1,3))
>
> For Retrieving Last Three Numeric Values from a cell
> =--TRIM(RIGHT(A1,3))
>
> Change the cell reference to your desired cell, if required.
>
> If this post helps, Click Yes!
>
> --------------------
> (Ms-Exl-Learner)
> --------------------
>
>
>
> "PeggyT" wrote:
>
>> each cell in a column ends with "Program ###". I would like to create a
>> column with just the ###. Where ### represents varied digits.
>> Thanks
>> Peggy



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you create a chart with varied width and length? Jamal Microsoft Excel Charting 1 20th May 2010 04:06 PM
Extract text on right of various length from cells HammerD Microsoft Excel Misc 10 2nd Jul 2009 11:01 AM
Subtotaling a Varied length Spreadsheet =?Utf-8?B?VGhlbyBEZWdy?= Microsoft Excel Programming 1 3rd Jul 2007 06:12 PM
Excel - selecting varied length ranges for calculation Julie King Microsoft Excel Misc 2 24th Jun 2004 11:58 AM
Create label with varied length run-time. Tracey Microsoft VB .NET 3 28th Aug 2003 11:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:04 AM.