+ Reply to Thread
Results 1 to 3 of 3

Google Sheets. Lookup the last entry

Hybrid View

  1. #1
    Registered User
    Join Date
    11-16-2018
    Location
    United Kingdom
    MS-Off Ver
    2019
    Posts
    35

    Google Sheets. Lookup the last entry

    Hi all,

    So in the data in tab "COGs", I need to look up the Buy price of the last entry into column D using the SKU.

    However sometimes the SKU doesn't come back with an entry so we lookup the ASIN.

    sidenote:Not sure if it is best to combine this into a single formula or to pull the asin data into another column for clearer checking.

    Here is a link to the sheet.

    https://docs.google.com/spreadsheets...it?usp=sharing

    Hope this makes sense, thanks in advance.

  2. #2
    Forum Contributor
    Join Date
    12-17-2013
    Location
    ON, Canada
    MS-Off Ver
    MS 365
    Posts
    175

    Re: Google Sheets. Lookup the last entry

    Since you didn't show what your expected results would be, I took a stab in the dark. Put the following formula in cell D2 of the COGs tab:
    Formula: copy to clipboard
    =ArrayFormula(IF(A2:A="",,XLOOKUP(B2:B,'Buy Sheet'!$A$2:A,'Buy Sheet'!$C$2:C,XLOOKUP(C2,'Buy Sheet'!$B$2:B,'Buy Sheet'!$C$2:C,,-1,-1),-1,-1)))

    Let us know if that's what you're after.

  3. #3
    Registered User
    Join Date
    11-16-2018
    Location
    United Kingdom
    MS-Off Ver
    2019
    Posts
    35

    Re: Google Sheets. Lookup the last entry

    cheers thanks for this, I've added the example output now.

    But your formula works. Cheers

+ 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] Lookup In Multiple Sheets & Add Unique Identifier | Google Sheets
    By Dave Shopping in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 11
    Last Post: 07-04-2022, 09:36 AM
  2. [SOLVED] Google Sheets - VLOOKUP to Show No. Of Entries and Latest Entry
    By antonyx in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 2
    Last Post: 02-15-2022, 06:43 PM
  3. Google Sheets: How to combine v lookup with index match
    By akshay6s in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 21
    Last Post: 01-15-2022, 09:30 AM
  4. [SOLVED] Google Sheets: allow data entry only against current date (not past or future) dates
    By arnabnestle in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 9
    Last Post: 09-21-2021, 04:36 AM
  5. [SOLVED] Lookup function error (google sheets)
    By WAAZUPEE in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 3
    Last Post: 12-14-2017, 11:47 AM
  6. Google Sheets - Jump to last entry automatically
    By swvogt in forum Excel General
    Replies: 4
    Last Post: 08-30-2017, 02:53 PM
  7. Excel lookup formula to google sheets
    By bluechipjr in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-27-2017, 06:04 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