+ Reply to Thread
Results 1 to 5 of 5

Lookup or Loop Through?

Hybrid View

cdc Lookup or Loop Through? 01-09-2021, 04:55 AM
Glenn Kennedy Re: Lookup or Loop Through? 01-09-2021, 05:06 AM
Glenn Kennedy Re: Lookup or Loop Through? 01-09-2021, 05:08 AM
cdc Re: Lookup or Loop Through? 01-09-2021, 02:19 PM
JeteMc Re: Lookup or Loop Through? 01-13-2021, 01:12 PM
  1. #1
    Registered User
    Join Date
    01-10-2013
    Location
    Canada
    MS-Off Ver
    Office 365
    Posts
    2

    Lookup or Loop Through?

    Hello
    I am hoping someone can offer advice on the best way to approach a lookup issue. Is there a lookup that would work?

    Tab 1 I have inputs
    Client, Order, Due Date, WeekID


    Tab 2 I have a schedule
    Client Week 1 Week 2 Week 3 Week 4 Week 5 Week 6


    What I would like is to populate tab 2 with the Order Code from tab 1 in the appropriate Week ID column

    Tab 1 Input
    Client, Order, Due Date, WeekID
    ABC Co YUM 2021-01-02 1
    XYZ Co NUM 2021-02-05 6


    Tab 2 Schedule
    Client Week 1 Week 2 Week 3 Week 4 Week 5 Week 6
    ABC Co YUM
    XYZ Co NUM


    Any advice welcome!

    Thank you in advance for your help!

    CDC

  2. #2
    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: Lookup or Loop Through?

    Hi there.

    A picture is worth 1,000 words. An Excel sheet is worth 1,000 pictures.

    Please read the yellow banner about sample worksheets, at the top of the screen. Act on its guidelines and post a SMALL sample sheet.
    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

  3. #3
    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: Lookup or Loop Through?

    ALso... please update your profile, unless you are still using Excel 2003. If you are still using it, say so when adding your file, so I know you actually read this!!
    Attached Images Attached Images

  4. #4
    Registered User
    Join Date
    01-10-2013
    Location
    Canada
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Lookup or Loop Through?

    Thanks for the tips!
    Worksheet attached.
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,856

    Re: Lookup or Loop Through?

    Hello cdc
    Try pasting the following into cell C4 then dragging the fill handle over to cell BL4 and then, while C4:BL4 are still selected, down to cell BL7:
    Formula: copy to clipboard
    =IFERROR(LEFT(INDEX(Input!$C$2:$C$4,AGGREGATE(15,6,(ROW($C$2:$C$4)-ROW($C$1))/(Input!$E$2:$E$4=C$2)/(Input!$A$2:$A$4=$A4),1)),3),"")

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. V Lookup Loop taking ages to run
    By ruchikasharma9727 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 06-24-2020, 12:04 PM
  2. Loop through and lookup a specific value
    By armando12345 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-24-2020, 02:09 PM
  3. [SOLVED] Lookup & Loop
    By zhb12810 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-17-2012, 11:17 PM
  4. [SOLVED] Foreach loop lookup between two worksheets
    By asparak in forum Excel General
    Replies: 7
    Last Post: 07-14-2012, 05:03 AM
  5. Excel 2007 : Lookup table Loop
    By grassasp in forum Excel General
    Replies: 2
    Last Post: 04-05-2011, 06:12 PM
  6. Lookup Loop
    By barnis in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-08-2010, 04:40 AM
  7. Loop with lookup on first match
    By lookinforhelp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-10-2010, 08:00 PM

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