Home > Blockchain >  How do you insert a sparkline in excel without using
How do you insert a sparkline in excel without using

Time:12-17

How can I create a Sparkline in Excel without going into the "insert" tab?

I'm looking for a formula or formula-like input I can write into a cell to generate the Sparkline.

Idealy something like:

enter image description here

CodePudding user response:

There is no formula, however you can just create one and then fill it down and you will have multiple spark lines. The data sources are dynamic and will reference each row.

Also, if you format your data as a table, each time you add a new row of data, the sparkline will automatically create for the new row.

Table Example

CodePudding user response:

I found xlsxwriter solved my problem. It's a Python library where you can write:

worksheet1.add_sparkline('A2', {'range': 'Sheet2!A1:J1'})

I also found it's other features very convenient. And it's well documented.

  • Related