+ Reply to Thread
Results 1 to 9 of 9

Bar Chart Pulling Blank Cells

  1. #1
    Registered User
    Join Date
    07-06-2011
    Location
    The PHX
    MS-Off Ver
    Excel 2007
    Posts
    11

    Bar Chart Pulling Blank Cells

    Hello Everyone and thank you in advance for your help -

    I have two tabs in an Excel 2007 file. One tab has information being entered into columns like Advertising Campaign Name, How it's being released (ex. TV, Radio, Internet), the date work on the campaign must start, the drop date of the campaign, and a formula calculating the number of days between the start and drop dates (among many, many other things).

    The data for campaign name, how it's being released, the date work must start, and number of days between start/drop dates onto the second tab to create a stacked bar chart. The issue is that I'd like to make the chart dynamic but if use one of the following formulas

    =IF('Sheet1!B5="","",'Sheet'!B5)
    =IF('Sheet1!B5=""," ",'Sheet'!B5)
    =IF('Sheet1!B5="",NA(),'Sheet'!B5)

    either the blanks or N/A's will appear in the chart.

    Any suggestions on keeping the chart dynamic without it grabbing the blank or N/A's ?

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Bar Chart Pulling Blank Cells

    hi Fister, do u have any way to arrange them so that those with blanks will be at the bottom of your list? then u can use the OFFSET formula & COUNT to make it dynamic. it's hard to point u in a specific direction without a sample file

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    07-06-2011
    Location
    The PHX
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Bar Chart Pulling Blank Cells

    Sample file attached.

    Thank you for your help.
    Attached Files Attached Files

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Bar Chart Pulling Blank Cells

    i see that u already have some OFFSET formulas in your Name Manager. instead of COUNTA where it counts even formulas contained in the cells, use COUNT to count numbers in Column C. Put all these OFFSET formulas in the Name Manager.
    For Campaign Name & Channel:
    =OFFSET($A$1,1,0,COUNT($C$2:$C$82),2)

    For Initiative Drop Date:
    =OFFSET($C$1,1,0,COUNT($C$2:$C$82))

    For Days:
    =OFFSET($D$1,1,0,COUNT($C$2:$C$82))

    Right-click your chart & Select Data. u will have 3 items to edit. 2 items in the Legend Entries & 1 in the Horizontal Axis Labels. in the former, choose Initiative Drop first & click Edit. In the Series Values, delete everything after the "!" & replace it with your OFFSET formula Name for Initiative Drop. Do the same for Days & the Horizontal Axis Labels.

    By the way, dealing with days, i would feel the Gantt Chart suits this better. just my humble opinion.
    http://chandoo.org/wp/2009/06/16/gan...ct-management/

  5. #5
    Registered User
    Join Date
    07-06-2011
    Location
    The PHX
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Bar Chart Pulling Blank Cells

    benishiryo, thank you for your help but there is one issue - the chart does not show all of the campaigns.
    In other words, if I have 10 campaigns, only 8 are on the chart.
    Is that a formula/space/size/something else issue?
    Last edited by Fister; 06-04-2012 at 07:57 PM.

  6. #6
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Bar Chart Pulling Blank Cells

    hmmm is this problem from the sample u uploaded? i see only 8 in your file & if i add 2 more, they do show in the chart. maybe u gotta upload your most recent one with the OFFSET formulas. i cant tell from here.

  7. #7
    Registered User
    Join Date
    07-06-2011
    Location
    The PHX
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Bar Chart Pulling Blank Cells

    I followed your directions - except I changed the Campaign formula to =OFFSET(Chart!$A$2,0,0,COUNT(Chart!$C$2:$C$82),2)
    so that the headings do not appear in the chart.

    See attached Sample B.


    Thank you again for being so generous with your time and help, I very much appreciate it.
    Attached Files Attached Files

  8. #8
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Bar Chart Pulling Blank Cells

    what u did for Campaign, u need to do the same for Initiative Drop Date & Days too.
    same thing. right-click chart & choose Select Data. Edit the one for Initiative Drop.
    =Chart!Initiative_Drop_Date
    and for Days:
    =Chart!Days

  9. #9
    Registered User
    Join Date
    07-06-2011
    Location
    The PHX
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Bar Chart Pulling Blank Cells

    I did do the same thing but apparently it didn't take (or I didn't save it correctly).
    Thank you very much, you've been a great help!

+ 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