Convert Fractional Inch Dimensions to Rounded-Up Numbers in Excel
Question details
Split dimensions stored as text into separate columns, convert fractional inches to numbers, and round each dimension up to a whole number.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Dimensions exported from a design program appear in a single cell, such as 13-1/8" x 99-1/2" or 9-0" x 9-0".
- Observed behavior
- The desired result is two numeric columns containing rounded-up whole-inch values, including correct handling of zero fractions.
Check that each source cell contains two nonnegative dimensions separated by a lowercase x, with mixed fractions written using a hyphen, such as 13-1/8. In Excel, select the source data and use Insert > Table if it is not already in a table.
Parse and Round Inch Dimensions with Excel Power Query
Use Power Query to transform exported dimensions consistently, including dimensions with a zero fractional part.
Select a cell in the table and choose Data > From Table/Range to open Power Query Editor. Keep the dimension column as text.
Select the dimension column, then choose Split Column > By Delimiter. Select Custom, enter x, and split at the left-most delimiter. Rename the two resulting columns Width and Height.
Choose Add Column > Custom Column, name it Rounded Width, and enter: let t = Text.Trim(Text.Replace([Width], """", "")), p = Text.Split(t, "-"), f = if List.Count(p) > 1 then Text.Trim(p{1}) else "0", parts = Text.Split(f, "/"), fraction = if List.Count(parts) = 2 then Number.FromText(parts{0}) / Number.FromText(parts{1}) else Number.FromText(f) in Number.RoundUp(Number.FromText(Text.Trim(p{0})) + fraction)
Choose Add Column > Custom Column again and name it Rounded Height. Reuse the formula from the previous step, replacing [Width] with [Height]. Set both rounded columns to Whole Number using their column data type controls.
Choose Home > Close & Load to return the results to Excel. Check that 13-1/8" x 99-1/2" produces 14 and 100, while 9-0" x 9-0" produces 9 and 9.
Convert and Round Inch Dimensions in WPS Spreadsheet
Use formulas in WPS Spreadsheet to split each dimension, convert its fractional part, and round the results up without Power Query.
- 1. Open the dimensions: Open your workbook in WPS Spreadsheet and place the dimension text in column A, starting in A2.
- 2. Split and clean the text: In B2 enter =TRIM(SUBSTITUTE(LEFT(A2,FIND("x",LOWER(A2))-1),CHAR(34),"")) and in C2 enter =TRIM(SUBSTITUTE(MID(A2,FIND("x",LOWER(A2))+1,LEN(A2)),CHAR(34),"")).
- 3. Convert and round: In D2 enter =ROUNDUP(IF(ISNUMBER(SEARCH("-",B2)),VALUE(LEFT(B2,FIND("-",B2)-1))+IF(ISNUMBER(SEARCH("/",B2)),VALUE(MID(B2,FIND("-",B2)+1,FIND("/",B2)-FIND("-",B2)-1))/VALUE(MID(B2,FIND("/",B2)+1,LEN(B2))),VALUE(MID(B2,FIND("-",B2)+1,LEN(B2)))),VALUE(B2)),0). Copy D2 to E2 to calculate the second dimension from C2.
- 4. Fill down and check: Select B2:E2 and drag the fill handle down for the remaining rows. Confirm that 13-1/8" x 99-1/2" returns 14 and 100, and that 9-0" x 9-0" returns 9 and 9.

Frequently Asked Questions
Why does 13-1/8 round up to 14?
The fractional dimension represents 13 plus 1/8, or 13.125 inches. Power Query's Number.RoundUp returns the next whole number, 14.
How does the conversion handle 9-0?
The Power Query formula treats the part after the hyphen as zero, so Number.RoundUp returns 9 rather than an error.
Can I refresh the results after importing new dimensions?
Yes. Update the Excel source table, then choose Data > Refresh All to run the Power Query transformation again.
What if my dimensions use an uppercase X?
In Power Query, replace uppercase X with lowercase x before splitting the column, or use X as the custom delimiter. The WPS formulas use LOWER to find either case.
Will the formulas work with malformed fractions?
No. Check the source cells for missing numbers or zero denominators before conversion. The formulas expect valid nonnegative dimensions such as 13-1/8 or 9-0.




