ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   How to convert fraction format to text format ...... (https://www.excelbanter.com/new-users-excel/119367-how-convert-fraction-format-text-format.html)

Epinn

How to convert fraction format to text format ......
 
....... and still shows the fraction instead of decimals?

I have formatted a range of cells to fraction. Then I key in the following values:-

1/2
1/5
1/4
1/3
2/7
9/16 etc. etc.

Then I format the cells to text and the fractions are converted to decimals. How can I have both text format and the fractions displayed as above without writing a formula?

I tried custom format, paste specialvalues etc. and had no luck.

I am also having trouble with a formula which works most of the time but not *all the time*.

e.g. A7 formatted to fraction8/16 then I key in 11/16.

The formula =TEXT(A7,"##/##") returns 9/13 instead of 11/16.

If I have to use a formula, is there a way to write one that will take care of all types of fractions shown in the drop-down list e.g. 1/4, 21/25, 8/16, 1/2, 3/10 etc. etc.

Appreciate guidance.

Epinn


Sandy Mann

How to convert fraction format to text format ......
 
Epinn,

When you enter the 1/2, 1/5 etc. you will see that in the formula bar it
shows 0.5, 0.2 etc. which is what is the value that is really held in the
cell not what you see, (which of course is only displayed differently to
show it how you requested. So when you reformat it to Text it is
reformatting the real value so it is not actually changing anything so does
not require a formula.

As to your text formula problem, I get 11/16 as expected.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"Epinn" wrote in message
...
....... and still shows the fraction instead of decimals?

I have formatted a range of cells to fraction. Then I key in the following
values:-

1/2
1/5
1/4
1/3
2/7
9/16 etc. etc.

Then I format the cells to text and the fractions are converted to decimals.
How can I have both text format and the fractions displayed as above without
writing a formula?

I tried custom format, paste specialvalues etc. and had no luck.

I am also having trouble with a formula which works most of the time but not
*all the time*.

e.g. A7 formatted to fraction8/16 then I key in 11/16.

The formula =TEXT(A7,"##/##") returns 9/13 instead of 11/16.

If I have to use a formula, is there a way to write one that will take care
of all types of fractions shown in the drop-down list e.g. 1/4, 21/25, 8/16,
1/2, 3/10 etc. etc.

Appreciate guidance.

Epinn



Epinn

How to convert fraction format to text format ......
 
Sandy,

I understand your first paragraph completely before I posted.

After I posted, I made a "discovery" which is probably nothing to the experts. I am going to start a new thread.

With my "discovery" I will approach this fraction issue differently. Originally, I thought formatting the cell to TEXT would make it TEXT. Now, my discovery told me otherwise, so I can solve my problem by just clicking the left align button. This way I don't see the decimals.

I do need the formula TEXT( ) if I do want a true TEXT format.

I think I got a "dirty" (in the English sense not Excel talk) cell, when I didn't get 11/16 using the formula. The decimal value wasn't 0.6875; it was three times as long. When I started fresh, I was okay.

I'll leave the following unanswered question for another day.

"How can I have both text format and the fractions displayed .......... without
writing a formula?"

I have to start my new thread now.

Thanks for dropping by.

Epinn

"Sandy Mann" wrote in message ...
Epinn,

When you enter the 1/2, 1/5 etc. you will see that in the formula bar it
shows 0.5, 0.2 etc. which is what is the value that is really held in the
cell not what you see, (which of course is only displayed differently to
show it how you requested. So when you reformat it to Text it is
reformatting the real value so it is not actually changing anything so does
not require a formula.

As to your text formula problem, I get 11/16 as expected.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"Epinn" wrote in message
...
....... and still shows the fraction instead of decimals?

I have formatted a range of cells to fraction. Then I key in the following
values:-

1/2
1/5
1/4
1/3
2/7
9/16 etc. etc.

Then I format the cells to text and the fractions are converted to decimals.
How can I have both text format and the fractions displayed as above without
writing a formula?

I tried custom format, paste specialvalues etc. and had no luck.

I am also having trouble with a formula which works most of the time but not
*all the time*.

e.g. A7 formatted to fraction8/16 then I key in 11/16.

The formula =TEXT(A7,"##/##") returns 9/13 instead of 11/16.

If I have to use a formula, is there a way to write one that will take care
of all types of fractions shown in the drop-down list e.g. 1/4, 21/25, 8/16,
1/2, 3/10 etc. etc.

Appreciate guidance.

Epinn




Epinn

How to convert fraction format to text format ......
 
You are invited to my new thread in the *functions* forum.
FormatCellsNumberText is very tricky!

Epinn

"Epinn" wrote in message ...
Sandy,

I understand your first paragraph completely before I posted.

After I posted, I made a "discovery" which is probably nothing to the experts. I am going to start a new thread.

With my "discovery" I will approach this fraction issue differently. Originally, I thought formatting the cell to TEXT would make it TEXT. Now, my discovery told me otherwise, so I can solve my problem by just clicking the left align button. This way I don't see the decimals.

I do need the formula TEXT( ) if I do want a true TEXT format.

I think I got a "dirty" (in the English sense not Excel talk) cell, when I didn't get 11/16 using the formula. The decimal value wasn't 0.6875; it was three times as long. When I started fresh, I was okay.

I'll leave the following unanswered question for another day.

"How can I have both text format and the fractions displayed .......... without
writing a formula?"

I have to start my new thread now.

Thanks for dropping by.

Epinn

"Sandy Mann" wrote in message ...
Epinn,

When you enter the 1/2, 1/5 etc. you will see that in the formula bar it
shows 0.5, 0.2 etc. which is what is the value that is really held in the
cell not what you see, (which of course is only displayed differently to
show it how you requested. So when you reformat it to Text it is
reformatting the real value so it is not actually changing anything so does
not require a formula.

As to your text formula problem, I get 11/16 as expected.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"Epinn" wrote in message
...
....... and still shows the fraction instead of decimals?

I have formatted a range of cells to fraction. Then I key in the following
values:-

1/2
1/5
1/4
1/3
2/7
9/16 etc. etc.

Then I format the cells to text and the fractions are converted to decimals.
How can I have both text format and the fractions displayed as above without
writing a formula?

I tried custom format, paste specialvalues etc. and had no luck.

I am also having trouble with a formula which works most of the time but not
*all the time*.

e.g. A7 formatted to fraction8/16 then I key in 11/16.

The formula =TEXT(A7,"##/##") returns 9/13 instead of 11/16.

If I have to use a formula, is there a way to write one that will take care
of all types of fractions shown in the drop-down list e.g. 1/4, 21/25, 8/16,
1/2, 3/10 etc. etc.

Appreciate guidance.

Epinn






All times are GMT +1. The time now is 06:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com