+ Reply to Thread
Results 1 to 5 of 5

Need help with using an array to lookup column matches

  1. #1
    Registered User
    Join Date
    11-10-2007
    MS-Off Ver
    365
    Posts
    46

    Need help with using an array to lookup column matches

    I'm trying to find duplicate payments from two accounts. Below is a screenshot of the spreadsheet. I'd like the formula to look for matching payments between columns C and F. When a match is found in column F, the formula pulls the associated values of columns A, B and C and places them next to the duplicate payment in column F. The duplicates may be in any row which makes me think I need an array formula.

    I copied the desired result into columns G, H and I.

    Any help is appreciated! I've also uploaded the spreadsheet.

    Kelly
    12-24-2015 8-40-18 AM.jpg
    Attached Files Attached Files

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

    Re: Need help with using an array to lookup column matches

    This will include duplicates of non-payments. Enter in G2 and fill across and down. Format column I as General.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This version of the formula will not include non-payment matches.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    Attached Files Attached Files
    Last edited by newdoverman; 12-24-2015 at 10:42 AM.
    <---------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

  3. #3
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Need help with using an array to lookup column matches

    There's a way to do multi-element MATCH without array formulas just using SUMPRODUCT.

    With a helper column:
    Please Login or Register  to view this content.
    Condensing the SUMPRODUCT into the INDEX is complicated though because INDEX defaults to returning the same row as the input cell when you feed it an array position of zero. (I thought it would throw an error you could trap with IFERROR but I guess not).


    EDIT:
    Wait, should it be checking the date or just the Account name & value? I assumed yes it should, but it looks like NDM's answer went the other way and didn't consider date.
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  4. #4
    Registered User
    Join Date
    11-10-2007
    MS-Off Ver
    365
    Posts
    46

    Re: Need help with using an array to lookup column matches

    Excellent! Thank you both for sharing your knowledge!

    Kelly

  5. #5
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,294

    Re: Need help with using an array to lookup column matches

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Czeslaw; 12-24-2015 at 05:26 PM.

+ 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: 5
    Last Post: 12-02-2015, 05:23 AM
  2. VBA Change colour of row if content in column matches array in another sheet
    By Declamatory in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-07-2015, 06:02 AM
  3. [SOLVED] 2 Column Lookup with 6 Column array Col index number is Varies Within Entire Array
    By Weasyb in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-05-2015, 12:54 PM
  4. [SOLVED] Array Formula: Countif row and column matches.
    By JasonNeedsHelp in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-17-2014, 08:51 PM
  5. Lookup value by choosing column that matches current month
    By Ruthie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-19-2013, 12:35 PM
  6. Lookup value by choosing column that matches current month
    By Ruthie in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 07-19-2013, 11:32 AM
  7. Replies: 5
    Last Post: 06-01-2011, 01:19 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