+ Reply to Thread
Results 1 to 6 of 6

Deviding numbers

  1. #1
    Registered User
    Join Date
    05-13-2015
    Location
    Zuid-Holland, Nederland
    MS-Off Ver
    2010
    Posts
    21

    Deviding numbers

    Dear People,

    How can I easily devide a list of numbers over two columns without losing the "0".

    For example:

    24,50 column B: 24 / column C: 50 (instead of 5)
    10,00 column B: 10 / column C: 00 (instead of 0)
    19,03 column B: 19 / column C: 03 (instead of 3)

  2. #2
    Registered User
    Join Date
    05-19-2015
    Location
    Wesley Chapel, Florida
    MS-Off Ver
    2013
    Posts
    7

    Re: Deviding numbers

    Using Text to Columns - you define each column as "Text" after the conversion -
    Column A
    24,50
    10,00
    19,03

    Selecting column A - then Data Tab - Text to Columns - Delimited -> Next - Delimiters = Comma (check box) -> Next - Set Destination for output - Select each column in Data Preview - specify Text - when done selecting the columns -> Finish.

    Regards,

    Christopher Shay

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Deviding numbers

    You can use the formula
    Please Login or Register  to view this content.
    for the decimal part
    and
    Please Login or Register  to view this content.
    for the integer part.

    Use the "0#,00" format in both results

    Best regards

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Deviding numbers

    in B1 and copy down

    =TEXT(INT(A1);"00")

    in C and copy down

    =TEXT(MOD(A1;1)*100;"00")

    Row\Col
    A
    B
    C
    1
    24,50
    24 50
    2
    10,00
    10 00
    3
    19,03
    19 03
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Registered User
    Join Date
    05-13-2015
    Location
    Zuid-Holland, Nederland
    MS-Off Ver
    2010
    Posts
    21

    Re: Deviding numbers

    ChristopherShay

    This is the result I get

    24,50 column B: 24 / column C: 5 (instead of 50)
    10,00 column B: 10 / column C: (instead of 00)
    19,03 column B: 19 / column C: 03 (OK)

    Could you please tell me what I am doning wrong?

  6. #6
    Registered User
    Join Date
    05-13-2015
    Location
    Zuid-Holland, Nederland
    MS-Off Ver
    2010
    Posts
    21

    Re: Deviding numbers

    Thanks a lot AlKey, great job!

+ 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. Replies: 7
    Last Post: 02-27-2014, 10:56 PM
  2. [SOLVED] Convert all numbers stored as text or custom formatted to numbers &no decimals - 40 sheets
    By synses in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-19-2013, 01:46 AM
  3. Replies: 8
    Last Post: 11-01-2012, 07:49 PM
  4. [SOLVED] How to merge a numbers from 3 cells, eliminate repetitive numbers, and sort such numbers?
    By david gonzalez in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-22-2012, 11:59 AM
  5. Replies: 9
    Last Post: 03-26-2012, 02:16 PM

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