+ Reply to Thread
Results 1 to 8 of 8

What calculation is this and can it be done in a formula?

  1. #1
    Registered User
    Join Date
    11-25-2014
    Location
    Isle of Man
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    82

    What calculation is this and can it be done in a formula?

    I realize this is a bit of a long-shot but I thought there may be no harm in asking!

    We are currently using a Bloomberg terminal to convert numbers like: 116-01 3/4 to: 116.05468750
    However, I'm not sure what calculation is occurring here to get the end number which we need. Therefore my question is-

    Is anyone able to tell what calculation/conversion is happening to get from: 116-01 3/4 to 116.05468750? and can this be done on excel (eg. through a formula?)

    Many thanks for any help! Apologies if this is a stupid question

  2. #2
    Forum Contributor
    Join Date
    08-25-2015
    Location
    Near Pittsburgh, PA
    MS-Off Ver
    Excel 2013
    Posts
    152

    Re: What calculation is this and can it be done in a formula?

    Could you give one or two more examples of the original data and the number?

  3. #3
    Registered User
    Join Date
    11-25-2014
    Location
    Isle of Man
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    82

    Re: What calculation is this and can it be done in a formula?

    Sure! Please see 2 more examples below:

    119-03 3/4 = 119.11718750

    117-08 7/8 = 117.27734375

  4. #4
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: What calculation is this and can it be done in a formula?

    The fractions are 32nds:

    01 3/4 = 1.75/32 = .0546875
    08 7/8 = 8.875/32 = .27734375

  5. #5
    Registered User
    Join Date
    11-25-2014
    Location
    Isle of Man
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    82

    Re: What calculation is this and can it be done in a formula?

    How on earth did you manage to work that out!? o.o Thank you, that's extremely helpful!!

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: What calculation is this and can it be done in a formula?

    Based on cantosh's EXCELLENT catch...
    A
    B
    12
    119-03 3/4
    119.1171875
    13
    14
    117-08 7/8
    117.2773438

    B12=--LEFT(A12,FIND("-",A12)-1)--(MID(A12,FIND("-",A12)+1,99)/32)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: What calculation is this and can it be done in a formula?

    Glad I could help! I stumbled about in the dark for a bit, then tried subtracting the value for 01 3/4 from the value for 03 3/4 and ended up with 2 = .0625 = 1/16, so 1 = 1/32. Thanks for finishing off the formula, Ford, your formula ended up being about 1/7 the length of mine!

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: What calculation is this and can it be done in a formula?

    Still nicely done, cantosh
    Thanks

+ 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: 1
    Last Post: 04-02-2016, 04:32 AM
  2. [SOLVED] Quintile Formula - Function Wise - Help need for formula calculation
    By Yadavgiri in forum Excel Formulas & Functions
    Replies: 38
    Last Post: 12-21-2015, 03:09 PM
  3. [SOLVED] IF formula calculation
    By SLAKEY in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-20-2013, 12:34 PM
  4. How to read formula result for calculation of another formula?
    By Shad0wguy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-02-2013, 02:15 PM
  5. excel formula calculation - how to insert the right formula
    By Manila.Boracay in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-17-2011, 04:21 AM
  6. Re: base formula calculation on whether different cell has formula
    By Bill Kuunders in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-21-2005, 05:05 PM
  7. base formula calculation on whether different cell has formula
    By rcmodelr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-19-2005, 08:05 PM

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