+ Reply to Thread
Results 1 to 5 of 5

Match a number to the LEFT of a name across multiple arrays

  1. #1
    Registered User
    Join Date
    09-01-2019
    Location
    Singapore
    MS-Off Ver
    Office 365 ProPlus
    Posts
    23

    Match a number to the LEFT of a name across multiple arrays

    I am looking for a simple formula for this, hopefully one that does not include a bunch of nested Index/matches:

    See attached: I've created a sheet called "Names" where I have created a list of names in Column A. Each name is unique (no duplicate names). On my sheet named "Development," I have a formula in Column A that searches the "Names" sheet for the name in Column B of the Development sheet and return the data in the "Order #" column from the "Names" tab (or a blank cell if Order # is blank). The Count Blank Column (Column C) then counts each blank cell in Column A and assigns a number names that do NOT have a numeric value beside them in the Order # column.

    I would like to expand this idea to multiple columns by doing the following:

    I've created a new sheet called "Development 2." It is identical to the "Development Sheet," however, in Column A, I would like it to perform the same function as the original "Development" sheet, but I've changed the format of the "Names" Sheet. On the "Names 2" sheet, you will see that I have split the name list into multiple columns, and I have also moved the Order # column to the LEFT of each name. I would like Column A in the "Development 2" sheet to look up the name in Column B of "Development 2" and return the number to the LEFT of the name (Order #) in the "Names 2" sheet. If the Order # cell on the Names 2 sheet is blank, then the formula will return a blank cell.

    Thanks.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    897

    Re: Match a number to the LEFT of a name across multiple arrays

    Hi mozartk626,
    In the Development 2 tab, cell A2 enter: =IFERROR(INDEX('Names 2'!$A$2:$A$8,MATCH('Development 2'!B2,'Names 2'!$B$2:$B$8,0)),0)+IFERROR(INDEX('Names 2'!$D$2:$D$8,MATCH('Development 2'!B2,'Names 2'!$E$2:$E$8,0)),0)
    First part is first set of names, second set second set....for the remaining 3 sets, just copy the blue part and adjust range.
    If no result is found you get a 0 (zero) instead of blank. Not sure if that is a deal breaker.

  3. #3
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Match a number to the LEFT of a name across multiple arrays

    Nice job ORoos! Maybe a CF to hide the zeros.
    Pete

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Match a number to the LEFT of a name across multiple arrays

    Please try at A2

    =IFERROR(1/(1/SUMIFS('Names 2'!$A$2:$M$9,'Names 2'!$B$2:$N$9,B2)),"")
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-01-2019
    Location
    Singapore
    MS-Off Ver
    Office 365 ProPlus
    Posts
    23

    Re: Match a number to the LEFT of a name across multiple arrays

    Thanks, Bo_Ry. That worked perfectly, and it was nice and short. ORoos, your formula worked, too, but the zeros prevented the formula in Column C from working correctly. It would just need to be modified to return blank cells instead of zeros.

    Thanks to all!

+ 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. Index match multiple arrays
    By lukeareed in forum Excel General
    Replies: 1
    Last Post: 04-27-2019, 07:25 AM
  2. [SOLVED] Index match function with multiple arrays
    By georgedixon in forum Excel General
    Replies: 6
    Last Post: 09-15-2017, 01:49 AM
  3. INDEX/MATCH with multiple arrays. Possibly need IF Function as well?
    By guy lafleur in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-31-2015, 03:13 PM
  4. INDEX & MATCH Function with Multiple Arrays
    By btone in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-22-2014, 03:59 PM
  5. Problem with reference to multiple arrays in INDEX/MATCH combo
    By tnuis in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-24-2013, 08:10 PM
  6. Problems with reference to multiple arrays using VLOOKUP / INDEX-MATCH
    By tnuis in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-24-2013, 07:21 AM
  7. [SOLVED] counting number of times a value does not appear in a multiple named arrays
    By greyscale in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 01-22-2013, 11:39 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