+ Reply to Thread
Results 1 to 2 of 2

Lookup & Loop

  1. #1
    Registered User
    Join Date
    03-25-2012
    Location
    England
    MS-Off Ver
    Excel 2007 & Excel 2011 for Mac
    Posts
    79

    Lookup & Loop

    Attached is a sample of a workbook I'm trying to devise

    Basically on Sheet 1 there are some query's that have been pulled from some DBF files and sorted accordingly

    On Sheet 2 is the lookup I am struggling with.

    What I'm trying to achieve is a VBA code that will reference Cell C1 then return the value 1 cell to the left of of this value in sheet 1 and then repeat until complete. I've added the actually value to be returned highlighted in yellow to clarify.

    Many thanks
    Attached Files Attached Files

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Lookup & Loop

    I don't understand how you can expect this result (31218MAIN11110) as I see multiples rows in sheet1 showing the same barcode 31218? You probably have other criteria you did not mentionned. Also, as you only have 1 barcode in cell C1, the results will allways be the same. No? To me, there is only one answer if there is only one criteria.
    I think we need more detailed information on what you want.
    Regards
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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