Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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" wrote in message ... 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
![]() |
|||
|
|||
![]()
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" wrote in message ... 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
![]() |
|||
|
|||
![]()
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" wrote in message ... 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
![]() |
|||
|
|||
![]()
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" wrote in message ... 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
![]() |
|||
|
|||
![]()
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" wrote in message ... 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" wrote in message ... 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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Change Dots into Commas as Decimal Divider | Excel Discussion (Misc queries) | |||
Converting a number to 2 decimal places | Excel Discussion (Misc queries) | |||
How do I override fixed decimal place settings in EXcel 2003? | Excel Worksheet Functions | |||
How do I convert decimal inches to fractions in excel | Excel Discussion (Misc queries) | |||
decimal point override does not work | Excel Discussion (Misc queries) |