+ Reply to Thread
Results 1 to 3 of 3

SUMPRODUCT with conditions

  1. #1
    Registered User
    Join Date
    10-06-2009
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2007
    Posts
    40

    SUMPRODUCT with conditions

    Hi

    I have a datatable of employee records with ten columns which is used to calculate employee turnover.

    Three of these columns describe the employee - their location, status and employment type.

    I have a calculator where the user can enter a filter for each of these columns (into cells B6-D6), and the worksheet calculates the turnover based on another date field (E6).

    One of the sumproduct formulas looks like this:

    Please Login or Register  to view this content.
    However, I don't always want to filter on all three conditions, for example, I want the calculation to only filter on Location if location isn't blank. I tried the following but get a value error:

    Please Login or Register  to view this content.
    Can someone help me achieve this?

    Cheers
    Steve

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

    Re: SUMPRODUCT with conditions

    Untested

    =SUMPRODUCT(--(turnover_Location<>"")),--(turnover_Status=$C6),--(turnover_EmploymentType=$D6),--(turnover_Hired<=$E6))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: SUMPRODUCT with conditions

    May be this...

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


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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