Question

Excell 2000 - Graph Problem

Asked by: dog42

this may not be possible.  If it is and someone can show me how, i'll more than double the points


i have data recorded daily from 2 different shops in the form of:

  Shop   Date     Data
  sp1    ####   ++++
  sp2    ####   ++++
  sp1    ####   ++++
  sp2    ####   ++++
  sp1    ####   ++++
  sp2    ####   ++++

where the hashed obviously represent dates and the pluses represent numbers -currency

is it possible to have two lines, one for each shop, on the same graph with the date as the x-axis and the data as the y-axis


thanks
dog42

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2000-07-14 at 15:21:20ID10705603
Tags

excell

Topic

Microsoft Office Suite

Participating Experts
2
Points
250
Comments
19

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Excel graph with 3 axis
    1996 109.3 1.74 1997 125.7 2.18 1998 139.5 2.4 2002 211.8 2 I need to take this table and make from it a line graph which has 3 axis. The X axis must represent the years. The Y axis must represent the second column, so it must be defined i...
  2. graphing...
    I want to plot a simple X / Y graph like I used to do in High school on graph paper. What I have is two column's of data, that I would like to plot againt each other. When I try to do this in excel, one of the axis's gets "messed" up. Not a very technical word, b...
  3. MS Excel charts X Axis Scatter Graph Area Graph
    Hi when i use an area graph the X Axis is wrong and not to scale showing the wrong results. When I change this to a scatter graph I get the correct results and right axis - but I need it filled in like the area graph - see http://www.emzi.co.uk/BUS227/profitvolume.asp Pleas...
  4. Excel Graph
    I would like to create a scatter xy graph in Excel. I have three columns. Column 1: names of people Column 2: dates (x-axis) Column 3: values (y-axis) I would like to show a timeline of the values for each person on my scatter xy graph. That part is easy to set up. The...
  5. Two Axis Graphs - Excel
    I'm trying to create a graph that compares three series of data across two axes. I already have a solution to the question in that I know how to create a graph with a second axis. When I change the two latter series to the secondary axis, it plots them in front of the origin...
  6. graph
    hi, i would like to know how can i generate a bar chart automatical using perl. i've tried using Text::Graph module but the output is not really a bar chart. and i've also tried Template::Plugin::GD::Graph::bars however i do not know how to apply with perl. does anyone know...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: dog42Posted on 2000-07-14 at 15:24:20ID: 3381911

Sorry, I should have made that data a bit more clear

  Shop     Date        Data
  sp1    01/01/00   ++++
  sp2    01/01/00   ++++
  sp1    02/01/00   ++++
  sp2    02/01/00   ++++
  sp1    03/01/00   ++++
  sp2    03/01/00   ++++

Dog42

 

by: bruintjePosted on 2000-07-14 at 20:55:46ID: 3385011

Hi dog42,

Is it possible to
insert a new sheet in the workbook
reorder the data like

Date       Shop1    Shop2
01/01/00   ++++     ++++
02/01/00   ++++     ++++
03/01/00   ++++     ++++

and then plot the graph
you can link the data cells of course because every other row contains a new record for both shops...

Just a thought
HTH:O)Bruintje

 

by: dog42Posted on 2000-07-15 at 04:32:42ID: 3388193

yeah, that would fix the problem, but unfortunately i can't change the data as you mentioned.  The data is actually is being received from an access database.  

i couldn't make a separate query for each shop due to the fact that there are actually over 20 and there are about 15 data fields.  I am using visual basic to cut down the number of shops to 2 and a specific date range so that the data for the 2 specified shops can be compared easily.

is it not possible to do this in the format the data is at the moment? - i can think of some very messy ways of doing what i want but i was wondering if this was a built in function of excel

thanks for the reply
Dog42

 

by: BroertjePosted on 2000-07-15 at 06:32:19ID: 3389136

Unfortionatly if you cant change the data there is no WIZARD in excell that wil help you.
there is an easy way to do it an way but you have to update it everytime you change data, and thats not a sollution.
Any way good luck

(maybe you can change it from access)

 

by: dog42Posted on 2000-07-15 at 06:49:43ID: 3389271

thanks for the info
just out of interest, what was the easy solution

 

by: bruintjePosted on 2000-07-15 at 09:50:33ID: 3390853

maybe the  pivottable? and indeed it's no solution for data that's frequently updated....


I'm pretty sure you could do more from Access, but i'm no expert there....

So i wrote a little VBA routine to reorder your data in a second sheet called "ShopSheet"

I've done this presuming your excel sheet with the original data is called "Shops", but you can change that in the macro to suit your needs...

it'll copy paste to get the format usable for graph drawning...

