+ Reply to Thread
Results 1 to 3 of 3

Sumproduct - Date criteria to exclude total columns

Hybrid View

no_mouse Sumproduct - Date criteria to... 01-22-2018, 01:44 PM
JohnTopley Re: Sumproduct - Date... 01-22-2018, 02:18 PM
daddylonglegs Re: Sumproduct - Date... 01-22-2018, 02:53 PM
  1. #1
    Registered User
    Join Date
    01-19-2018
    Location
    Illinois
    MS-Off Ver
    2016
    Posts
    1

    Sumproduct - Date criteria to exclude total columns

    Hi all -

    After years of searching for answers here, I'm finally creating an account on this forum just to ask this question! I am trying to use a Sumproduct to calculate the sum of an array, for all columns with date < today(). However, I want to ignore the columns I have for annual totals. With the below example, my current formula is Sumproduct($A$2:F$4*($A$1:$F$1<=today()). I need to add one more criteria to ignore the total rows. So far, I've tried the following with no success:

    - individual criteria to ignore each total column (e.g., *($A$1:$F$1<>"18 Total")
    - renaming all the total columns to be the same (e.g., "Ignore") and adding criteria as a whole to ignore total columns

    My table is set up as the following:
    A B C D E F
    1 10/1 11/1 12/1 '18 Total 1/1 2/1
    2 1 2 2 5 2 2
    3 3 3 3 9 9 9
    4 1 5 11 17 11 11

    Any suggestions would be much appreciated!

  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,717

    Re: Sumproduct - Date criteria to exclude total columns

    Try

    =SUMPRODUCT((B3:G5)*(--ISNUMBER(B2:G2)))

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,695

    Re: Sumproduct - Date criteria to exclude total columns

    Quote Originally Posted by no_mouse View Post
    Sumproduct($A$2:F$4*($A$1:$F$1<=today()).
    For that formula, specifically, totals columns will be ignored anyway because any text value is deemed to be > than any number
    Audere est facere

+ 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: 3
    Last Post: 04-21-2015, 07:45 AM
  2. SUMIFS or SUMPRODUCT with Multiple Columns and with Date Criteria
    By eac8423 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-04-2014, 05:20 PM
  3. [SOLVED] Sumproduct to add total qty from several columns
    By mmccra2858 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-03-2014, 04:35 PM
  4. Replies: 1
    Last Post: 09-03-2013, 07:41 PM
  5. Need one column total if criteria meets another columns criteria
    By jebrown in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-24-2013, 08:47 PM
  6. Replies: 8
    Last Post: 05-14-2012, 02:44 PM
  7. [SOLVED] get a total based on criteria in two columns
    By rar in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-22-2005, 10:30 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