+ Reply to Thread
Results 1 to 23 of 23

Finding the next search value using vlookup or other formulas

  1. #1
    Registered User
    Join Date
    06-15-2022
    Location
    Bangladesh
    MS-Off Ver
    MS Office 2021
    Posts
    34

    Finding the next search value using vlookup or other formulas

    Dear,
    I have an excel file where there have some data which will find from sheet 2 and the searching value is in sheet1 , but i have similar value in column i need when first value search it will show the first value when it search the next value it will show the next data,how to do it?

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,774

    Re: Finding the next search value using vlookup or other formulas

    Are you still using Excel 2019?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    06-15-2022
    Location
    Bangladesh
    MS-Off Ver
    MS Office 2021
    Posts
    34

    Re: Finding the next search value using vlookup or other formulas

    yes , i am using office 2019 and office 365 platform

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,774

    Re: Finding the next search value using vlookup or other formulas

    Which? The answer will determine the solution offered.

  5. #5
    Registered User
    Join Date
    06-15-2022
    Location
    Bangladesh
    MS-Off Ver
    MS Office 2021
    Posts
    34

    Re: Finding the next search value using vlookup or other formulas

    Madam i need the solution in office 365 platform.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,774

    Re: Finding the next search value using vlookup or other formulas

    Then please update your forum profile to Excel 365. Thanks.

  7. #7
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Finding the next search value using vlookup or other formulas

    Please try in B2 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Finding the next search value using vlookup or other formulas

    or, all in one cell (no copy paste... delete expected results first):

    =LET(A,A2:A6,B,Sheet2!A2:A6,MAP(A,MAP(A,LAMBDA(z,COUNTIF(A2:z,z))),LAMBDA(x,y,INDEX(Sheet2!B:B,AGGREGATE(15,6,ROW(B)/(B=x),y)))))

    Is there a simpler way? It feels like there should be, but I can't see it and have to go now.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  9. #9
    Registered User
    Join Date
    06-15-2022
    Location
    Bangladesh
    MS-Off Ver
    MS Office 2021
    Posts
    34

    Re: Finding the next search value using vlookup or other formulas

    This is my actual file, i have multiple invoice for payment, but i need to match all this
    invoice if the payment is done, if done it will match with my actual payment and differ
    this 2 , then i will find the due balance.
    Thanks in advance
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    06-15-2022
    Location
    Bangladesh
    MS-Off Ver
    MS Office 2021
    Posts
    34

    Re: Finding the next search value using vlookup or other formulas

    Glenn ,could you help for this file?

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,774

    Re: Finding the next search value using vlookup or other formulas

    Administrative Note:

    It has been only one hour since you last posted. Please do not bump threads until 24 hours have passed, and then only once each day. We are all volunteers here who have lives beyond this forum, and it is the weekend, to boot, which is family time for many. While you may be awake and working, this is a world wide forum and others may be playing, sleeping or working and not have the time to look into your issues this minute. Patience is important here. If you have an urgent issue, you may wish to look at paying for help in the Commercial Services sub-forum or hiring a professional consultant in your area. Again, please do not bump threads more often than once in every 24 hours: if you get the help you need today, then great, but you really should not count on it. Thanks for your understanding and patience.

  12. #12
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,921

    Re: Finding the next search value using vlookup or other formulas

    Try this in F2 and copied down.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  13. #13
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Finding the next search value using vlookup or other formulas

    About your original question in Post 1:

    This is an alternatve all in one go (no copy needed):

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You suddenly start with a new question in post #9, without first responding to all your responses to your previous question in Post #1.
    It feels like the input is being ignored and that is not nice.
    Does our answers your original question from Post #1? If so, it would be nice to receive a thank you for this.
    You can also consider adding reputation to all helpers you think they deserve.
    In that case please click * Add Reputation left below their answers.

    Then start with a new question.

  14. #14
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Finding the next search value using vlookup or other formulas

    Everything in one go is even easier without OFFSET:

    Please try
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,774

    Re: Finding the next search value using vlookup or other formulas

    I didn't think that LAMBDA or MAP were available in Excel 2019 - have I got that wrong?

    EDIT: Forget that - the OP said he's using 365, but still hasn't updated his profile - there's a surprise.
    Last edited by AliGW; 09-10-2023 at 10:04 AM.

  16. #16
    Registered User
    Join Date
    06-15-2022
    Location
    Bangladesh
    MS-Off Ver
    MS Office 2021
    Posts
    34

    Re: Finding the next search value using vlookup or other formulas

    Hi windknife,
    thanks for your contribution,
    in my file you see that i have multiple similar data in my invoice list in Order sheet, it will search the data from Invoice sheet, but i have to find the similar data from the invoice sheet , but its not showing the similar data in right position, how to fix it?

  17. #17
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Finding the next search value using vlookup or other formulas

    About your question in Post #9:

    Please empty the whole column from F2 and try in F2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This formula returns exact the same results as the formula of Windknife in F12.

    The results match your requirements of Post #1.
    Attached Files Attached Files

  18. #18
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,921

    Re: Finding the next search value using vlookup or other formulas

    Could you upload a sample file with wrong formula?

  19. #19
    Registered User
    Join Date
    06-15-2022
    Location
    Bangladesh
    MS-Off Ver
    MS Office 2021
    Posts
    34

    Re: Finding the next search value using vlookup or other formulas

    Thanks for the reply,
    Actually I need to match the same value against my invoice number, but i the value
    sometimes similar and sometimes very near to the exact value, i have no other clue to find
    the actual value against the invoice number, in my file i have marked the actual output
    of my requirements.
    Attached Files Attached Files

  20. #20
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Finding the next search value using vlookup or other formulas

    In your latest file the yellow cells are all EXACT matches with the invoiced amount. Is that REALLY true? I ask the question because you said: "and sometimes very near to the exact value".

    If they can be different, can they be different ABOVE and BELOW the exact value?

    Please upload a SMALL sample file (20 rows MAXIMUM) that matches EXACTLY your REAL data.

  21. #21
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,921

    Re: Finding the next search value using vlookup or other formulas

    How about this in F2?

    Please Login or Register  to view this content.
    Attached Files Attached Files

  22. #22
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Finding the next search value using vlookup or other formulas

    In case of an exact amount please try in F2 for the whole column:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  23. #23
    Registered User
    Join Date
    06-15-2022
    Location
    Bangladesh
    MS-Off Ver
    MS Office 2021
    Posts
    34

    Re: Finding the next search value using vlookup or other formulas

    Thank you very much Hans!
    Its working very nice

+ 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] Vlookup to search for a value in a table but ignore part of the search criteria
    By m1cks in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-18-2021, 07:59 AM
  2. [SOLVED] When vlookup ragnes is mutiple: How do vlookup value finding occurrence against coresspond
    By silambarasan.J in forum Excel Formulas & Functions
    Replies: 34
    Last Post: 07-07-2015, 09:32 AM
  3. how to make vlookup search frequently search from the whole table
    By Pmaldini3 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-26-2015, 03:12 AM
  4. barcode search in vlookup with pop up message upon successful search
    By tangelag in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-13-2014, 12:25 PM
  5. [SOLVED] Search in a row for a column number after a Vlookup search.
    By Fiebuls in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-11-2012, 04:25 AM
  6. Replies: 10
    Last Post: 12-17-2009, 02:00 AM
  7. Search word within Cell (Vlookup+Search)
    By Amarjeet Singh in forum Excel General
    Replies: 6
    Last Post: 01-30-2009, 10:26 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