Posts by markc

    Re: Swap Series In Stacked Area Chart


    Thanks Andy
    I haven't been able to get the workbook small enough to post
    PM me with your e-mail address if you would like to see the workbook


    I have attached a sample chart where I think it would look better to move 2007 (Red) in front of 2006 (Blue).


    This is an interactive chart, where user only sees 1 chart at a time. I agree, if there were multiple reports it may be confusing to jump back and forth.


    Thanks
    -marc

    Hi all -


    I have one series on my chart set as column type with data value labels
    I have another series as line type to create a benchmark line across the chart
    The chart is interactive where user can select 1 of 20 units.
    On some of the units, the labels are overlapping the line type chart and causing a poor display.


    Any ideas on how to circumvent this problem?
    Thanks
    -marc

    Hi all -


    I have an interactive chart displaying stacked area charts for 2006 and 2007
    I currently have 2006 in front of 2007, but as the user chooses 1 of 20 units, it will look better to move 2007 in front of 2006


    Can this be done using vba or formula?


    Thanks
    -marc

    Hi all -


    I am attempting to stack 2 are charts on top of one another
    It seems to me the only way I could do this is to:

    • anchor the charts into respective cells so same size
    • format second chart so all plot area, axes formatted invisible
    • Use the camera tool to take image of the cell with second area chart
    • Align the image over the first area chart


    Works well, except there appear to be some small grey bars in the image that should not be there.
    Do you have any idead why this is happening and how to remove them?
    Any other suggestions to improve the charts would be most welcome as well


    Please PM me is you would like the sample workbook
    Zip is 126KB


    Thanks
    -marc[hr]*[/hr] Auto Merged Post;[dl]*[/dl]Solved.


    I just had to choose the correct Area Chart Subtype to get stacked area charts (one in front of another) The left upper most chart subtype in the area charts gave me what I needed


    Thanks
    -marc

    Re: Print Non Contiguous Ranges


    Thanks Dave -


    Sorry for the delay
    Just back from well deserved vacation :thumbcoo:


    I ended up with work-around
    I setup preformatted workbook
    Copy the desired ranges from the data source to the final report


    A long way from where I started, but works well for me


    Thanks!
    -marc

    Re: Print Non Contiguous Ranges


    Thanks Dave
    Fortunately I wasn't connected to the printer when I first ran the macro
    The 153 pages is an error
    The expected output should be 4 pages at most


    Thanks
    -marc

    Hi all -


    I would like to print a report with noncontiguous columns side by side as defined in this range

    Code
    With wsMarket
            Set rngPrint = Union(.Range("D3:D" & lngRows), .Range("O3:O" & lngRows), _
                .Range("Z3:Z" & lngRows), .Range("AK3:AK" & lngRows), .Range("AV3:AV" & lngRows), _
                .Range("BG3:BG" & lngRows), .Range("BR3:BR" & lngRows), .Range("CC3:CC" & lngRows), _
                .Range("CN3:CN" & lngRows), .Range("CY3:CY" & lngRows), .Range("DJ3:DJ" & lngRows), _
                .Range("DU3:DU" & lngRows), .Range("EF3:EF" & lngRows), .Range("EQ3:EQ" & lngRows), _
                .Range("FB3:FB" & lngRows), .Range("FM3:FM" & lngRows), .Range("FX3:FX" & lngRows))
        End With


    The page setup is defined as landscape 1 page wide as many pages tall as need to print 256 rows. But in my first test this report produced 153 pages. I would like 3-4 max. 2 would be better.


    Full code below
    TIA
    -marc



    ShowAll


    Before Print


    After Print

    Re: Pass Row Number Of Last Used Column Row to Variable


    Hi Norie -


    Edited by marc -
    Weird. How did same message post? See above.
    The sample is to copy data from a single sheet in a workbook to a single sheet in a new workbook
    Once I got the procedure working I will copy it down and simply update the sheet name for the new snippet
    Ex. Change Grumpy to Doc.
    It is not the most efficient way to program
    But since I don't have total control of the workbook, I think it might be the best solution


    Thanks
    -marc
    =======


    Wow! Long time haven't heard from you :smile:


    The code is the start for 7 other sheets in the workbook
    Once I get it working properly it's just a matter of copy/paste the code and update the sheet names for all 8 worksheets to be copied out to a new workbook.


    Thanks
    -marc

    Re: Pass Row Number Of Last Used Column Row to Variable


    Hi Norie -
    Wow! Long time haven't heard from you :smile:


    The code is the start for 7 other sheets in the workbook
    Once I get it working properly it's just a matter of copy/paste the code and update the sheet names for all 8 worksheets to be copied out to a new workbook.


    Thanks
    -marc

    Re: Pass Row Number Of Last Used Column Row to Variable


    Thanks guys -


    Shear brilliance on my part trying to use offset on a variable dim'd as long:exclamat:
    The revised code below accomplishes exactly what I need


    Thanks much!
    -marc

    Hi all -


    This line in my code is causing an invalid qualifer error message:

    Code
    lngNew = wsNew.Range("B65536").End(xlUp).Row.Offset(1, 0)


    I am unsure why. It seems it should work


    Full code below
    Thanks
    -marc


    Re: SUMPRODUCT Formula Returns Error


    Thanks
    Checked again
    There is #N/A in col P
    I guess it did not show in the Go To Special....Error because at some point I pasted the lookup formula as a value


    Thanks for your help!
    -markc

    Re: SUMPRODUCT Formula Returns Error


    Thanks parsnip
    No.
    I scrolled through all data and used Edit..Go To...Special...Formulas...Errors
    "No Errors Were Found"


    There are no blank cells in the range.
    Thanks
    -markc

    Hi all -


    I have sumproduct formula that returns #N/A error and I'm not sure why
    =SUMPRODUCT((YTD!$A$2:$A$2599=B$10)*(YTD!$P$2:$P$2599=$Q19)*(YTD!$E$2:$E$2599))


    If I narrow the range from $939 to $1093 then the formula works.
    But that is only evaluating 1 unit of 10
    As I add worksheets to the workbook and update the unit numbers in B10, the entire range needs to be evaluated for matching criteria.


    Any ideas?
    Sorry, workbook is way too large to upload.
    TIA
    -markc

    Re: Remove Superfluous Spaces


    Thanks all


    Richard, I'll give the code a go later and come back
    My other thought was to use a series of replace statements
    Each file is small and there are no more than 10 sets of strings that recur in exactly the same manner


    Example:
    Bread & Ro lls Co st
    Bread & Ro lls Co st
    Bread & Ro lls Co st
    Bread & Ro lls Co st
    Bread & Ro lls Co st


    I will use a series of replace statements to correct the output
    Thanks for your help.


    -marc

    Re: Convert Sumproduct To DSUM


    Thanks much Lee!
    I see what you are saying that sumproduct may be the way to go


    At least I understand DSUM better now and can incoporate in other worksheets


    Thanks again for your assistnace and hard work!
    -marc