+ Reply to Thread
Results 1 to 8 of 8

formula to make data plot on graph correctly

  1. #1
    Registered User
    Join Date
    06-04-2012
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    59

    formula to make data plot on graph correctly

    morning all , i have attached a few relevant columns of a sheet i need help with please.

    column B is a monetary daily P&L value
    column F is basically an accumulative values of column B

    The problem i have is i run a graph (sheet COMB) from the data in column F so i need it to not plot the future
    days when not populated hence i have them as #N/A while not populated

    what im trying to do is
    keep column F accumulating the data that is returned in column B but whilst keeping the future cells at #N/A to make it plot correctly on my graph

    the formula that is in column F now is what i have been trying myself and it does not work

    thanks in advance
    will
    Attached Files Attached Files
    Last edited by will2k; 03-22-2020 at 10:59 AM.

  2. #2
    Forum Contributor
    Join Date
    11-20-2007
    Location
    Felixstowe, England
    MS-Off Ver
    Excel 2013, 2019
    Posts
    217

    Re: formula to make data plot on graph correctly

    In what way does it not work?

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,637

    Re: formula to make data plot on graph correctly

    Try such formula in F3 (and copy down):
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note I used NA() formula, not just #N/A and as you have some days without input the above formula calculates cumulative sum every time from the beginning. So in row 10 it will read
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Images Attached Images
    Last edited by Kaper; 03-22-2020 at 10:22 AM.
    Best Regards,

    Kaper

  4. #4
    Registered User
    Join Date
    06-04-2012
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    59

    Re: formula to make data plot on graph correctly

    Hi Kaper , Thanks for your reply , when there is a 0.00 entered in column b i need the same cell in column F to display the accumulative number (not #N/A) see attached image were arrowed i need this to be 90.0


    thanks will
    Attached Images Attached Images

  5. #5
    Registered User
    Join Date
    06-04-2012
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    59

    Re: formula to make data plot on graph correctly

    Hi Glenn , The reply to kaper may explain it more clearly , dates in the future in column F need to stay as #N/A to prevent forward plotting on graph , but when a zero return is populated in column B the calculation in column F still needs to be carried on ( see picture i attached) .
    thanks will

  6. #6
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,637

    Re: formula to make data plot on graph correctly

    Then probably
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    will be enough.
    Or may be
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    if you want to stop showing cumulative values after last input in column B (I'm refering to this part of first post: "but whilst keeping the future cells at #N/A to make it plot correctly on my graph ")
    Last edited by Kaper; 03-22-2020 at 10:56 AM.

  7. #7
    Registered User
    Join Date
    06-04-2012
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    59

    Re: formula to make data plot on graph correctly

    thanks Kaper ,

    =IF(COUNTIF(B3:B$33,">0")>0,SUM(B$3:B3),NA()) works perfectly , many thanks for your assistance


    regards Will

  8. #8
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,637

    Re: formula to make data plot on graph correctly

    Glad to hear so
    And thanks for marking thread solved and for reputation point

+ 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. How to plot both ch1 and ch2 data for temperature on same graph
    By welchs101 in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 01-22-2020, 11:30 AM
  2. Unable to Plot Graph correctly (Possibly just a Graph Type Issue)
    By BernieLee02 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 07-29-2019, 12:45 PM
  3. Excel fails to correctly plot line (and formula) with only 2 data points
    By toliphint in forum Excel Charting & Pivots
    Replies: 9
    Last Post: 06-01-2019, 01:47 AM
  4. [SOLVED] Plot Graph in accordance to data
    By Parth007 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-31-2016, 08:45 AM
  5. Data is not appearing correctly in my graph
    By mjx662 in forum Excel General
    Replies: 2
    Last Post: 11-01-2015, 10:42 PM
  6. Plot a Graph without data Column?
    By cricrazy in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 01-24-2009, 06:49 PM
  7. How do I plot a 3D graph when I have 3 columns of data?
    By michelle in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-14-2006, 04:10 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