+ Reply to Thread
Results 1 to 8 of 8

multiple cell lookup

  1. #1
    Registered User
    Join Date
    11-01-2009
    Location
    Pennyslvania, USA
    MS-Off Ver
    Excel 2003
    Posts
    14

    multiple cell lookup

    Under the movement tab how do I get L2 and L3 to show 1234 from the PR tab? After the 100 is received in D4 of the movement tab
    Attached Files Attached Files
    Last edited by bradyman699; 11-25-2016 at 02:36 AM.

  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,712

    Re: Lookup Cell

    Please take a moment to re-read forum rule #1 and then amend your thread title to something that better explains your problem. Thanks!

    Maybe this in L2 copied down:

    =IF(D2>=100,VLOOKUP(A2,PR!$A$1:$J$2,7,0),IF(I2<=J2,IF(LEN(VLOOKUP(A2,PR!$A$1:$J$2,6,0))=0,"",VLOOKUP(A2,PR!$A$1:$J$2,6,0)),""))
    Last edited by AliGW; 11-25-2016 at 02:30 AM.
    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
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,993

    Re: Lookup Cell

    Just change highlighted 6 into 7

    =IF(I2<=J2,IF(LEN(VLOOKUP(A2,PR!$A$1:$J$2,6,0))=0,"",VLOOKUP(A2,PR!$A$1:$J$2,6,0)),"")


    Try

    L2=IF(I2<=J2,IF(LEN(VLOOKUP(A2,PR!$A$1:$J$2,7,0))=0,"",VLOOKUP(A2,PR!$A$1:$J$2,7,0)),"")
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  4. #4
    Forum Contributor
    Join Date
    03-08-2016
    Location
    kuala lumpur malaysia
    MS-Off Ver
    365
    Posts
    100

    Re: Lookup Cell

    I think you can another column after L and use vlookup formula.

    or maybe you can give an example the data you want to achieve.

  5. #5
    Registered User
    Join Date
    11-01-2009
    Location
    Pennyslvania, USA
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: multiple cell lookup

    That didn't work. In the entire L column (movement tab) I want the formula to lookup cell F2 (PR tab) and return that number in column L but when the 100 is received in cell D4 (movement tab) I want the same formula to then return the number in G2 (PR tab), which its not doing in L2 and L3
    Last edited by bradyman699; 11-25-2016 at 02:56 AM.

  6. #6
    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: multiple cell lookup

    Try this in L2, copied down:

    =IF(K2="","",VLOOKUP(A2,PR!$A$1:$J$2,6+COUNTIF($D$2:D2,">0"),0))
    Attached Files Attached Files
    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

  7. #7
    Registered User
    Join Date
    11-01-2009
    Location
    Pennyslvania, USA
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: multiple cell lookup

    Thank you for trying but that doesn't work either, I need column L to be

    L2:L3 should be 1234
    L5:L21 should be 11101045
    L4 and L22:L24 should be empty

  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: multiple cell lookup

    I don't understand the logic of what you want... but this gives you the result you wanted....

    =IF(K2="","",VLOOKUP(A2,PR!$A$1:$J$2,6+1-COUNTIF($D$2:D2,">0"),0))
    Attached Files Attached Files

+ 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] Find cell in array that contains partial text and use column # of cell to lookup value
    By chuckyfang in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-27-2016, 10:19 AM
  2. Replies: 3
    Last Post: 08-16-2016, 07:58 AM
  3. [SOLVED] Automatically lookup and set an empty cell's value if adjacent cell is typed & vice versa
    By RedSummer in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-22-2015, 12:16 PM
  4. How to use vlookup if value of lookup cell is same in lookup range
    By anujteetwal in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-09-2014, 05:15 AM
  5. Lookup a blank cell in a Lookup table and return a figure.
    By jonnops in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-20-2014, 07:33 AM
  6. Replies: 4
    Last Post: 10-04-2012, 05:17 AM
  7. Lookup Question - Possible to match if the cell *contains* the lookup value?
    By AdamParker in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-15-2011, 03:30 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