+ Reply to Thread
Results 1 to 2 of 2

lookup of a barcode and if present load value from one list and if not from another

  1. #1
    Registered User
    Join Date
    10-14-2020
    Location
    Oxford, England
    MS-Off Ver
    Office 365 for mac EXCEL 16.42
    Posts
    1

    lookup of a barcode and if present load value from one list and if not from another

    Hi,
    I am scanning a 12000 tubes some of which are in a keep list and some are not. The ones in the keep list I would like to assign the next sequential position in a keep boxes whilst the ones that arn't in the keep list I would like to assign the next position in the dispose boxes.

    Can anyone help me with how I can get excel to do this live.
    I can scan in a barcode and get it to populates the next cell down.
    I can have a vlookup in the cell next to it which will return matching data from the keep list if it is in the Keep list or an "#N/A" if it isnt in the keep list
    I can use IFERROR()to reassign the #N/A error a value (Dispose)
    I have generated a list of all coordinates in keep boxes and in dispose boxes.

    What I don't know how to do is to get excel to assign a barcode the next sequential position in the keep boxes if it finds a vlookup match or assign the next sequential position in the dispose box list if the vlookup comes back as #N/A (Dispose after IFERROR().

    Please see attached example of where I am so far
    Many thanks for any suggestions

    Matt
    Attached Files Attached Files

  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 2403
    Posts
    44,036

    Re: lookup of a barcode and if present load value from one list and if not from another

    maybe:

    C2:
    =IF($B2="Keep",INDEX('keep box coordinates'!$B$1:$B$14,COUNTIF(barcodes!$B$2:B2,"Keep")),"")

    D2:
    =IF($B2="Dispose",INDEX('dispose box coordinates'!$B$1:$B$14,COUNTIF(barcodes!$B$2:B2,"Dispose")),"")
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ 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] Create array of items which are in List A but not present in List B
    By ImranBhatti in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-06-2018, 01:28 AM
  2. Replies: 0
    Last Post: 03-17-2017, 10:52 AM
  3. [SOLVED] Macro to list variant items of a barcode
    By jayherring86 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-18-2016, 06:12 PM
  4. Barcode Generate from Excel List
    By turist in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-03-2015, 02:30 AM
  5. Macro to lookup another workbook if present in folder
    By kingofbeans in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-11-2013, 08:03 PM
  6. Replies: 1
    Last Post: 12-18-2011, 12:32 PM
  7. Replies: 1
    Last Post: 12-21-2009, 08:27 AM

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