+ Reply to Thread
Results 1 to 3 of 3

IF's for multiple criteria and Summing

  1. #1
    Registered User
    Join Date
    01-19-2017
    Location
    Fairfax, VA
    MS-Off Ver
    2013
    Posts
    1

    IF's for multiple criteria and Summing

    Hi there,

    Hoping someone can help me out. I need a lookup formula that requires two matching criteria. If a person is receiving Service 1 and is coded as a 2 then the cost is $ per hour. If a person is receiving Service 2 and is coded as a 3 then the cost is $ per hour.

    I have it set up as follows:
    1 2 3 4
    Service 1 $10.01 $13.12 $15.55 $20.29
    Service 2 $16.19 $18.21 $21.01 $25.98
    Service 3 $33.53 $33.53 $33.53 $33.53

    I tried nested IF's but something is not working because it will not give me the correct funding.

    Once I have that then I need a formula that calculates only those receiving Service 1 and coded as a 1; Service 2 and coded as a 1; etc.

    Thanks in advance.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,980

    Re: IF's for multiple criteria and Summing

    Try this:

    Excel 2010 32 bit
    A
    B
    C
    D
    E
    1
    1
    2
    3
    4
    2
    Service 1 $10.01 $13.12 $15.55 $20.29
    3
    Service 2 $16.19 $18.21 $21.01 $25.98
    4
    Service 3 $33.53 $33.53 $33.53 $33.53
    5
    6
    Name Service 2 Code
    7
    Person 1 Service 2
    2
    $18.21
    Sheet: Sheet2

    Excel 2010 32 bit
    D
    7
    =INDEX($B$2:$E$4,MATCH(B7,$A$2:$A$4,0),MATCH(C7,$B$1:$E$1,0))
    Sheet: Sheet2
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: IF's for multiple criteria and Summing

    Welcome to the forum.
    The highlighted part of your thread is not clear.It would be better to upload a workbook with manually put desired results.

    Quote Originally Posted by sis92y View Post
    Hi there,

    Hoping someone can help me out. I need a lookup formula that requires two matching criteria. If a person is receiving Service 1 and is coded as a 2 then the cost is $ per hour. If a person is receiving Service 2 and is coded as a 3 then the cost is $ per hour.

    I have it set up as follows:
    1 2 3 4
    Service 1 $10.01 $13.12 $15.55 $20.29
    Service 2 $16.19 $18.21 $21.01 $25.98
    Service 3 $33.53 $33.53 $33.53 $33.53

    I tried nested IF's but something is not working because it will not give me the correct funding.

    Once I have that then I need a formula that calculates only those receiving Service 1 and coded as a 1; Service 2 and coded as a 1; etc.

    Thanks in advance.
    Best Regards
    Imran Bhatti
    Teach me Excel VBA

+ 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. Formula for summing on multiple row criteria and a dynamic column criteria
    By ianswilson815 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-25-2016, 01:58 PM
  2. [SOLVED] Summing data across multiple criteria on multiple worksheets
    By PDBartlett in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-01-2015, 11:57 AM
  3. Summing Based on Multiple Criteria
    By SJT in forum Excel General
    Replies: 4
    Last Post: 02-12-2015, 01:31 AM
  4. Help with summing based on multiple criteria
    By blaugrana9 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-15-2014, 03:50 AM
  5. Summing based on multiple criteria
    By Environment in forum Excel General
    Replies: 2
    Last Post: 08-23-2011, 10:19 AM
  6. Need Help: Summing Multiple Criteria
    By japorms in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-28-2006, 03:41 PM
  7. Summing with multiple criteria
    By qflyer in forum Excel Formulas & Functions
    Replies: 23
    Last Post: 09-06-2005, 10:05 AM

Tags for this Thread

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