+ Reply to Thread
Results 1 to 8 of 8

Calculate cells based on multiple criteria

  1. #1
    Registered User
    Join Date
    09-24-2009
    Location
    Phila, PA
    MS-Off Ver
    Excel 2003
    Posts
    28

    Calculate cells based on multiple criteria

    Trying to calculate cells based on multiple criteria and have run into a block. I've attached the file as well as copied it here.
    Using Excel 2003
    If columnD=Billable and column E is not #N/A, multiply column C by column G

    Project Name Total Time User 2 Team Dept Rates
    Project1 User1 116.00 BILLABLE CS_BA B06 $76.50
    Project2 User2 5.00 BILLABLE CS_BA BB9 $76.50
    Project3 User3 21.50 BILLABLE CS_PMO BD2 $92.75
    Project4 User4 3.50 BILLABLE CS_PMO BD2 $76.50
    Project5 User5 1.00 BILLABLE Acct_Mgmt B06 $76.50
    Project6 User6 31.00 BILLABLE CS_PMO BD2 $76.50
    Project7 User7 13.50 BILLABLE CS_PMO BD2 $92.75
    Project8 User8 0.75 BILLABLE Acct_Mgmt B06 $92.75
    Project9 User9 5.40 BILLABLE CS_BA BB9 $92.75
    Project10 User10 3.50 BILLABLE #N/A #N/A $92.75
    Project11 User11 1.00 BILLABLE #N/A #N/A $76.50
    Attached Files Attached Files
    Last edited by jealkon; 07-11-2012 at 02:17 PM.

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Calculate cells based on multiple criteria

    Use

    =IF(D4="Billable",IF(NOT(ISNA(E4)),C4*G4,0),0)
    Last edited by Ace_XL; 07-11-2012 at 02:14 PM.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,423

    Re: Calculate cells based on multiple criteria

    You didn't say what you wanted if those criteria are not met, so I've assumed you want to return zero. You can use this formula on row 4:

    =IF(AND(D4="Billable",NOT(ISNA(E4))),G4*C4,0)

    then copy down.

    Hope this helps.

    Pete

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Calculate cells based on multiple criteria

    Hi Jealkon,

    Perhaps try:

    =IF(AND(D4="BILLABLE",NOT(ISERROR(E4))),C4*G4,0)

    Fill that down as many rows as necessary.

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Calculate cells based on multiple criteria

    for each individual row:

    =IF(AND(D4="BILLABLE",ISTEXT(E4)),C4*G4,"")

    for total sum

    =SUMPRODUCT(--($D$4:$D$14="BILLABLE"),--ISTEXT($E$4:$E$14),$C$4:$C$14,G4:$G$14)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  6. #6
    Registered User
    Join Date
    09-24-2009
    Location
    Phila, PA
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Calculate cells based on multiple criteria

    Thanks - You guys are fantastic.

  7. #7
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: Calculate cells based on multiple criteria

    In cell h4 enter this formula and copy down

    =IF(ISERROR(IF(AND(D4="BILLABLE",E4<>"#N/A"),C4*G4,"")),"",IF(AND(D4="BILLABLE",E4<>"#N/A"),C4*G4,""))
    Click on star (*) below if this helps

  8. #8
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Calculate cells based on multiple criteria

    Aw well it's done now so here it is!!!

    Similar to NBVC
    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)

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