+ Reply to Thread
Results 1 to 3 of 3

Need to create a formula/function that will return a value based on matching rows

  1. #1
    Registered User
    Join Date
    04-15-2019
    Location
    Chicago, IL
    MS-Off Ver
    Office 365
    Posts
    51

    Need to create a formula/function that will return a value based on matching rows

    I have included part of an Excel sheet I am working on. The actual sheet(s) contain about 4000 rows each.

    The first list (Zip Code List) contains columns for "Subcontractor", "Mailed Address", "Zip Code" and has all three columns' values populated.

    The second list, starting at Column E contains the same columns, as you can see, but that list is lacking many Zip Codes.

    I would like a formula/function that I can put in cell I3, copy down, that will find matches in the "Subcontractor" column in the 2 lists and return the Zip Code in K3.

    Any help is greatly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Need to create a formula/function that will return a value based on matching rows

    In I3 then copied across

    =IFERROR(INDEX(A$3:A$19,AGGREGATE(15,6,ROW($A$3:$A$19)/(COUNTIF($E$3:$E$19,$A$3:$A$19)>0),ROWS(I$3:I3))-ROW($I$3)+1),"")
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  3. #3
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Need to create a formula/function that will return a value based on matching rows

    Hi,

    I could achieve this with the help of a helper column.

    See the attached file.

    In H3:
    Please Login or Register  to view this content.
    In I3:
    Please Login or Register  to view this content.
    - this is an array formula and needs to be confirmed by pressing CTRL+SHIFT+ENTER

    In J3:
    Please Login or Register  to view this content.
    In K3:
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. [SOLVED] Formula to return the highest number in a column based on a matching second column
    By kersplash in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-29-2019, 02:41 AM
  2. Replies: 3
    Last Post: 01-03-2014, 08:03 PM
  3. [SOLVED] Formula with ROWS Function appears not to return correct number of rows
    By rzw30 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-22-2013, 07:05 AM
  4. Return all matching rows of a table based on dropdown cell
    By excelling@excel in forum Excel General
    Replies: 1
    Last Post: 12-02-2012, 09:32 PM
  5. Replies: 2
    Last Post: 11-05-2012, 09:28 AM
  6. Replies: 6
    Last Post: 01-22-2012, 12: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