Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have text that is written as 1 1/8 X 12 7/8. What I want to be able
to do is write a formula or piece of code to find the x and multiply the 2 numbers together. So in this case 14.48. The count of denominator changes as does having a fraction or not. Thanks, Jay |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
With your text in A1, put this in B1:
=TRIM(LEFT(A1,SEARCH("x",A1)-1)) * TRIM(RIGHT(A1,LEN(A1)- SEARCH("x",A1))) Format the cell as number with 2 decimal places. Hope this helps. Pete On May 2, 1:20*pm, jlclyde wrote: I have text that is written as 1 1/8 X 12 7/8. *What I want to be able to do is write a formula or piece of code to find the x and multiply the 2 numbers together. *So in this case 14.48. *The count of denominator changes as does having a fraction or not. Thanks, Jay |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On May 2, 7:36*am, Pete_UK wrote:
With your text in A1, put this in B1: =TRIM(LEFT(A1,SEARCH("x",A1)-1)) * TRIM(RIGHT(A1,LEN(A1)- SEARCH("x",A1))) Format the cell as number with 2 decimal places. Hope this helps. Pete On May 2, 1:20*pm, jlclyde wrote: I have text that is written as 1 1/8 X 12 7/8. *What I want to be able to do is write a formula or piece of code to find the x and multiply the 2 numbers together. *So in this case 14.48. *The count of denominator changes as does having a fraction or not. Thanks, Jay- Hide quoted text - - Show quoted text - Pete, You have once again shown that the Anthrax song I am the Man was written about you. Thanks, Jay |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Well, thanks for the feedback, Jay - I presume that means it worked !!
<bg Pete On May 2, 2:26*pm, jlclyde wrote: Pete, You have once again shown that the Anthrax song I am the Man was written about you. Thanks, Jay |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
In cell B1 enter:
=LEFT(A1,5)*RIGHT(A1,6) which displays 14.48438 -- Gary''s Student - gsnu200783 "jlclyde" wrote: I have text that is written as 1 1/8 X 12 7/8. What I want to be able to do is write a formula or piece of code to find the x and multiply the 2 numbers together. So in this case 14.48. The count of denominator changes as does having a fraction or not. Thanks, Jay |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Text to columns - right-aligned text | Excel Discussion (Misc queries) | |||
Split text without using data-text to columns | Excel Discussion (Misc queries) | |||
stopping pasted text deliminate across multiple cells | Excel Discussion (Misc queries) | |||
Excel is automatically doing "text to columns" upon paste text. | Excel Discussion (Misc queries) | |||
Linking text columns with text and data columns | Excel Worksheet Functions |