+ Reply to Thread
Results 1 to 5 of 5

A formula to seperate digits in a cell

  1. #1
    Forum Contributor
    Join Date
    07-21-2009
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    292

    Thumbs up A formula to seperate digits in a cell

    Hi all,

    During work this thing stuck me that i have a column A1 an amount like 12345663..now what i want in column B1 the same amount but except first 3 digits..for example instead of 12345663 i want only 45663 in column b..

    Please help..thanks in advance
    Last edited by tariqnaz2005; 10-27-2009 at 02:05 AM.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: A formula to seperate digits in a cell

    How about
    =MOD(A1, 10^(INT(LOG(A1))-2))
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Forum Contributor
    Join Date
    07-21-2009
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    292

    Re: A formula to seperate digits in a cell

    Thanks dear..it is same what i was looking but now i have a little bet problem..pls give me again your costly time..if A1 has 1234663 than your given formula is ok..but if A1 has 12345663a then b1 gives an error..pls give a look again..thanks

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: A formula to seperate digits in a cell

    Well,
    =RIGHT(A1,LEN(A1)-3)
    sounds good.

  5. #5
    Forum Contributor
    Join Date
    07-21-2009
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    292

    Re: A formula to seperate digits in a cell

    Thanks mikericson..i have no words to thanks you..thanks for quick response..you solved my probelms..God bless you..

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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