Solved

Using Excel 2010 to chart data from a text file

Posted on 2012-03-13
2
263 Views
Last Modified: 2012-08-13
I'm trying to track some network performance stats on a couple of workstations. I've written a small vbscript to handle the job, and it works nicely, in the background, generating a tab-delimited text file as it goes. I have it running as a scheduled task, that kicks off every 5 minutes.

The fields are as follows:
site
TimeStamp
ResponseTime

So my file might look something like:
www.yahoo.com     11:06:37 AM     672
www.ucla.edu     11:06:37 AM     110
www.whatever.com     11:06:38 AM     169
www.yahoo.com     11:11:37 AM     535
www.ucla.edu     11:11:37 AM     115
www.whatever.com     11:11:38 AM     168
www.yahoo.com     11:16:37 AM     588
www.ucla.edu     11:16:37 AM     111
www.whatever.com     11:16:38 AM     170

What I want is a chart that will show the response times in the vertical axis, and the time on the horizontal axis. I want each site to have its own colored line in the graph.

How do I do that?
0
Comment
Question by:d0ughb0y
2 Comments
 
LVL 50

Accepted Solution

by:
teylyn earned 250 total points
ID: 37718232
Hello,

with data like this a XY Scatter chart may be best, since all items have different (or slightly different) time stamps.

You can create a pivot table to organize the data by web site, putting the site in the columns and the time stamp in the rows, the response time in the values, using sum.

Then create a blank XY Scatter chart with no data (since Pivot charts don't allow XY Scatter). Add the data series individually, using the row labels as the X values and the column data as the Y values.

You can set up dynamic range names both for the pivot table source as well as for the chart series, so that the chart will automatically grow with the data.

After new values are added in columns A to C, click the pivot table and select "Refresh" on the Options ribbon. The chart will then update automatically.

see attached.

cheers, teylyn
Book5.xlsx
0
 
LVL 8

Author Closing Comment

by:d0ughb0y
ID: 37720150
The sample is exactly what I had envisioned. I have to look up how you did the whole dynamic range thing - I'm not really familiar with the INDEX() function, but yeah - this does what I wanted. Thanks!
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now