+ Reply to Thread
Results 1 to 3 of 3

Create several charts based on cell values

  1. #1
    Registered User
    Join Date
    12-11-2012
    Location
    cincinnati, ohio
    MS-Off Ver
    Excel 2010
    Posts
    43

    Create several charts based on cell values

    Hi, I am having trouble creating a macro that would be able to evaluate a column of cells and chart the corresponding x,y values. I need to do this for about 70 charts. In the column to be evaluated I have the name of my products: sodas, snacks, candy, and water; in the following columns, but in rows corresponding to the products I have the number of each purchased on a specific date. For example:

    Column1 Column2 Column3
    Sodas 10 1/1/2013
    snacks 5 1/1/2013
    candy 8 1/1/2013
    water 15 1/1/2013
    Sodas 7 1/3/2013
    snacks 9 1/3/2013
    candy 4 1/4/2013
    water 11 1/5/2013
    Sodas 12 1/6/2013
    snacks 6 1/7/2013
    candy 9 1/7/2013
    water 20 1/8/2013

    I need a macro that can seperate out each of my categories and chart the dates along the x and the amount purchased along the y. A final challenge to this is that i have the data seperated by quarter in different tabs but I want all the graphs to appear on a single tab, so it would also have to go to different sheets and find the data. Is this possible? I am usually ok at finding macros and editing them to suit my needs but this has been a different beast from anything I have ever tried to accomplish. Thank you very much for any help you can offer!
    Last edited by rodrignj; 01-31-2013 at 01:15 PM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Create several charts based on cell values

    Is this solved?

    If you solve a problem yourself before anyone else has responded, please take a moment to describe your solution, chances are some other member will benefit.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    12-11-2012
    Location
    cincinnati, ohio
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Create several charts based on cell values

    I found a macro at http://stackoverflow.com/questions/1...roups-and-crea that helped.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1