+ Reply to Thread
Results 1 to 11 of 11

Dynamic Chart with Horizontal Data

  1. #1
    Forum Contributor
    Join Date
    09-12-2015
    Location
    Okinawa, Japan
    MS-Off Ver
    2013
    Posts
    178

    Dynamic Chart with Horizontal Data

    I am trying to build a Dynamic Chart based on data in Sheet2. I have tried to research this myself but all the tutorials show data that is displayed and grows in Columns and my data is contained in Rows. I need to show a comparison between the class average and a given student based on dropdown list. Your help is appreciated.
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Dynamic Chart with Horizontal Data

    Put this in B4 of Sheet2:

    =VLOOKUP($A4,Sheet1!$A$8:$Z$47,COLUMNS($A:B),FALSE)

    then copy across.

    Hope this helps.

    Pete

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Dynamic Chart with Horizontal Data

    See if this works for you...
    Attached Files Attached Files
    HTH
    Regards, Jeff

  4. #4
    Forum Contributor
    Join Date
    09-12-2015
    Location
    Okinawa, Japan
    MS-Off Ver
    2013
    Posts
    178

    Re: Dynamic Chart with Horizontal Data

    Hey Jeff. Thank you for the submission. This is moving in the right direction of where I want to go. Do you have a link to a tutorial I can use to better educate myself on how this works?
    Ken

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Dynamic Chart with Horizontal Data

    Hi Ken,

    Well I can't point exactly to a site to do what I did, but this is a good place to start...

    https://peltiertech.com/Excel/Charts...umnChart1.html
    https://peltiertech.com/Excel/Charts/index.html
    https://peltiertech.com/dynamic-charts/

    The method I used is just something I've picked up over time...
    Last edited by jeffreybrown; 10-04-2018 at 08:14 PM.

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Dynamic Chart with Horizontal Data

    Note that you still need to make the change to your formula in B4 that I suggested in Post #2 - as it stands, you are picking up Susie's marks, not Sally's.

    Pete

  7. #7
    Forum Contributor
    Join Date
    09-12-2015
    Location
    Okinawa, Japan
    MS-Off Ver
    2013
    Posts
    178

    Re: Dynamic Chart with Horizontal Data

    Good catch, thank you Pete.

  8. #8
    Forum Contributor
    Join Date
    09-12-2015
    Location
    Okinawa, Japan
    MS-Off Ver
    2013
    Posts
    178

    Re: Dynamic Chart with Horizontal Data

    Jeff,

    So I tried to figure this out using very basic data. I created two formulas but cannot get a chart to accept them. Can you take a look and provide some guidance please.
    Thank you,
    Ken
    Attached Files Attached Files

  9. #9
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Dynamic Chart with Horizontal Data

    Hi Ken,

    What you have will work, you just need to replace the quotes from smart quotes to straight quotes.

    From this...
    =OFFSET(Charts!$B$2,,,COUNTIF(Charts!$B$2:$B$100,<>))

    To this...
    =OFFSET(Charts!$B$2,,,COUNTIF(Charts!$B$2:$B$100,"<>"))

    But what you are using is limiting the data to row 100. Why not make it more dynamic?

    =OFFSET(Charts!$B$2,,,COUNTA(Charts!$B:$B)-1,1)

    Better yet though, so you don't even have to mess with named ranges, convert your data into a Table and then create the chart from the Table.

    https://www.techrepublic.com/blog/mi...arts-in-excel/
    Last edited by jeffreybrown; 10-05-2018 at 10:06 AM.

  10. #10
    Forum Contributor
    Join Date
    09-12-2015
    Location
    Okinawa, Japan
    MS-Off Ver
    2013
    Posts
    178

    Re: Dynamic Chart with Horizontal Data

    Hey Jeff,
    Holy Cow! Smart quotes vs straight quotes. That would have taken me a month of Mondays to figure out. Thank you for your guidance and lessons. I will run with what you have shown me and see how far I can go.

    I appreciate your patience and inputs.

    Ken

  11. #11
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Dynamic Chart with Horizontal Data

    You are most welcome Ken. Happy to help. Come on back if you get stuck or need a nudge.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Turn Dynamic Horizontal Chart into 12-month rolling
    By robbrown in forum Excel General
    Replies: 7
    Last Post: 12-27-2015, 05:22 PM
  2. [SOLVED] Dynamic chart with last 11 horizontal values
    By scaffdog845 in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 04-07-2015, 11:04 AM
  3. Replies: 3
    Last Post: 10-27-2014, 05:35 AM
  4. Dynamic Chart Range for Horizontal values
    By phill_howz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-03-2014, 11:47 AM
  5. Dynamic Horizontal + Vertical chart
    By kluchy in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 03-13-2013, 07:59 AM
  6. Dynamic Chart with Horizontal Table
    By timarcarze in forum Excel Charting & Pivots
    Replies: 18
    Last Post: 12-20-2012, 11:35 AM
  7. Horizontal Bar Chart - Dynamic?
    By theghost in forum Excel Charting & Pivots
    Replies: 13
    Last Post: 09-24-2009, 02:41 AM

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