+ Reply to Thread
Results 1 to 6 of 6

Find Data in one array and match the position in another array

  1. #1
    Registered User
    Join Date
    10-23-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    Question Find Data in one array and match the position in another array

    Hello,

    I have been working with a large amount of data and came across this problem. I am trying to get a formula that will find the correct data in an array and then find the data in another array for the matching position. Attached is an example.

    For instance the number "8" is in position A6 in the first array and the data in the same position in the second array is "10"

    Excelproblem.jpg

    I have combined and tried several different formulas, but so far nothing has done it correctly.

    Thanks
    Last edited by zeeman2; 10-27-2013 at 04:55 PM. Reason: Changed prefix

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Find Data in one array and match the position in another array

    Hi and welcome to the forum

    Please do not upload a picture of your file...rather, upload a sample of your workbook, showing what data you are working with, a few samples of your expected outcome is (manually entered is ok) and how you arrived at that. (exclude sensitive info). Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you Also, not all members can upload picture files (Company firewalls and stuff)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    10-23-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    Question Re: Find Data in one array and match the position in another array

    Book2.xlsx

    Maybe this will help.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Find Data in one array and match the position in another array

    Try this...


    Data Range
    A
    B
    C
    D
    E
    F
    1
    ----
    ----
    ----
    ----
    Data
    New Data
    2
    10
    19
    50
    8
    10
    3
    15
    11
    99
    10
    99
    4
    65
    24
    128
    11
    46
    5
    45
    74
    46
    15
    11
    6
    8
    36
    21
    19
    74
    7
    21
    50
    8
    24
    128
    9
    36
    8
    10
    99
    74
    65
    45
    45
    11
    11
    46
    19
    46
    36
    12
    24
    128
    21
    50
    65
    13
    45
    15
    36
    65
    24
    14
    10
    8
    50
    74
    15
    15
    99
    19
    16
    128
    21


    This array formula** entered in F2 and copied down:

    =OFFSET(A$10,MAX(IF(A$2:C$6=E2,ROW(A$2:C$6)-ROW(A$2))),MAX(IF(A$2:C$6=E2,COLUMN(A$2:C$6)-COLUMN(A2))))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    There must not be any duplicate entries in the top table.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    10-23-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Find Data in one array and match the position in another array

    That worked great! I also see where I made my mistakes. Thanks.

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Find Data in one array and match the position in another array

    You're welcome. Thanks for the feedback!

+ 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. Find the position of a value within an array
    By StevenAlberta in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-13-2012, 04:24 PM
  2. [SOLVED] Populate Listbox with all rows of a dynamic array where elements of a single array match.
    By Tayque_J_Holmes in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 08-07-2012, 04:54 AM
  3. Find position in matrix (not array)
    By Coaster in forum Excel General
    Replies: 5
    Last Post: 11-14-2011, 01:26 PM
  4. Find Second Occurrence of Match in Array
    By StevieD in forum Excel General
    Replies: 10
    Last Post: 04-25-2011, 02:27 PM
  5. Converting 3x10 array to a 1X30 array to run a Match formula
    By NBVC in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-08-2009, 07:45 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