Turn fraction around

PabloFer

New Member
Joined
Sep 16, 2020
Messages
12
Office Version
  1. 365
Platform
  1. Windows
Hello I need to turn a fraction around, for example I have 1/3 but I need to present as 3/1
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
i assume the fractions are Text format
If they are only 1 character
=RIGHT(A1,1)&"/"&LEFT(A1,1)
otherwise , would need to work out the length and where the / exists
IE
32/431

can you explain if the fraction will contain more than 1 character each side of the /

otherwise we need a find
=RIGHT(A1,LEN(A1)-FIND("/",A1,1))&"/"&LEFT(A1,FIND("/",A1,1)-1)
 
Upvote 0
Welcome to the Board!

Are you just wanting to change the presentation of it, but want it to retain its former value?
(so should 3/1 actually have the value of 3 or 1/3)?

Are you trying to do anything math functions on it?
If not, you can just first format the cells as Text, and then when you enter 3/1, it will show it like that.
 
Upvote 0
Thank you, there is a lot of lines I need to change they will not exceed 2 characters on each side. What I need to do is take the result of a division which is in fraction format and turn around, for example my result is 1/3 or 1/10 and I need to present inverted like 3/1 or 10/1
 
Upvote 0
Can you post a small sample of your data,, so we can see exactly what it looks like?
You can post Excel images using the tool mentioned here: XL2BB - Excel Range to BBCode
 
Upvote 0
did my suggestion work?
=RIGHT(A1,LEN(A1)-FIND("/",A1,1))&"/"&LEFT(A1,FIND("/",A1,1)-1)

Book1
AB
132345/34563456/32345
Sheet1
Cell Formulas
RangeFormula
B1B1=RIGHT(A1,LEN(A1)-FIND("/",A1,1))&"/"&LEFT(A1,FIND("/",A1,1)-1)
 
Upvote 0
with Power Query
sourceresult
1/33/1
3/5050/3
56/2828/56
1/1010/1

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table15"]}[Content],
    Text = Table.TransformColumnTypes(Source,{{"source", type text}}),
    Split = Table.SplitColumn(Text, "source", Splitter.SplitTextByDelimiter("/", QuoteStyle.Csv), {"source.1", "source.2"}),
    TCC = Table.CombineColumns(Table.TransformColumnTypes(Split, {{"source.2", type text}, {"source.1", type text}}, "en-GB"),{"source.2", "source.1"},Combiner.CombineTextByDelimiter("/", QuoteStyle.None),"result")
in
    TCC
 
Upvote 0
[
did my suggestion work?
=RIGHT(A1,LEN(A1)-FIND("/",A1,1))&"/"&LEFT(A1,FIND("/",A1,1)-1)

Just tried, No it did not worked
 

Attachments

  • Forum.JPG
    Forum.JPG
    138.5 KB · Views: 7
Upvote 0

Forum statistics

Threads
1,212,938
Messages
6,110,789
Members
448,297
Latest member
carmadgar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top