+ Reply to Thread
Results 1 to 2 of 2

Xlookup Help to produce a number if not found on prior tab

  1. #1
    Registered User
    Join Date
    10-07-2023
    Location
    NYC, NY
    MS-Off Ver
    2013
    Posts
    1

    Xlookup Help to produce a number if not found on prior tab

    Hello Community,

    I am looking for some help and I'm sure someone here knows. I am new to the Xlookup formula and I am trying to return a formula if result is not found.

    So, currently it sits as: =xlookup(d4,'2024'!D:D,'2024'!B:B, "not found",0)

    That works and returns "Not Found" when it cannot find the value.

    What I would like it to do is return the max number in a column +1.
    So, I tried =XLOOKUP(D2,'2024'!D:D,'2024'!B:B,MAX(B:B)+1,0) which returns an error.

    =XLOOKUP(D2,'2024'!D:D,'2024'!B:B,25000+1,0) which returns 25001 the whole way.

    =XLOOKUP(D2,'2024'!D:D,'2024'!B:B,B1+1,0) which works until it finds a match on other tab) and then starts from that number.

    and it does not work.

    I did attach a sample. Any help is appreciated. Hope it's something simple I am missing.

    TIA
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,947

    Re: Xlookup Help to produce a number if not found on prior tab

    Try this in B2:

    =XLOOKUP(D2,'2024'!D:D,'2024'!B:B,MAX($B$1:B1)+1,0)

    With this in B1:

    =MAX('2024'!B:B)
    Bernie Deitrick
    Excel MVP 2000-2010

+ 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. Xlookup combined with lookup to find next number not 0
    By marianacollier in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-22-2023, 07:26 AM
  2. [SOLVED] Auto Format XLOOKUP or IF in Case of 'Not Found' or 'FALSE'?
    By jk2391 in forum Excel General
    Replies: 6
    Last Post: 04-28-2022, 01:08 PM
  3. Replies: 1
    Last Post: 02-26-2015, 06:12 PM
  4. [SOLVED] Find Max number then minus min number prior to max
    By traderjoe in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-28-2013, 10:35 PM
  5. Replies: 3
    Last Post: 05-15-2013, 12:16 AM
  6. Assign a produce a number
    By pdizzy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-05-2009, 01:23 PM
  7. [SOLVED] How do I produce a number in parentheses?
    By Carter Devereaux in forum Excel General
    Replies: 5
    Last Post: 06-08-2006, 01:20 AM

Tags for this Thread

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