+ Reply to Thread
Results 1 to 4 of 4

Sumif or sumifs with excel table headers as criteria

  1. #1
    Registered User
    Join Date
    02-28-2019
    Location
    Florida
    MS-Off Ver
    2016
    Posts
    16

    Sumif or sumifs with excel table headers as criteria

    Hi,

    I am trying to write a horizontal sumifs function to show the total sales up to a certain year that is specified in another column. I've gotten the function to work if the data is not formatted as a table, but when I format the data as a table the sumifs function returns 0. I've tried it with both sumif and sumifs, but the problem seems to be that when the data becomes a table it isn't reading the column headers (which are yearly sales) correctly to sum up the values below.

    Attached is a sample workbook to hopefully show what I am trying to do. The column I am trying to calculate is Sum of sales up to department change. I put the same formula that I used in both the table-formatted and non-table-formatted data array.

    Thank you in advance for your help!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Sumif or sumifs with excel table headers as criteria

    It's because the table headers are text, not numbers.
    Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-28-2019
    Location
    Florida
    MS-Off Ver
    2016
    Posts
    16

    Re: Sumif or sumifs with excel table headers as criteria

    That works perfectly, thank you!

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Sumif or sumifs with excel table headers as criteria

    You're welcome & thanks for the feedback

+ 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] Excel 2016 VBA to generate table using SUMIFS (or appropriate) with multiple criteria
    By HansMulder in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-11-2016, 04:00 PM
  2. formula to sumif/sumifs two criteria
    By gaudiumpenrith in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-17-2015, 12:53 PM
  3. Sumif\Sumifs - Multiple criteria - Need help
    By maddy_82 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-27-2015, 12:14 PM
  4. Sumif\Sumifs - Multiple criteria - Need help
    By maddy_82 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-30-2015, 08:28 AM
  5. How do I use column headers from a table in SUMIFS?
    By cmcgath in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-23-2014, 11:52 AM
  6. [SOLVED] Sumif/Sumifs multiple criteria OR instead of AND
    By CRIMEDOG in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-14-2014, 11:30 AM
  7. [SOLVED] SUMIF or SUMIFS with Array Criteria
    By freybe06 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-27-2014, 11:25 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