+ Reply to Thread
Results 1 to 7 of 7

Looking for a way to look up any value from a range of cells in a different range of cells

  1. #1
    Registered User
    Join Date
    10-23-2019
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    3

    Looking for a way to look up any value from a range of cells in a different range of cells

    I have a spreadsheet that contains hundreds of lines, where each line essentially has a bill of material for all components that make up that item. The first column has the master part number, and then the next 20+ columns have the item numbers of each component. I want to flag all the lines that contain certain item numbers, but they could appear in any of columns B-W. I played around for a while and essentially found three workaround solutions, but I feel there has to be a more simple way to make it work. A simplified version of the sheet is here:
    Capture.PNG
    Columns A-D have the various item numbers. E has a concatenate of the first four columns (necessary for solution 3). The three cells over to the right are the values I want to flag if present in any of the first columns. You can see my possible solutions in the first three lines. They all work, but is there a better way to look up any value from one range inside another range?
    Last edited by 8822421; 10-24-2019 at 08:38 AM.

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Looking for a way to look up any value from a range of cells in a different range of c

    =or(isnumber(match($j$6:$j$8,b1:w1,))), cse

  3. #3
    Registered User
    Join Date
    10-23-2019
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    3

    Re: Looking for a way to look up any value from a range of cells in a different range of c

    I don't know if there is a misplaced bracket, but Excel isn't recognizing that as a proper formula. Basically, the , cse at the end isn't part of anything, and without it the formula doesn't work?

  4. #4
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Looking for a way to look up any value from a range of cells in a different range of c


  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Looking for a way to look up any value from a range of cells in a different range of c

    Edited

    @ tim

    Really?

    8822421 is a first time poster. A little more attention to detail is in order. While there isn't a forum rule about this or uploading a workbook without adequate explanation the same considerations apply.

    And BTW:
    Hello 8822421. Welcome to the forum.

    This appears to be an array formula. Array entered formulas are a little different from regular ones.
    Here is the "canned response" I use when introducing them.

    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Last edited by FlameRetired; 10-23-2019 at 05:07 PM.
    Dave

  6. #6
    Registered User
    Join Date
    10-23-2019
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    3

    Re: Looking for a way to look up any value from a range of cells in a different range of c

    Thanks to both of you! I totally admit that I was unfamiliar with array formulas. I've got it working now, and I have some research to do to see how I can implement these in more areas!

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Looking for a way to look up any value from a range of cells in a different range of c

    You are welcome 8822421. Glad to help. Thank you for the feedback and marking your thread Solved.

+ 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. Replies: 4
    Last Post: 02-06-2017, 10:20 PM
  2. Replies: 6
    Last Post: 09-16-2016, 03:52 PM
  3. [SOLVED] Lock/Unlock range cells based on text value in other range cells
    By boboivan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-12-2014, 12:50 PM
  4. [SOLVED] Macro needed to clear cells in range based on value of cells in another range
    By msmith7113 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-05-2013, 12:32 AM
  5. [SOLVED] VBA Copy a range of cells values using the range of cells in a formula (which will change)
    By murtaep in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 06-05-2012, 07:59 AM
  6. Replies: 2
    Last Post: 05-31-2012, 05:37 AM

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