Sub DateReorder()
    Dim count, i, j As Integer
    Dim CountRange As Range
    Dim ResultSheet As Worksheet
   
    Sheets("Shops").Select
    count = Range("A1", Selection.End(xlDown)).Rows.count
   
    Set ResultSheet = Sheets.Add
    ResultSheet.Name = "Shopsheet2"
    Range("A1").Value = "date"
    Range("B1").Value = "shop1"
    Range("C1").Value = "shop2"
   
    i = 0
    j = 2
    count = 5
    For i = 2 To count
      ResultSheet.Range("A" & i).Value = Sheets("shops").Range("B" & j).Value
      ResultSheet.Range("B" & i).Value = Sheets("shops").Range("C" & j).Value
      ResultSheet.Range("C" & i).Value = Sheets("shops").Range("C" & j + 1).Value
      j = j + 2
    Next i
End Sub


HTH:O)Bruintje

 

by: bruintjePosted on 2000-07-15 at 09:51:33ID: 3390855

oops.....

has to be

Sub DateReorder()
    Dim count, i, j As Integer
    Dim CountRange As Range
    Dim ResultSheet As Worksheet
   
    Sheets("Shops").Select
    count = Range("A1", Selection.End(xlDown)).Rows.count
   
    Set ResultSheet = Sheets.Add
    ResultSheet.Name = "Shopsheet2"
    Range("A1").Value = "date"
    Range("B1").Value = "shop1"
    Range("C1").Value = "shop2"
   
    i = 0
    j = 2
    For i = 2 To count
      ResultSheet.Range("A" & i).Value = Sheets("shops").Range("B" & j).Value
      ResultSheet.Range("B" & i).Value = Sheets("shops").Range("C" & j).Value
      ResultSheet.Range("C" & i).Value = Sheets("shops").Range("C" & j + 1).Value
      j = j + 2
    Next i
End Sub

 

by: dog42Posted on 2000-07-15 at 11:21:57ID: 3391774

that's a very good idea - it works fine when i set count to a specific value, but when it tries to get count from Selection.End(xlDown)).Rows.count it throws an error.  i am not used to using vb in excel, what is this code trying to do - get the maximum number of rows?

dog42

 

by: bruintjePosted on 2000-07-15 at 12:01:27ID: 3392130

yeah exact, it get the rows from A1 to the last one in that column or at least that's what it's meant to do....

change the line into

for i=2 to count-1 and i think it's solved --> count will be 65536...

 

by: dog42Posted on 2000-07-15 at 12:11:26ID: 3392270

i'm still getting the same error, sorry

 run-time error: '1004'
 Method 'Range' of object '_worksheet' failed

 

by: dog42Posted on 2000-07-15 at 12:12:36ID: 3392290

(and the error occurs on the line that sets 'count')

 

by: bruintjePosted on 2000-07-15 at 12:22:02ID: 3392375

What happens is this

-->Select the sheet called Shops
Sheets("Shops").Select

-->count = count the rows in the range A1 to xldown(end of used rows)
count = Range("A1", Selection.End(xlDown)).Rows.count

-->anyway you could solve it changing the 2 lines to

Sheets("Shops").Range("A1").Select
count = Range(Selection, Selection.End(xlDown)).Rows.count
which says this
select the cell A1 in sheet shopsheet
then select all the way down to the last used cell in that column....

 

by: dog42Posted on 2000-07-15 at 12:28:49ID: 3392410

Adjusted points from 100 to 250

 

by: dog42Posted on 2000-07-15 at 12:28:49ID: 3392411

i'm still getting an error - now it's changed to

 run-time error: '1004'
 object defined or object defined error

any idea why this is happening?

(i'm giving you the points as you've done quite a bit and i'm beginning to think i could settle with the one series)

 

by: dog42Posted on 2000-07-15 at 12:30:00ID: 3392416

Comment accepted as answer

 

by: bruintjePosted on 2000-07-15 at 12:33:09ID: 3392450

wew thanks...

a workable solution could be depending on how many rows there would be in a sheet just fill that in into the count hardcoded....

which version of excel are you using?

 

by: dog42Posted on 2000-07-15 at 12:41:27ID: 3392511

excel 2000 from proffesional edition of office (is that version 9?)

the problem with hardcoding the 'count' variable is that the data is updated daily so it will change - the number of rows is around 40,000 at the moment but could be 41,000 in a few months

 

by: bruintjePosted on 2000-07-15 at 12:44:25ID: 3392535

maybe it's the place wher you put the macro....

i insert a new module and just paste the code and run it with F8 stepping through the code, everything is getting filled like it should, then you could F5 and let the thing do it's work...

i ran it through Excel97 and excel2K without a problem....

so do run the code from a new module and not from the thisworksheet etc....
and be sure that the sheet is called like the one you mention in the code...

i hope you got something in this...

btw it shouldn't be a problem setting it to 65536 which is the last row of every sheet, although it got some overhead.... but i hope above gives you some direction...

 

by: dog42Posted on 2000-07-15 at 12:47:12ID: 3392552

thanks for all the help

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...