+ Reply to Thread
Results 1 to 4 of 4

Trying to return a last value in a column based on the same description

  1. #1
    Registered User
    Join Date
    02-25-2021
    Location
    UK
    MS-Off Ver
    Office 365 Mac
    Posts
    2

    Trying to return a last value in a column based on the same description

    I have a problem in column G (happy with Col H if G would work)

    Trying to return the last known value in the "cumulative units" column H based on the stock typed in column C
    I think I am struggling with the array { } needed in the formula brought over from a working Google sheet (and how to do that in mac).

    Tried MAXIF in the first rows but when I have a sell and units go down it obviously does not return the right value (e.g 13 returned but is ok on row 8 bu then it should be 12, 11 etc on each "SELL")
    Played about with INDEX and SUMPRODUCT to no avail get a REF error

    Working formula in Google sheets is:
    =IF($C12="","",IFERROR(IF(ROW()<>2,INDEX(arrayformula(FILTER($H$4:$H11,$C$4:$C11<>"",ROW($C$4:$C11)=MAX(IF($C$4:$C11=C12,ROW($C$4:$C11),0)))),1),0),0))
    Can't get it to work in excel.

    Any help appreciated.
    Regards
    Mark
    Attached Files Attached Files
    Last edited by Barkinglong; 02-26-2021 at 07:55 AM.

  2. #2
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,824

    Re: Trying to return a last value in a column based on the same description

    Try in Cell G5:

    =XLOOKUP(C5,$C$4:$C4,$H$4:$H4,0,0,-1)

    And copy down.

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,459

    Re: Trying to return a last value in a column based on the same description

    Do not know what column G for, but in column H, in H5:

    Please Login or Register  to view this content.
    Drag down

    Try to input column G manually, I will try it again.
    Attached Files Attached Files
    Quang PT

  4. #4
    Registered User
    Join Date
    02-25-2021
    Location
    UK
    MS-Off Ver
    Office 365 Mac
    Posts
    2

    Re: Trying to return a last value in a column based on the same description

    Re GregB11

    wow yes this works and is a lot more simple!

    Thanks

+ 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] Return description if category of a grouped value only contains same content
    By Tupelo1984 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-30-2021, 04:13 AM
  2. [SOLVED] Look up and return data from a Description
    By pmw19800 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-14-2018, 07:47 AM
  3. [SOLVED] Not return result if data is in a certain cell (Bad Description)
    By LeeBillington in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-03-2017, 05:19 AM
  4. [SOLVED] Return the first value / description of the cell under same column
    By cks1026 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-09-2017, 11:10 AM
  5. Replies: 8
    Last Post: 07-25-2014, 06:06 AM
  6. Replies: 3
    Last Post: 08-13-2013, 12:27 AM
  7. [SOLVED] Looking up description and return data
    By JakeMann in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-25-2012, 10:57 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