Consulting

Results 1 to 7 of 7

Thread: Fixing Numbers

  1. #1

    Fixing Numbers

    Hi. I have a column in excel with like a thousand different numbers like 1564, 5560, 2504, 720, 474, 12 etc.
    The problem is that 1564 doesn't mean 1564 it means 156.5
    5560=556, 2504=250.5, 720 = 72 and 4742=474.25, 12 =1.25
    basically whatever the last digit of the number is, it gets divided by 8.
    Is there anything i can do in excel -maybe write some kind of command or some option- to spit out the actual number in a different column?
    thanks

  2. #2
    assuming figure in A1
    =int(A1/10)+(a1-int(a1/10)/8)
    2+2=9 ... (My Arithmetic Is Mental)

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    =INT(A1/10)+(A1-INT(A1/10)*10)/8
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  4. #4
    Ooops ! that'll teach me to try before I buy !!!!!
    2+2=9 ... (My Arithmetic Is Mental)

  5. #5
    Thank you both!! Very much appreciated!

  6. #6
    VBAX Master Norie's Avatar
    Joined
    Jan 2005
    Location
    Stirling, Scotland
    Posts
    1,831
    Location
    Here's another approach.

    =INT(A1/10)+MOD(A1,10)/8

  7. #7
    Norie, that's even neater
    2+2=9 ... (My Arithmetic Is Mental)

Posting Permissions

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