+ Reply to Thread
Results 1 to 1 of 1

Google Sheets (FILTER + ARRAY) Function translated to my EXCEL Sheet

  1. #1
    Registered User
    Join Date
    03-31-2020
    Location
    USA
    MS-Off Ver
    O365
    Posts
    2

    Google Sheets (FILTER + ARRAY) Function translated to my EXCEL Sheet

    I have the following Google Sheet's formula (Column I) - =if(B4<>"Deposit", iferror(if(row()<>2,INDEX(arrayformula(filter($J$2:$J3,$C$2:$C3<>"",row($C$2:$C3)=max(if($C$2:$C3=C4,row($C$2:$C3),0)))) ,1),0),0), "")
    - I want to take it and put it in to Excel but Excel doesn't like the FILTER() funtion
    - Can you help me translate this? I will explain more below.

    2020-03-31 12_25_02-Robinhood Portfolio - Google Sheets.png


    Basically what Column I does is track how many shares of a Stock I buy/sell. So in this example, if you look at CGC on 2/12/2019 - I buy 125 shares. This is the first time I bought CGC so the Previous Units (Column I) should be 0 and the Cumulative Units (Column J) should be 125. When I Sell is on 4/18/2019 it Column I should be 125 and Column J should be 0.

    Another scenario is buying more of a stock I already own. Look at the Boeing example in the Excel spreadsheet highlighted in Yellow. If I buy BA again before I sell it, Column I should update from Column J of the previous buy date and Column J for the new buy should update with the new shares bought (column D) added to the previous shares Column I.

    Please let me know if this makes sense. I've attached the excel spreadsheet as well.
    Attached Files Attached Files
    Last edited by dmcmaste; 03-31-2020 at 03:41 PM.

+ 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] How to get the same functionality of an Google Filter Function in Excel
    By gobz89 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-17-2019, 07:32 AM
  2. [SOLVED] Comparable FILTER function in google sheets, but need it to work in Excel instead.
    By kevinldrbck in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-11-2019, 09:34 AM
  3. Converting Unique,Filter,Countif formula in Google Sheets to Excel
    By imnotarobot in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-02-2019, 09:51 AM
  4. Array Formula - Google Sheets -> Excel converter
    By dathgr in forum Excel General
    Replies: 4
    Last Post: 12-19-2018, 06:30 AM
  5. Excel equivalent to Google Sheets' FILTER(range, condition)?
    By Trille in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-14-2016, 06:09 PM
  6. Replies: 3
    Last Post: 02-03-2010, 01:32 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