+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Forum Contributor
    Join Date
    02-03-2009
    Location
    bangalore, india
    MS-Off Ver
    Excel 2003
    Posts
    101

    coloring in Charts

    Hi in attached excel
    i am trying to define a graph

    i want to be changed but nto able to do

    how can i come up with a cchart which shows colors different for diff groups

    like for CRM one color
    Sadad one color etc

    second requirement is

    I want data to be displayed month wise
    on horizontal axis i need one entry for jan but vertical it should show 2 values like for jan there is crm and sadad please help
    thanks
    max
    Attached Files Attached Files
    Last edited by maximpinto; 03-12-2010 at 05:50 AM.

  2. #2
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,039

    Re: coloring in Charts

    Hi maximpinto,

    re-arrange your data like in the attached file and then create a clustered column chart.
    Attached Files Attached Files
    teylyn
    Microsoft MVP - Excel
    At Excelforum, you can say "Thank you!" by clicking the icon below the post.

    Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.

  3. #3
    Forum Contributor
    Join Date
    02-03-2009
    Location
    bangalore, india
    MS-Off Ver
    Excel 2003
    Posts
    101

    Re: coloring in Charts

    Hi Teylyn,
    Did u manually rearrange the data below or used any automatic way to do so please let me know

    What i was thinking is when i have huge data i can get the valuese automatically in another sheet and then creat graph as you suggested
    please help
    thanks
    max
    Last edited by teylyn; 03-12-2010 at 03:02 AM.

  4. #4
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,039

    Re: coloring in Charts

    max, please don't quote whole posts, it's just clutter.

    In the previously attached sheet, you can use this formula in B19 to populate the table

    =INDEX($C$3:$C$14,MATCH($A19&B$18,INDEX($A$3:$A$14&$B$3:$B$14,0),0))

    copy down and across.
    teylyn
    Microsoft MVP - Excel
    At Excelforum, you can say "Thank you!" by clicking the icon below the post.

    Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.

  5. #5
    Forum Contributor
    Join Date
    02-03-2009
    Location
    bangalore, india
    MS-Off Ver
    Excel 2003
    Posts
    101

    Re: coloring in Charts

    Hi Teylyn,
    Last one question if you dont mind

    The same formula if i need to paste on another sheet in th same book say (sheet4)
    at B19 then how does this formula modify to
    i knwo we use the sheet name not able to get it

    My intention is i will have raw data on one sheet and this modified data on another sheet with the graph what you suggested
    thanks
    maxim

  6. #6
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,039

    Re: coloring in Charts

    On Sheet 4

    Column A has dates
    Row 1 has categories CRM, SDAD, etc
    B2 =INDEX('Channel Monthwise'!$C$3:$C$14,MATCH($A2&B$1,INDEX('Channel Monthwise'!$A$3:$A$14&'Channel Monthwise'!$B$3:$B$14,0),0))

    see attached
    Attached Files Attached Files
    teylyn
    Microsoft MVP - Excel
    At Excelforum, you can say "Thank you!" by clicking the icon below the post.

    Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.

  7. #7
    Forum Contributor
    Join Date
    02-03-2009
    Location
    bangalore, india
    MS-Off Ver
    Excel 2003
    Posts
    101

    Re: coloring in Charts

    Thanks a lot
    Let me know how to close this post, this is a new design i guess

    Also one last help, if data not exist it shows #N/A , can i see that instead of #N/A a zero appears so that it looks clean.

    Thanks
    maxim

  8. #8
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,039

    Re: coloring in Charts

    Max, for charting it is actually better to have N/A, otherwise, if you put data labels into the chart, it will show zero when there is no column. With N/A the chart will be cleaner. Also, the N/A is a "natural" result of the formula if there is no value found for the criteria. Trying to error-trap it and exchange the N/A for a 0 would be a waaaay much longer formula. Like this:

    Code:
    =if(isna(INDEX('Channel Monthwise'!$C$3:$C$14,MATCH($A2&B$1,INDEX('Channel Monthwise'!$A$3:$A$14&'Channel Monthwise'!$B$3:$B$14,0),0))),0,INDEX('Channel Monthwise'!$C$3:$C$14,MATCH($A2&B$1,INDEX('Channel Monthwise'!$A$3:$A$14&'Channel Monthwise'!$B$3:$B$14,0),0)))
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    teylyn
    Microsoft MVP - Excel
    At Excelforum, you can say "Thank you!" by clicking the icon below the post.

    Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.

  9. #9
    Forum Contributor
    Join Date
    02-03-2009
    Location
    bangalore, india
    MS-Off Ver
    Excel 2003
    Posts
    101

    Re: coloring in Charts

    Thanks for your quick responses, was a friday and was finding it tuff to google for answers so posted here
    was nice to get quick reply and solve my issue
    thanks a lot
    max

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