+ Reply to Thread
Results 1 to 9 of 9

Stock Portfolio Formula

Hybrid View

  1. #1
    Registered User
    Join Date
    01-14-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    4

    Stock Portfolio Formula

    I am trying to Track my stocks in Excel. Below is the formula that I am using to locate the info. This forumla works in the Google Spread Sheets, but not when I copy and paste it to Excel 2010.

    =iferror(if(row()<>2,INDEX(arrayformula(filter($I14:$I$2,$C14:$C$2<>ʺʺ,row($C14:$C$2)=max(if($C14:$C$2=C15,row($C14:$C$2),0)))) ;1),0),0)

    I have attached the spread sheet that I am working on. Basically, I want a cell to reference the other cells above it in the spread sheet, and look for a criteria, like a Stock symbol. If it finds that Criteria or Stock Symbol, I need it to grab some information from that line. Oh by the way, there could be multiple lines with that stock symbol, so I need it to reference the last line. Any help would be great appreciated.

    Thanks,
    Attached Files Attached Files

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Stock Portfolio Formula

    HI Wilsonskm,

    welcome to the forum.
    Highlight in the spreadsheet, where you want this formula to be applied and what should be the expected result? thanks.

    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Stock Portfolio Formula

    Hi

    That's probably that Filter bit, you got in the middle of your formula!
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

  4. #4
    Registered User
    Join Date
    01-14-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Stock Portfolio Formula

    DiliPandy,

    Here are the new sheets with the formulas and numbers that should be in the cells. The formulas work in Google docs, but not in excel.

    Thanks,

    Kevin
    Attached Files Attached Files

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Stock Portfolio Formula

    Hi Kevin,

    I have seen your formula in H23 but I don't think it should be applied there... correct ? I requested
    Highlight in the spreadsheet, where you want this formula to be applied and what should be the expected result? thanks.
    Please give the expected result and logic to achieve the same and the location (cell) where you want this formula to be applied ... thanks.


    Regards,
    DILIPandey
    <click on below * if this helps>

  6. #6
    Registered User
    Join Date
    01-14-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Stock Portfolio Formula

    HI DiliPandey,

    I'm sorry for all the confusion, I'm really not trying to be hard, lol. I have fixed the spreadsheet and highlighted the columns. I added some arrows showing you the flow.

    Thanks,

    Kevin
    Attached Files Attached Files

  7. #7
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Stock Portfolio Formula

    Hi Kevin,

    Is there any relevance for column B, like Div row should look above for Div and Buy row should look above for Buy ?
    By following your flow, H12 and H13 should be 165.563, please check.

    Previous Cost cell should reference J5 and J14, sum those totals and put them in K15.
    Basis your above statement, K15 should show $2035 i.e, sum of J5 ($2000) and J14 ($35.03) but K15 is showing as $2000, please check. thanks.

    Regards,
    DILIPandey
    <click on below * if this helps>

  8. #8
    Registered User
    Join Date
    01-14-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Stock Portfolio Formula

    DiliPandy,

    There is relevance in Row B. Yes exactly, it along with Column C help the equation find the information above. As for:
    By following your flow, H12 and H13 should be 165.563, please check.
    H10 shows the units that were bought in cell I9. The units in H10 and H11 don't change, because the relationship of the dividend. H11 shares are added to the D11 shares and summed up in I11. The same applies to J14 and K15. The transacted value isn't added to the cost because it is a dividend. The dividend only adds money to the cumulative cost and Gains/Losses.

    Thanks,

    Kevin

  9. #9
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Stock Portfolio Formula

    HI Kevin, I am not getting it.. sorry.
    But since your initial formula is working and you are facing challenge to convert them to excel, suggest you to ask this in google docs forum :

    http://productforums.google.com/forum/#!forum/docs

    Regards,
    DILIPandey
    <click on below * if this helps>

+ 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