Shared Solution: How to add a trendline for multiple XY series

L

LeAnne

Greetings, all -

Just thought I'd post a solution I devised for plotting a trendline for
multiple series in an XY scatter chart. I wanted to group my data into
different series based on category (Very Good, Good, Fair, Poor, and
Very Poor) so I could color-code the dot markers on my XY Chart.
However, the Chart > Add Trendline option would only allow me to select
one data series at a time. But I found a simple solution which worked
well in my case. After charting the X-Y values for each category, I then
added another series to my chart, named it "All," and inserted the cell
references for the X and Y values across all categories. Then I selected
the "All" series, added a trendline, then used Format > Selected Data
Series to render the markers in series "All" invisible (selected the
None radio button under Marker).

PS. I am using XL97. YMMV with other versions & other chart types.

Hoping this may be useful,

LeAnne
 
T

Tushar Mehta

Hi LeAnne,

Thanks for sharing that solution. It's amazing what one can do with a
little ingenuity!

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top