Consulting

Results 1 to 7 of 7

Thread: Reverse Lookup Last Record Ignoring Location 300

  1. #1
    VBAX Tutor CCkfm2000's Avatar
    Joined
    May 2005
    Posts
    209
    Location

    Question Reverse Lookup Last Record Ignoring Location 300

    Hi Excel Guru's,

    I have a spreadsheet that I need to Reverse Lookup Last Record Ignoring Location 300.

    I've attached a copy of the spreadsheet.

    Lookup the value in A12 and retrieving the result in AS12 from the Inven1 sheet


    Thanks
    Last edited by Aussiebear; 04-26-2023 at 07:23 PM. Reason: Adjusted the font size

  2. #2
    VBAX Contributor
    Joined
    Jul 2004
    Location
    Gurgaon, India
    Posts
    148
    Location
    Hi,

    PHP Code:
    =LOOKUP(2,1/((Inven1!$B$2:$B$4377=A12)*(Inven1!$A$2:$A$4377<>300)),Inven1!$A$2:$A$4377
    HTH
    Last edited by Aussiebear; 04-26-2023 at 07:23 PM. Reason: Added code tags

  3. #3
    VBAX Tutor CCkfm2000's Avatar
    Joined
    May 2005
    Posts
    209
    Location
    Quote Originally Posted by Krishna Kumar
    Hi,

    =LOOKUP(2,1/((Inven1!$B$2:$B$4377=A12)*(Inven1!$A$2:$A$4377<>300)),Inven1!$A$2:$A$4377)

    HTH
    Wow that's good.

    just a small change <>300 to <>"300"

    this now works

    thanks just about to some more test. will update you soon.

    thanks again.....

  4. #4
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Hi Krishna,
    Can you explain the logic of your function?
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  5. #5
    VBAX Expert Shazam's Avatar
    Joined
    Sep 2005
    Posts
    530
    Location
    Quote Originally Posted by mdmackillop
    Hi Krishna,
    Can you explain the logic of your function?

    Hi mdmackillop


    http://www.mrexcel.com/forum/showpos...25&postcount=9
    SHAZAM!

  6. #6
    Administrator
    VP-Knowledge Base VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Thanks Shazam
    Great link.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  7. #7
    VBAX Tutor CCkfm2000's Avatar
    Joined
    May 2005
    Posts
    209
    Location
    thanks all...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •