+ Reply to Thread
Results 1 to 6 of 6

Plotting Last N dates before zeros

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-25-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    445

    Plotting Last N dates before zeros

    Hello Friends

    Please find the 2010 Version attached file <Plotting Last N dates.xlsx>.

    I want to plot the date in light yellow cells for the given N Number before zeros.

    thanks in advance

    thilag
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,044

    Re: Plotting Last N dates before zeros

    How do you arrive at your starting date?

    This will fill in the Nth number of cells...
    =IF(COUNT($B$3:B3)<=$D$3,B3,"")
    copied down as needed
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    02-25-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    445

    Re: Plotting Last N dates before zeros

    Hello Ford

    Thank for your formula.

    But for the given N numbers datas are plotted from first not from last before zeros. Refer the 2 example in the attached file.

    How do you arrive at your starting date?
    For the given N number (May be 30 or 40) before 00-Jan-00 the set of given N number of date to be taken and plotted as is.

    Hope i clarified you.

    thanks

    thilag

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,044

    Re: Plotting Last N dates before zeros

    ah OK, I think I see it now, try this instead...
    =IF(COUNT($B$3:B3)<=$D$3,INDEX(B:B,MATCH(0,B:B,0)-$D$3+ROW(A1)-1),"")

  5. #5
    Forum Contributor
    Join Date
    02-25-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    445

    Re: Plotting Last N dates before zeros

    Hello Ford

    Perfect Awesome thanks

    thanks again

    thilag

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,044

    Re: Plotting Last N dates before zeros

    Happy to help and thanks for the feedback

+ 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] Plotting last set of given N numbers by omitting bottom zeros.
    By thilag in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-27-2015, 07:14 AM
  2. Not plotting zeros in sparklines
    By SMB in forum Excel General
    Replies: 1
    Last Post: 02-13-2015, 12:42 PM
  3. Prevents line graphs plotting zeros
    By jalvles in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-20-2013, 06:13 AM
  4. Plotting, Exclude Zeros
    By Matt12 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 07-22-2008, 01:18 PM
  5. Blank Cells Plotting as Zeros
    By ChristiaanV in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 12-13-2006, 11:31 PM

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