+ Reply to Thread
Results 1 to 4 of 4

compare a few values

  1. #1
    Forum Contributor
    Join Date
    05-04-2005
    Posts
    136

    compare a few values

    i have two worksheets:
    sponsor and agency
    agency sheet:
    colA--------colB-------------colC---------
    Period------week------------brand--------
    1-----------1----------------CT----------
    1-----------1----------------TT----------
    1-----------2----------------CT----------

    sponsor sheet:
    colA--------colB-------------colC---------colD
    Period------week------------brand--------amount
    1-----------1----------------CT----------500
    1-----------1----------------TT----------287
    1-----------2----------------CT----------473

    i need colD in agency to populate with the corresponding record - by period week and brand in colD of sponsor sheet.
    I can't put an address because they may not be in the same order.
    the agency sheet has more records than the sponsor does but they would always be sorted individually by period then by week then by brand.

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    On your 'Agency' sheet...

    D2, copied down:

    =INDEX(Sponsor!$D$2:$D$4,MATCH(1,(Sponsor!$A$2:$A$4=Agency!A2)*(Sponsor!$B$2:$B$4=Agency!B2)*(Sponsor!$C$2:$C$4=Agency!C2),0))

    ...confirmed with CONTROL+SHIFT+ENTER.

    Hope this helps!

  3. #3
    Forum Contributor
    Join Date
    05-04-2005
    Posts
    136
    thank you for the response.
    question:
    what is the difference between ctrl+shift+enter and just enter?

  4. #4
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Quote Originally Posted by tkaplan
    thank you for the response.
    question:
    what is the difference between ctrl+shift+enter and just enter?
    Confirming a formula with 'CONTROL+SHIFT+ENTER' tells Excel that you've entered an array formula. Have a look at the help menu under 'Array Formula' for more information.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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