+ Reply to Thread
Results 1 to 6 of 6

How to match the arrays cell values in Excel

  1. #1
    Registered User
    Join Date
    05-12-2014
    MS-Off Ver
    Excel 2003
    Posts
    14

    How to match the arrays cell values in Excel

    Hi everyone,

    Please see the enclosed file.
    Section 1 is an array of some numbers, C6:G9.
    Section 2 is a two column array of numbers and names, K6:L14.

    How could a formula be written to compare the content of each cell within the C6:G9 to the list of K6:K14 and if a match, to return the name besides the match, to the range in Section 3.

    For example it would compare F6 to list in section 2 and would return the name "James" in F18.
    The sheet is not meant to make sense, but rather to learn how to get around.

    Thank you,
    Hielh
    Attached Files Attached Files
    Last edited by hileh; 01-25-2015 at 11:35 AM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Arrays

    title changed.
    Last edited by protonLeah; 01-25-2015 at 05:14 PM.
    Ben Van Johnson

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: How to match the arrays cell values in Excel

    NAMED RANGE "section_2" set for cells K5:L14
    named range "transactions" set for K5:K14
    In C18, down and across:
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-12-2014
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: How to match the arrays cell values in Excel

    Thank you ProtonLeah

    Your solution works perfect. But, with my apologies for not clearly stating it before, I meant to have one formula that would do the job without entering it to each cell in section 3.

    Once again, thank you for your efforts and time your put into this.
    Hileh.

  5. #5
    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,025

    Re: How to match the arrays cell values in Excel

    Hi. One formula, same result. Is this what you wanted?

    After posting this, I opened protonLeah's sheet, assuming that he'd misread the request. But no - it's a perfectly OK solution. Hileh - what you want cannot be achieved by a formula, I think.
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 01-26-2015 at 12:55 PM.
    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

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: How to match the arrays cell values in Excel

    If you don't like named ranges, the formula given becomes:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Fill across and down.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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. storing multiple value in a single cell (through arrays or without arrays)?
    By mak51061 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 12-25-2014, 09:27 PM
  2. Declaring multiple multi-dimensional arrays (jagged arrays) - compile error?
    By dfribush in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-20-2013, 05:06 PM
  3. vba compare arrays and remove exact matching arrays
    By jacojvv in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-25-2013, 07:30 AM
  4. [SOLVED] New to arrays-where do I find a good beginners guide to multi dimensional arrays
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-04-2013, 07:44 PM
  5. [SOLVED] Arrays - declaration, adding values to arrays and calculation
    By Maxi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-17-2006, 11:15 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