+ Reply to Thread
Results 1 to 6 of 6

If E3 matches something in column A:A and if F2 matches something in B:B then work out the

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-11-2010
    Location
    England
    MS-Off Ver
    Excel 2019
    Posts
    203

    If E3 matches something in column A:A and if F2 matches something in B:B then work out the

    If E3 matches something in column A:A and if F2 matches something in B:B then work out the cost in C:C for the matches

    anyone help
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    01-25-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    434

    Re: If E3 matches something in column A:A and if F2 matches something in B:B then work out

    does SUMIFS work on your version of excel ?

    F3 =
    =SUMIFS($C:$C,$A:$A,$E3,$B:$B,F$2)
    copy and paste across rest of the table

  3. #3
    Valued Forum Contributor
    Join Date
    08-22-2011
    Location
    Auckland
    MS-Off Ver
    Excel 2019
    Posts
    716

    Re: If E3 matches something in column A:A and if F2 matches something in B:B then work out

    I could be wrong here but I don't think 2003 has the Sumifs function
    Try array formula
    =SUM(IF(A2:A17=E3,IF(B2:B17=F2,C2:C17,0),0))
    Press control/shift/enter simultaneously to commit
    Cheers
    Phil

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: If E3 matches something in column A:A and if F2 matches something in B:B then work out

    Phil, you are not wrong, sumifS() came out with 2007 (you could use a sumproduct() instead though), however....

    m_789 I notice that the file you uploaded indicates 2007 or later (.xlsx), but your profile says 2003. Please update your profile as necessary, members tailor questions based on your excel version
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

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

    Re: If E3 matches something in column A:A and if F2 matches something in B:B then work out

    =SUM(INDEX(($A$2:$A$17=$E3)*($B$2:$B$17=F$2)*($C$2:$C$17),0))
    Try the formula in "F3" and copy towards right and down

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: If E3 matches something in column A:A and if F2 matches something in B:B then work out

    Another one.....

    In F3

    =SUMPRODUCT(--($A$2:$A$17=$E3),--($B$2:$B$17=F$2),$C$2:$C$17)
    and then drag across and down.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

+ 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: 1
    Last Post: 09-26-2013, 12:16 PM
  2. Replies: 3
    Last Post: 06-22-2013, 12:54 PM
  3. [SOLVED] INDEX MATCH array formula that matches substring n gives multiple matches
    By bkwins in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-12-2013, 04:57 AM
  4. Replies: 0
    Last Post: 08-11-2012, 03:25 PM
  5. Replies: 4
    Last Post: 07-18-2012, 02:34 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