**191**

views

## Convert Decimal to Fraction in Excel - javatpoint

When working with Excel, we come across different data types like numbers, decimals, dates, currency, percentages, fractions, etc. Some of the data types are accepted in Excel by default. However, the values are automatically converted by Excel for some specific data types after we enter them into cells within the worksheet. Fraction is one such type or format that is not supported in Excel by default.

Excel provides easy-to-use methods to set any particular cell to any format, such as fractions. To use fractions in Excel, we must manually set the specific cell type or format as a fraction. Once the cell is formatted as fractions, the value recorded in it does not change automatically. In this way, we can convert decimals to fractions in Excel.

The fraction helps provide a better and clearer view of relationships between quantities compared to the decimal. In particular, Fractions help simplify the proportions by combining two integers into a ratio. Besides, the decimal represents the same quantity in the form of a single number. Thus, representing decimals as fractions seem more pleasant to the eyes.

For example, the fraction 1/3 looks more pleasing and accurate than the decimal number like 0.333333…, and so on. Therefore, when using Excel, it would be better to use fractions in the place of decimals to represent quantities within the sheet. This will help us quickly understand the corresponding quantities and further take decisions accordingly.

Generally, we prefer to use fractions than decimals when representing values such as days, ingredient quantities, chemical compounds, groceries, discrete concepts, etc. In such situations, the fractions provide a better representation, as in the form of ration relationships.

As said above, Excel does not support fractions within the cells by default. If we enter any fraction like 1/2, it automatically gets converted as a date or decimals. However, there may be times when we strictly need to use exact fractions within Excel cells. Under such circumstances, we have to convert specific cells format into a fraction.

There are several ways to convert a decimal to a fraction in Excel. We generally use Excel's Fraction Format to convert, display or type numbers as fractions. Depending on the different format or representation of the given number, we can convert decimal to fraction using the following methods:

When we need to convert any single number or cell into a fraction, we need to follow the steps discussed below:

Excel allows converting multiple cells of decimals to fractions at once. We can convert or format certain cells, an entire row or column, into fractions. All we have to do is select all the effective cells in the worksheet and select the fraction option as in the previous method, such as:

Once the cells are selected in the worksheet, we must go to the **Home tab > Number Formatting Drop-Down > Fraction**.

By default, Excel's fraction format displays only up to one digit in the denominator. However, there may be cases when the single-digit fraction may not work as desired. For example, if we type the decimal value 4.9 in an Excel cell and convert it to a fraction using the **Home tab > Number Formatting Drop-Down > Fraction**, it does not change to a fraction. Instead, it changes to 5.

The one-digit denominator fraction is the main reason why the decimal value 4.9 does not get changed into a fraction. The exact fraction value of 4.9 is 4 9/10, where the denominator consists of 2 digits. Since the default fraction format supports up to one digit denominator by default, Excel typically rounds off the fraction to 5.

To convert decimals into fractions in such conditions, we must set the fraction to have more than one digit in its denominator. For this, we must take advantage of the Format Cells dialogue box by following the steps discussed below:

In this way, we can convert a decimal to a fraction and choose between representing a fraction with a desired number of denominators. For example, when representing a fraction like 9/15 in an Excel cell, we can use the fraction with 'Up to two digits'. When representing a fraction like 320, we can select the fraction with 'Up to three digits'.

Additionally, the Format Cells dialogue box also enables us to represent the desired fraction in halves, quarters, eights, sixteenths, and so on.

By default, Excel auto-adjusts fractions to make the denominators smaller. For example, if we set a cell type as 'Fraction' and enter any number like 2/4, Excel automatically changes it to 1/2. The denominator is reduced from 4 to 2.

Therefore, if we want to prevent Excel from changing the denominator, we must define the denominator using the Format Cells dialogue box. In our example, since we want to fix the denominator as 4, we need to choose the '**As quarters (2/4)**' option from the list of fraction formats.

Similarly, if we want to set the denominator to 8, 16, 10, or 100, we can choose other respective fraction formats from the list.

We can use the Custom Number Format to set any custom fraction format for the desired cells. For example, when we want to fix the denominator to any value other than 2, 4, 8, 10, and 100, we can select the Custom option from the Format Cells dialogue box and specify or enter the desired fraction format code under the Type box.

Suppose we want to convert any decimal value into a fraction where the denominator is fixed to 30. Since there is no option for 'thirtieths', we must use a custom format. We need to enter the format code as (# ??/30) without parentheses inside the type box.

Splunk

SPSS

Swagger

Transact-SQL

Tumblr

ReactJS

Regex

Reinforcement Learning

R Programming

RxJS

React Native

Python Design Patterns

Python Pillow

Python Turtle

Keras

Aptitude

Reasoning

Verbal Ability

Interview Questions

Company Questions

Artificial Intelligence

AWS

Selenium

Cloud Computing

Hadoop

ReactJS

Data Science

Angular 7

Blockchain

Git

Machine Learning

DevOps

DBMS

Data Structures

DAA

Operating System

Computer Network

Compiler Design

Computer Organization

Discrete Mathematics

Ethical Hacking

Computer Graphics

Software Engineering

Web Technology

Cyber Security

Automata

C Programming

C++

Java

.Net

Python

Programs

Control System

Data Mining

Data Warehouse

JavaTpoint offers too many high quality services. Mail us on [email protected], to get more information about given services.

JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected]

Duration: 1 week to 2 week

Website Development

Android Development

Website Designing

Digital Marketing

Summer Training

Industrial Training

College Campus Training

Address: G-13, 2nd Floor, Sec-3

Noida, UP, 201301, India

Contact No: 0120-4256464, 9990449935

© Copyright 2011-2021 www.javatpoint.com. All rights reserved. Developed by JavaTpoint.