Solved

Using Excel 2010 to chart data from a text file

Posted on 2012-03-13
2
267 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 50

Accepted Solution

by:
Ingeborg Hawighorst 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Power Query Grouping By 2 23
split data by day 21 35
Count number of rows containing same number is Column A 8 33
Excel with two IF statements 3 10
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

726 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