+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Registered User
    Join Date
    11-11-2008
    Location
    Germany
    Posts
    6

    Charts: Legend problem with variable length

    Hi there,

    i've a problem while generating a Chart..

    Let me explain the Table and the goal.

    Col. A shows 1-25 so 25 Rows given. An Group may have 1 up to 25 Accounts. Lets guess Group 1 has 5 Accounts. Creating a Chart now Legend shows 5 Account Names but also 20 Entries without Names.

    Next Group may have 10 Accounts. So Chart shows 10 Accs and 15 without names.

    How can I create this Chart showing only Accounts which have also a "real name".

    Thanks in advance

    Cheers
    LouSifer

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    2003 & 2007 & 2010
    Posts
    10,944
    How about using autofilter to hide rows without valid name
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    11-11-2008
    Location
    Germany
    Posts
    6
    Problem is that the Report will generate 500 Group Reports via Macro. So the Report should stay as flexible as it is

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    2003 & 2007 & 2010
    Posts
    10,944
    Nope you lost me. What macro?

    Perhaps a small example workbook would help clarify your problem
    Cheers
    Andy
    www.andypope.info

  5. #5
    Registered User
    Join Date
    11-11-2008
    Location
    Germany
    Posts
    6
    ok let me try to get more detailed

    It is a Master Report which creates a Report for each Group.

    So Macro will run for first Group (which contains 5 Accounts). Update Data (also the Charts) and paste as WB and Values in new File.

    Afterwards Master Reports switch to 2nd Group. (which contains 10 Accounts) and so on.

    Unfortunately Master Report is over 35 mb large

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    2003 & 2007 & 2010
    Posts
    10,944
    If you have a macro can you not adjust the chart data range to only use valid rows?

    If you are moving data to another workbook can you not just move the valid rows?
    Cheers
    Andy
    www.andypope.info

  7. #7
    Registered User
    Join Date
    11-11-2008
    Location
    Germany
    Posts
    6
    mhh yea could do via Macro. But thats my last way.

    I think im on another good way. If you're interested in result just let me know.

    Thanks for your help so far

  8. #8
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    2003 & 2007 & 2010
    Posts
    10,944
    Would be nice to know how/if you get around around problem
    Cheers
    Andy
    www.andypope.info

  9. #9
    Registered User
    Join Date
    11-11-2008
    Location
    Germany
    Posts
    6
    Got it..

    With using Names and Offset (Count) Formula in name references it works.

    Define Col A as Cht_X_Value and use Offset and Count on that Col.
    Define Col B as Cht_Y_Values and do same on that Col.

    Afterwards in Chart Source refere for Values to named Section Cht_Y_Values.

    Works fine and without Macro

    If you like I can send you an Excel file showing the details.

    Cheers

  10. #10
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    2003 & 2007 & 2010
    Posts
    10,944
    Thanks for posting solution.

    I understand using named ranges for chart source. But if you can make a small enough example file you can attach it to this thread for others to learn from.
    Cheers
    Andy
    www.andypope.info

  11. #11
    Registered User
    Join Date
    11-11-2008
    Location
    Germany
    Posts
    6

    Solution: See Attached

    Hi again,

    attached the WB.

    Select different Group to see how it works.

    Also the Name (Offset Formula) Cht_Y_Value and the refere to Value in Chart is important.

    Hope that helps other also.

    BR
    LouSifer
    Attached Files Attached Files

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.2.0