+ Reply to Thread
Results 1 to 8 of 8

SUM a column but multiply if condition is met.

  1. #1
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    SUM a column but multiply if condition is met.

    Column B has two options. Call or Admin. Column D is minutes. "CALL" minutes need to be multiplied by 2.

    B3-Call D3- 5
    B4-Admin D4-10

    Time would be 20 minutes because D3's time is multiplied by 2 because B3 has "CALL" in it.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,770

    Re: SUM a column but multiply if condition is met.

    Try

    =SUMPRODUCT((D3:D6)*((B3:B6="Call")*2+(B3:B6="Admin")))
    Last edited by JohnTopley; 01-13-2017 at 10:35 AM.

  3. #3
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: SUM a column but multiply if condition is met.

    I would just add a helper column in Column E that says:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Then you can just use =SUMPRODUCT for Columns D and E.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: SUM a column but multiply if condition is met.

    Maybe this...

    =SUMIF(B:B,"call",D:D)*2+SUMIF(B:B,"<>call",D:D)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Re: SUM a column but multiply if condition is met.

    That appears to be PERFECT thank you!

    can you help break down what you did there. I understand SUM IF condition B:B=Call then Sum D:D and multiple by 2, but does <> mean not equal? or anything other than?

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,770

    Re: SUM a column but multiply if condition is met.

    "<>" is "not equal"

  7. #7
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Re: SUM a column but multiply if condition is met.

    Thank you John.

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: SUM a column but multiply if condition is met.

    Quote Originally Posted by taylorsm View Post
    does <> mean not equal?
    Yes, it means "not equal to".

    I like to interpret it to mean "is not".

    Seems to make more logical sense to me! For example...

    A1 [not equal to] call

    A1 [is not] call

+ 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] Multiply numbers with multiple condition
    By rchure in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-03-2017, 10:08 PM
  2. Replies: 3
    Last Post: 09-08-2016, 01:37 PM
  3. Replies: 8
    Last Post: 06-08-2016, 02:50 PM
  4. Replies: 8
    Last Post: 09-16-2014, 09:49 AM
  5. Match a condition and multiply columns
    By rniedzia in forum Excel General
    Replies: 2
    Last Post: 02-27-2012, 03:12 PM
  6. Replies: 8
    Last Post: 08-06-2009, 09:02 AM
  7. Multiply with a condition
    By nsv in forum Excel General
    Replies: 2
    Last Post: 06-12-2009, 09:01 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