The Excel Sparklines Location Reference Is Not Valid – 2 Solutions

This is the sample dataset.

excel sparklines location reference is not valid


Solution 1 – Set the Data Range to One Dimensional

Sparklines do not function when the data range is two-dimensional.

Steps:

  • Go to the Insert tab >> Sparklines >> Select Line.

  • In Create Sparklines ,select a two-dimensional Data Range, for example, C5:E6.
  • Enter the Location Range.
  • Click OK.

excel sparklines location reference is not valid

  • The following message box will be displayed:

  • Select a one-dimensional Data Range, for example, C5:E5.

excel sparklines location reference is not valid

Excel will create a sparkline.

excel sparklines location reference is not valid

Read More: How to Use Sparklines in Excel


Solution 2 – Use a Single Cell Location Range

Sparklines do not function when the location range includes multiple cells.

Steps:

  • Go to the Insert tab >> Sparklines >> Select Line.

  • In Create Sparklines, select the Data Range.
  • Select multiple cells in Location Range (F5:F6).
  • Click OK.

excel sparklines location reference is not valid

The following message box will be displayed:

  • Select the Location Range as a single cell. Here, F5.
  • Click OK.

excel sparklines location reference is not valid

  • Excel will display a sparkline.

  • Drag down the Fill Handle to see the result in the rest of the cells.

excel sparklines location reference is not valid


Download Practice Workbook

Download the workbook and practice.


Related Articles


<< Go Back to Excel SparklinesLearn Excel

Get FREE Advanced Excel Exercises with Solutions!
Akib Bin Rashid
Akib Bin Rashid

AKIB BIN RASHID, a materials and metallurgical engineer, is passionate about delving into Excel and VBA programming. To him, programming is a valuable time-saving tool for managing data, files, and internet-related tasks. Proficient in MS Office, AutoCAD, Excel, and VBA, he goes beyond the fundamentals. Holding a B.Sc in Materials and Metallurgical Engineering from Bangladesh University of Engineering and Technology, MD AKIB has transitioned into a content development role. Specializing in creating technical content centred around Excel and... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo