+ Reply to Thread
Results 1 to 6 of 6

3 criteria for horizontal and vertical matching

  1. #1
    Registered User
    Join Date
    12-24-2014
    Location
    india
    MS-Off Ver
    2013
    Posts
    4

    3 criteria for horizontal and vertical matching

    I need a formula to find a value from the table where 3 criteria's (that can be changed) are to be used to search that value.
    Book2.xlsx
    Attached Images Attached Images
    Last edited by mator; 12-24-2014 at 05:45 AM.

  2. #2
    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,053

    Re: 3 criteria for horizontal and vertical matching

    In the duplicate post, you were asked to post a spreadsheet. A PNG is STILL not a spreadsheet.
    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

  3. #3
    Registered User
    Join Date
    12-24-2014
    Location
    india
    MS-Off Ver
    2013
    Posts
    4

    Re: 3 criteria for horizontal and vertical matching

    Sorry for attaching PNG instead of a spreadsheet. The post has been edited to attach the spreadsheet.

    Thanks

  4. #4
    Forum Contributor
    Join Date
    12-23-2003
    Posts
    179

    Re: 3 criteria for horizontal and vertical matching

    Unmerge all of the merged cells; repeat A and B for every record; and repeat also the cost values for the appropriate records.

    When done...

    J8, control+shift+enter, not just enter, and copy across:

    =INDEX($D$3:$G$18,MATCH(1,IF($B$3:$B$18=J$5,IF($C$3:$C$18=J$6,1)),0),MATCH(J$7,$D$2:$G$2,1))

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: 3 criteria for horizontal and vertical matching

    J8=SUMPRODUCT((LOOKUP(ROW($A$3:$A$18),ROW($A$3:$A$18)/($A$3:$A$18<>""),$A$3:$A$18)=J$4)*(LOOKUP(ROW($B$3:$B$18),ROW($B$3:$B$18)/($B$3:$B$18<>""),$B$3:$B$18)=J$5)*($C$3:$C$18=J$6)*($D$2:$G$2=J$7)*($D$3:$G$18))
    Copy towards Right
    See the attached file
    Change A3 as A's and A7 as B's
    Attached Files Attached Files
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  6. #6
    Registered User
    Join Date
    12-24-2014
    Location
    india
    MS-Off Ver
    2013
    Posts
    4

    Re: 3 criteria for horizontal and vertical matching

    Thanks Aladin and nflsales

+ 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] SUMIFS(?) I need to sum data using both horizontal and vertical criteria
    By bighandsam in forum Excel General
    Replies: 22
    Last Post: 01-06-2017, 11:31 PM
  2. 3 criteria for horizontal and vertical matching from a table
    By mator in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-24-2014, 06:28 AM
  3. [SOLVED] Lookup with vertical and horizontal criteria
    By busygurl in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-23-2014, 12:03 AM
  4. Lookup Table Using Horizontal and Vertical Criteria
    By bbmonkey87 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-06-2014, 06:31 PM
  5. Formula to sum with two criteria joint horizontal vertical
    By felixpanganiban in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-11-2013, 03:52 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