+ Reply to Thread
Results 1 to 10 of 10

Embedding a chart in a cell?

  1. #1
    Registered User
    Join Date
    06-30-2011
    Location
    Dallas
    MS-Off Ver
    Excel 2007
    Posts
    8

    Embedding a chart in a cell?

    I am curious, is there a way to make it so the last column in a series of data could have a drop down arrow of sorts where when you click it, it displays a chart for the row you are on.

    I have a sheet with about 400 rows and each row has data that needs to be plotted on a chart. Instead of making 400 sheets with each chart I was trying to come up with a more manageable solution. Anyone have any ideas or know if this is possible?
    Last edited by Leumas786; 07-29-2011 at 02:53 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Embedding a chart in a cell?

    I attached two options. In Option 1, there's a dropdown list of your ID's (series IDs) and then INDEX to fill in the rest of the values.

    In option 2, closer to what you asked for, at the end of each row is a dropdown where you can select "Y" and that row will be graphed. In this option, you could hide rows 2 and 3.
    Do either of these work for you?
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    06-30-2011
    Location
    Dallas
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Embedding a chart in a cell?

    This is VERY helpful, I think option #2 will work out perfectly. My only lingering question is, how do you format the column you have titled "Chart?"

    View the cells gives me no insight into what you have going on in that cell. I thought it might auto create the dropdown menu when I put the info into my spreadsheet but it didn't.

    One more thing, I figured that I can just type whatever I need in the cell to make the specific chart appear but the chart system is not locating the numbers. It is displaying the "#NAME?" error. What could be causing this. Are there any tricks to applying this method that I may be overlooking?
    Last edited by Leumas786; 07-29-2011 at 01:02 PM.

  4. #4
    Registered User
    Join Date
    06-30-2011
    Location
    Dallas
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Embedding a chart in a cell?

    So it seems that my problem is that the ID does not allow for a complex entry. I have names with numbers after them for example "Alvin 33-08" and it does not seem to be able to work with an entry like this. I guess I will have to reduce it down to something simpler or put in a arbitrary value

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Embedding a chart in a cell?

    for the "Chart?" column, I just selected the column and set up Data Validation (Data Tab>Data Validation> List> Y)
    Where is it displaying #NAME?

    Here is a good link for learning the INDEX function
    http://www.contextures.com/xlFunctions03.html

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Embedding a chart in a cell?

    The complexity of your ID shouldn't matter. Can you upload a spreadsheet example (Go advanced>Manange Attachments)?

  7. #7
    Registered User
    Join Date
    06-30-2011
    Location
    Dallas
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Embedding a chart in a cell?

    Quote Originally Posted by ChemistB View Post
    for the "Chart?" column, I just selected the column and set up Data Validation (Data Tab>Data Validation> List> Y)
    Where is it displaying #NAME?

    Here is a good link for learning the INDEX function
    http://www.contextures.com/xlFunctions03.html
    It is displaying "#NAME" in the what would be the cells directly under the Val 1-Val6 (The ones that are used to construct the chart)

    I think the problem lies in the ID column, I tried several different things and if anything other than a letter is placed in the ID column it does not work. Is there any way around this or am I limited to only 26 possible values?

  8. #8
    Registered User
    Join Date
    06-30-2011
    Location
    Dallas
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Embedding a chart in a cell?

    Quote Originally Posted by ChemistB View Post
    The complexity of your ID shouldn't matter. Can you upload a spreadsheet example (Go advanced>Manange Attachments)?
    This might help, its an exert of the data

    Example.xlsx

  9. #9
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Embedding a chart in a cell?

    Yep, that helped. I created a defined name called "List" which is a list of your ID's. You're using that in the formula instead of writing out the full range (i.e. =INDEX($B$6:$G$27,MATCH($A$2,List,0),COLUMN()-1) instead of =INDEX($B$6:$G$27,MATCH($A$2,$A$6:$A$27,0),COLUMN()-1))

    To create a simple defined name, Select your range (i.e. A6:A27) and in the name box (the white text box upper left where you usually see the Cell ID) type in the defined name (i.e. in this case List) and hit enter. To look or modify your defined names in Excel 2007, go to the Formula Tab > Name Manager.
    Did that fix everything?

  10. #10
    Registered User
    Join Date
    06-30-2011
    Location
    Dallas
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Embedding a chart in a cell?

    Quote Originally Posted by ChemistB View Post
    Yep, that helped. I created a defined name called "List" which is a list of your ID's. You're using that in the formula instead of writing out the full range (i.e. =INDEX($B$6:$G$27,MATCH($A$2,List,0),COLUMN()-1) instead of =INDEX($B$6:$G$27,MATCH($A$2,$A$6:$A$27,0),COLUMN()-1))

    To create a simple defined name, Select your range (i.e. A6:A27) and in the name box (the white text box upper left where you usually see the Cell ID) type in the defined name (i.e. in this case List) and hit enter. To look or modify your defined names in Excel 2007, go to the Formula Tab > Name Manager.
    Did that fix everything?
    Awesome, this worked perfectly. Thank you so much

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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