+ Reply to Thread
Results 1 to 6 of 6

converting fractions to decimal

Hybrid View

  1. #1
    PDI-AV
    Guest

    converting fractions to decimal

    As a data entry tool in an Excel form, I'd like to convert a numeric fraction
    ("3/4") contained in a "source cell" to its decimal equivalent ("0.75")
    contained in a corresponding "target cell". The target cell needs to
    dynamically react to any changes in the source cell (using formulas and
    text-to-column delivers the correct result, but it is not dynamic). Is this
    possible? How?

  2. #2
    Jim Cone
    Guest

    Re: converting fractions to decimal

    It appears, after a little experimenting ,that
    entering the fraction as a fraction: 0 3/4
    or
    number formatting the fraction as a fraction
    allows the dependent cell to display decimals,
    if the dependent cell is formatted as a number.

    Jim Cone
    San Francisco, USA


    "PDI-AV" <PDI-AV@discussions.microsoft.com> wrote in message
    news:4668327A-1E1A-41F3-B7D2-B1AFFE546017@microsoft.com...
    As a data entry tool in an Excel form, I'd like to convert a numeric fraction
    ("3/4") contained in a "source cell" to its decimal equivalent ("0.75")
    contained in a corresponding "target cell". The target cell needs to
    dynamically react to any changes in the source cell (using formulas and
    text-to-column delivers the correct result, but it is not dynamic). Is this
    possible? How?

  3. #3
    Biff
    Guest

    Re: converting fractions to decimal

    Hi!

    Assume A1 holds the fractional value. Cell A1 would have to be formatted as
    TEXT, otherwise Excel will interpret 3/4 as a date.

    =LEFT(A1,FIND("/",A1)-1)/MID(A1,FIND("/",A1)+1,255)

    Biff

    "PDI-AV" <PDI-AV@discussions.microsoft.com> wrote in message
    news:4668327A-1E1A-41F3-B7D2-B1AFFE546017@microsoft.com...
    > As a data entry tool in an Excel form, I'd like to convert a numeric
    > fraction
    > ("3/4") contained in a "source cell" to its decimal equivalent ("0.75")
    > contained in a corresponding "target cell". The target cell needs to
    > dynamically react to any changes in the source cell (using formulas and
    > text-to-column delivers the correct result, but it is not dynamic). Is
    > this
    > possible? How?




  4. #4
    PDI-AV
    Guest

    Re: converting fractions to decimal

    Very,very cool! I'll spend a few minutes dissecting this expression (to
    completely understand it), but you have to admire the result! Many thanks!

    "Biff" wrote:

    > Hi!
    >
    > Assume A1 holds the fractional value. Cell A1 would have to be formatted as
    > TEXT, otherwise Excel will interpret 3/4 as a date.
    >
    > =LEFT(A1,FIND("/",A1)-1)/MID(A1,FIND("/",A1)+1,255)
    >
    > Biff
    >
    > "PDI-AV" <PDI-AV@discussions.microsoft.com> wrote in message
    > news:4668327A-1E1A-41F3-B7D2-B1AFFE546017@microsoft.com...
    > > As a data entry tool in an Excel form, I'd like to convert a numeric
    > > fraction
    > > ("3/4") contained in a "source cell" to its decimal equivalent ("0.75")
    > > contained in a corresponding "target cell". The target cell needs to
    > > dynamically react to any changes in the source cell (using formulas and
    > > text-to-column delivers the correct result, but it is not dynamic). Is
    > > this
    > > possible? How?

    >
    >
    >


  5. #5
    PDI-AV
    Guest

    Re: converting fractions to decimal

    OK, here's the next layer of complexity (for me)...given that the resulting
    decimal value in the target cell is used in other formulas, a valid number is
    required in this target cell as to preclude an error condition in the
    dependent formulas. When the source cell (containing the original fraction)
    is blank, this otherwise cool fraction-to-decimal formula delivers a
    non-numeric value in the target cell ("#VALUE!"). How can I condition the
    target cell to defaut to a zero value in this instance?

    "Biff" wrote:

    > Hi!
    >
    > Assume A1 holds the fractional value. Cell A1 would have to be formatted as
    > TEXT, otherwise Excel will interpret 3/4 as a date.
    >
    > =LEFT(A1,FIND("/",A1)-1)/MID(A1,FIND("/",A1)+1,255)
    >
    > Biff
    >
    > "PDI-AV" <PDI-AV@discussions.microsoft.com> wrote in message
    > news:4668327A-1E1A-41F3-B7D2-B1AFFE546017@microsoft.com...
    > > As a data entry tool in an Excel form, I'd like to convert a numeric
    > > fraction
    > > ("3/4") contained in a "source cell" to its decimal equivalent ("0.75")
    > > contained in a corresponding "target cell". The target cell needs to
    > > dynamically react to any changes in the source cell (using formulas and
    > > text-to-column delivers the correct result, but it is not dynamic). Is
    > > this
    > > possible? How?

    >
    >
    >


  6. #6
    Biff
    Guest

    Re: converting fractions to decimal

    Hi!

    Try one of these:

    =IF(A1="",0,LEFT(A1,FIND("/",A1)-1)/MID(A1,FIND("/",A1)+1,255))

    =IF(ISERROR(LEFT(A1,FIND("/",A1)-1)/MID(A1,FIND("/",A1)+1,255)),0,LEFT(A1,FIND("/",A1)-1)/MID(A1,FIND("/",A1)+1,255))

    Biff

    "PDI-AV" <PDIAV@discussions.microsoft.com> wrote in message
    news:5C0FB5A7-772F-42B0-A10D-416C92051B09@microsoft.com...
    > OK, here's the next layer of complexity (for me)...given that the
    > resulting
    > decimal value in the target cell is used in other formulas, a valid number
    > is
    > required in this target cell as to preclude an error condition in the
    > dependent formulas. When the source cell (containing the original
    > fraction)
    > is blank, this otherwise cool fraction-to-decimal formula delivers a
    > non-numeric value in the target cell ("#VALUE!"). How can I condition the
    > target cell to defaut to a zero value in this instance?
    >
    > "Biff" wrote:
    >
    >> Hi!
    >>
    >> Assume A1 holds the fractional value. Cell A1 would have to be formatted
    >> as
    >> TEXT, otherwise Excel will interpret 3/4 as a date.
    >>
    >> =LEFT(A1,FIND("/",A1)-1)/MID(A1,FIND("/",A1)+1,255)
    >>
    >> Biff
    >>
    >> "PDI-AV" <PDI-AV@discussions.microsoft.com> wrote in message
    >> news:4668327A-1E1A-41F3-B7D2-B1AFFE546017@microsoft.com...
    >> > As a data entry tool in an Excel form, I'd like to convert a numeric
    >> > fraction
    >> > ("3/4") contained in a "source cell" to its decimal equivalent ("0.75")
    >> > contained in a corresponding "target cell". The target cell needs to
    >> > dynamically react to any changes in the source cell (using formulas and
    >> > text-to-column delivers the correct result, but it is not dynamic). Is
    >> > this
    >> > possible? How?

    >>
    >>
    >>




+ 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