Write an exact reduced fraction

Turn a top number 6 and bottom number 8 into 3/4, exactly.

What you'll make

In Excel: 6/8 becomes 3/4.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1A8/GCD(ABS(A8),B8)Divides the top number by the largest shared factor.3
2&"/"&Puts a slash between the two numbers."3/"
3B8/GCD(ABS(A8),B8)Divides the bottom number by the same factor."3/4"

GCD finds the largest whole number that divides both, here 2. Zero gives 0/1, and a whole number keeps /1.

=A8/GCD(ABS(A8),B8)&"/"&B8/GCD(ABS(A8),B8)

How to use it

Yellow bar at the top? Click Enable Editing.

  1. See it work. The Example tab shows 20 made-up examples with the formula already in.
  2. Use your own numbers. Paste the top numbers into column A and the bottom numbers into column B of the Template tab. The fractions fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

Use whole numbers only. A decimal like 0.75 isn't turned into a fraction here.

Microsoft's help: GCD function