Function Problems

How to Convert a Fraction Stored as Text to a Percentage in Excel

Algirdas JasaitisAlgirdas Jasaitis Nov 11, 2026 869 views

Question details

The user needs to convert an attendance fraction that is currently stored as text (e.g., '4/10') into a formatted percentage (e.g., '40%').

How to Convert a Fraction Stored as Text to a Percentage in Excel
Product
Excel
Device & OS
not provided
Scenario
Calculating and formatting attendance records where data is entered as text fractions.
Observed behavior
The fraction is recognized as text rather than a mathematical operation, preventing it from automatically calculating or displaying as a percentage.
Before you start

Ensure that your text fractions follow a consistent format with a single forward slash (/) separating the numerator and denominator, and contain no hidden spaces.

Solution 1Recommended

Use the LEFT, MID, and FIND Functions

This method works across all versions of Excel by locating the slash to extract the numbers before dividing them.

By using text manipulation functions, we can dynamically find the position of the slash delimiter. This allows the formula to extract the numerator (using LEFT) and the denominator (using MID), divide them, and format the result as a percentage regardless of how many digits the numbers have.

1
Select the destination cell

Click on an empty cell where you want the calculated percentage to appear.

2
Enter the formula

Assuming your text fraction is in cell A1, input the formula: =TEXT(LEFT(A1,FIND("/",A1)-1)/MID(A1,FIND("/",A1)+1,99),"0.0%")

3
Apply to other cells

Press Enter to view the result. Then, click the bottom-right corner of the cell and drag the fill handle down to apply the formula to the rest of your attendance data.

Use the LEFT, MID, and FIND Functions
Best Practice for Data Entry: If possible, it is always better to store the numerator (days attended) and denominator (total days) in separate numeric columns and divide them directly for easier calculations.
Try WPS Spreadsheet

Manage Your Attendance Data Efficiently with WPS Office

WPS Spreadsheet fully supports advanced text and math functions, allowing you to easily parse fractions and format them as percentages without compatibility issues.

  1. 1. Open your file in WPS: Launch WPS Spreadsheet and open your attendance record containing the text fractions.
  2. 2. Enter the conversion formula: Select the adjacent blank cell and type =TEXT(LEFT(A1,FIND("/",A1)-1)/MID(A1,FIND("/",A1)+1,99),"0.0%").
  3. 3. Format instantly: Press Enter to instantly convert the text string to a precise percentage, then drag the cell downwards to process your entire list.
Fully compatible with Microsoft Excel (.xlsx, .xls, .csv) formats and formulas.Includes a wide range of powerful text manipulation functions like LEFT, MID, and FIND.Lightweight and runs smoothly on Windows, Mac, Linux, and mobile devices.Free to use with a familiar, tabbed user interface for seamless workflow migration.
microsoft office alternative - wps office

Frequently Asked Questions

Why doesn't Excel automatically convert my fraction to a percentage?

When a fraction is entered as text (for instance, with a leading apostrophe or typed into a cell formatted as Text), the spreadsheet treats it as a string of characters rather than a mathematical division operation. It needs to be parsed into numbers using formulas first.

Can I change the number of decimal places in the percentage result?

Yes. In the TEXT function, you can adjust the format code. Use "0%" for no decimal places, or "0.00%" to display two decimal places.

What if my denominator is always the same, like 10?

If the denominator is fixed and the numerator is always a single digit, you can simplify the formula significantly. For example, =TEXT(LEFT(A1,1)/10,"0.0%") will extract the first number and divide it by 10.

How do I extract just the numbers without formatting them as text percentages?

If you want the raw decimal number to use in other mathematical calculations, simply omit the TEXT function wrapper: =LEFT(A1,FIND("/",A1)-1)/MID(A1,FIND("/",A1)+1,99). Then, you can apply the standard Percentage number format from the Home tab.