How to Add a Stacked Fraction in Excel: 5 Simple Methods

Method 1 – Using Fraction Format to Add a Stacked Fraction

Steps:

  • Select the cells C6:C10 and click Home > Number.
  • Click on the drop-down icon from the Number section and select Fraction from the appeared list.

Using Fraction Format to Add a Stacked Fraction

The Fraction format is showing the values as stacked fractions.


Method 2 – Custom Number Format to Add a Stacked Fraction in Excel

Steps:

  • Click on the Number Format icon from the Number section of the Home ribbon.

Custom Number Format to Add a Stacked Fraction in Excel

  • The Format Cells dialog box, click on Fraction from the ‘Category box’.
  • Get some custom fraction formats in the ‘Type’ box. Choose one of them, we chose As quarters (2/4).
  • Press OK.

Custom Number Format to Add a Stacked Fraction in Excel

The values are now converted to approximate quarter values.


Method 3 – Inserting Excel Equation to Add a Stacked Fraction

Steps:

  • Click as follows: Insert > Symbols > Equation.

Inserting Excel Equation to Add a Stacked Fraction

  • Click Equation > Fraction.
  • Select any of your desired fraction types. We selected the first one.

Inserting Excel Equation to Add a Stacked Fraction

  • Type 1 in the numerator and 2 in the denominator positions.

Inserting Excel Equation to Add a Stacked Fraction

  • Click anywhere out of the equation box, and you will get the stacked fraction.

Inserting Excel Equation to Add a Stacked Fraction

Following the same procedures, create the other stacked fractions.


Method 4 – Inserting Symbol to Add a Stacked Fraction

Steps:

  • Select a cell and click as follows: Insert > Symbols > Symbol.

Get a dialog box named ‘Symbol’.

Inserting Symbol to Add a Stacked Fraction

  • Some fraction symbols in the dialog box, select one of them, and click Insert.

Inserting Symbol to Add a Stacked Fraction

The inserted symbol will look like the image below.

Inserting Symbol to Add a Stacked Fraction

Insert the symbols into the other cells.


Method 5 – VBA Macro to Add a Stacked Fraction in Excel

Steps:

  • Press ALT + F11 to open the VBA window.

VBA Macro to Add a Stacked Fraction in Excel

  • Click Insert > Module to open a new module.

VBA Macro to Add a Stacked Fraction in Excel

  • Type the following codes in it-
Option Explicit
Sub Stacked_Fraction()
ActiveCell.FormulaR1C1 = Range("C5") & Chr(10) & "—" & Chr(10) & Range("C6")
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlBottom
.WrapText = True
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
End Sub
  • Go back to your sheet.

VBA Macro to Add a Stacked Fraction in Excel

  • Select the cell where you want to get the fraction. We selected Cell C8.
  • Then click as follows: Developer > Macros to open the Macros dialog box.

VBA Macro to Add a Stacked Fraction in Excel

  • Select the Macro Name and press Run.

VBA Macro to Add a Stacked Fraction in Excel

Our stacked fraction after using the VBA macro.


Download Practice Workbook

You can download the free Excel workbook from here and practice on your own.

.


Related Articles


<< Go Back to Fraction in Excel | Number Format | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!

Leave a Reply

Your email address will not be published. Required fields are marked *

Advanced Excel Exercises with Solutions PDF