+ Reply to Thread
Results 1 to 19 of 19

Days Total Gain (%) - no pivot table

  1. #1
    Forum Contributor
    Join Date
    10-11-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    358

    Days Total Gain (%) - no pivot table

    In column "D" I have Dates ( DD/MM/ YYYY ) all in chronological order. Oldest > Newest (top > down).

    Column AO has "Cumulative Gain (%)".

    0.27%
    0.42%
    0.60%
    0.80%
    ...
    ...

    Each Cumulative Gain corresponds to a date in Column "D".

    I want to know - without using a pivot table - what the end of day cumulative gain was from the previous day (not simply sum total gain%)

    You can see a spread-sheet example attached.
    Attached Files Attached Files
    Last edited by domgilberto; 12-22-2014 at 08:31 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Days Total Gain (%) - no pivot table

    Is this what you had in mind?
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Contributor
    Join Date
    10-11-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    358

    Re: Days Total Gain (%) - no pivot table

    Hey thanks for quick response.

    Looking over your spread-sheet I have made an error in my explanation.

    Because column AO is a cumulative gain, it is telling us what the gain is in chronological order. Therefore using your spread-sheet if you see row 11, the gain for 04/11/2014 was in-fact +0.60%

    For 05/11/2014 it's = 1.29% (last row on 05/11/2014) - 0.60% (row 11 for 04/11/2014) = 0.69% for the 05/11/2014

    Sorry I was way off in my explanation

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Days Total Gain (%) - no pivot table

    I thought that that might have been the case. leave it with me. Another thing. Are you happy for the Table to be peppered with dates where nothing happened 9ie not present in your source data)? Would you like to have a list only of days where something happened?

  5. #5
    Forum Contributor
    Join Date
    10-11-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    358

    Re: Days Total Gain (%) - no pivot table

    exactly that - sounds great!

    Also, MAX and MIN % days gains would be interesting to know. Wondering how you wuold write this formula

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Days Total Gain (%) - no pivot table

    OK. Is this more like what you want??
    Attached Files Attached Files

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Days Total Gain (%) - no pivot table

    I missed the MAX-Min bit. Leave that one with me for a moment or so.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Days Total Gain (%) - no pivot table

    OK. how's this?
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    10-11-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    358

    Re: Days Total Gain (%) - no pivot table

    ooooh nice! I see what you've done there. Cumulative daily gain! Nice work man! Really appreciate this.

    Is it possible to see what the daily gain was (non-cumulative). So using your most recent spreadsheet uploaded, the days cumulative gain - the previous days cumulative gain.

    An example of this referencing your spreadsheet would be:


    > 07/11/2014 daily gain: +0.13%
    > 12/11/2014 daily gain: +0.09%
    > 14/11/2014 daily gain: +0.14% (days cumulative +1.65 - yesterdays cumulative +1.51)

    Thats pretty much it

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Days Total Gain (%) - no pivot table

    Looks good... Hopefully this will finish the job. If not, please shout...
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    10-11-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    358

    Re: Days Total Gain (%) - no pivot table

    Update: looking into this now and will report back shortly!
    Last edited by domgilberto; 12-22-2014 at 12:48 PM.

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Days Total Gain (%) - no pivot table

    ??????????

  13. #13
    Forum Contributor
    Join Date
    10-11-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    358

    Re: Days Total Gain (%) - no pivot table

    Sorry didn't mean to say scrap this to what you have done lol! I meant scrap what I had written lol.

    It's perfect. I am wondering if it is possible to modify your formula so that is does the SUMTOTAL of the days Gains ($) instead?

    So:

    =IF(A2="","",IFERROR(LOOKUP(2,1/('Track Record'!$D$8:$D$5000=A2),'Track Record'!$AQ$8:$AQ$5000),""))

    Bit in BOLD I want a sum total of the corresponding day (as everything in AQ is $ profit and loss that correspond to date closes)?

  14. #14
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Days Total Gain (%) - no pivot table

    Ummm. there isn't anything in AQ on the sheet that's on the Forum... Can you piut in some dummy data and your expected answer.

  15. #15
    Forum Contributor
    Join Date
    10-11-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    358

    Re: Days Total Gain (%) - no pivot table

    Sure - thanks so much for being patient, you'll find it attached
    Attached Files Attached Files

  16. #16
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Days Total Gain (%) - no pivot table

    What answer are you expecting for, say, 7th November?

  17. #17
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Days Total Gain (%) - no pivot table

    Forget it. i'm being a bit thick. Answer: yes you can. Here's the proof.
    Attached Files Attached Files

  18. #18
    Forum Contributor
    Join Date
    10-11-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    358

    Re: Days Total Gain (%) - no pivot table

    I have a quick question regarding your most recent spread-sheet:

    Is it possible to see what the LOWEST or MIN balance was for the corresponding day too? So in Column AY (lets say) I'd want to see what the lowest the balance was across all entries on the 27/06/2013 and just populate that one balance?

    Thanks :D

  19. #19
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Days Total Gain (%) - no pivot table

    Like this, maybe???
    Attached Files Attached Files

+ 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. Pivot Table Total doesn't match data total
    By CNL.Excel in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 10-31-2013, 07:40 PM
  2. Formula for gain and loss within a column with a single cell running total
    By unusually_usual in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-11-2011, 10:22 AM
  3. Pivot Table - Sub Total & Grand Total Filter
    By ramki in forum Excel General
    Replies: 1
    Last Post: 08-07-2009, 11:40 PM
  4. [SOLVED] % of Running Total to Grand Total in Pivot Table
    By David in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-17-2005, 04:05 PM
  5. Spreadsheet to do annual investment gain$, % gain, for list
    By notaspreadsheetgenius in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-09-2005, 04:08 AM

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