+ Reply to Thread
Results 1 to 6 of 6

formula to return last 2 or 3 digits in cell

  1. #1
    Registered User
    Join Date
    01-17-2023
    Location
    Fresno, CA
    MS-Off Ver
    MS Office Excel 64-bit
    Posts
    2

    Unhappy formula to return last 2 or 3 digits in cell

    hi! I'm trying to write a formula but i've been unsuccessful. i need,
    If last 3 digits in referencing cell (i.e. c5) are = or > 100, return last 3 digits. if last 3 digits are less than 100, return last 2 digits.
    I'd appreciate any help
    Last edited by kaylaortz; 01-17-2023 at 04:51 PM.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: formula to return last 2 or 3 digits in cell

    Maybe something like this

    =IF(RIGHT(A1,3)>=100,RIGHT(A1,3),RIGHT(A1,2))+0
    HTH
    Regards, Jeff

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,496

    Re: formula to return last 2 or 3 digits in cell

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    01-17-2023
    Location
    Fresno, CA
    MS-Off Ver
    MS Office Excel 64-bit
    Posts
    2

    Re: formula to return last 2 or 3 digits in cell

    thanks so much!!

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: formula to return last 2 or 3 digits in cell

    You are very welcome and glad you have something that works for you.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,496

    Re: formula to return last 2 or 3 digits in cell

    You're welcome. Thanks for the rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Looking for a formula to count single digits vs. double digits?
    By mnlaw in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-29-2023, 02:20 PM
  2. Match last 4 digits from cell with 4 digits in table
    By kc1ok in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-15-2017, 11:46 AM
  3. Formula to return first two digits but skips decimal point
    By docmac45 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-29-2015, 08:46 PM
  4. Replies: 2
    Last Post: 04-14-2014, 02:48 PM
  5. Replies: 5
    Last Post: 12-08-2008, 11:47 AM
  6. Formula or a macro to return the first three digits of a number
    By westonkw in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-17-2008, 03:54 PM
  7. [SOLVED] return significant digits of a cell
    By Chace in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-01-2005, 09:05 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1