+ Reply to Thread
Results 1 to 9 of 9

Sumif across columns

  1. #1
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,224

    Sumif across columns

    Hi all

    I have my data set, where the header is the year and month field i.e. July 2015, August 2016 etc

    It is not in seqenece; and I need certain months (our company fiscal year) to provide me the total.

    Our Fiscal year is July-June. I need Data for 2016 and 2017 in the attached data.

    2016 = July 2015-June2016 ; 2017 = July 2016-June 2017

    I tried sumprodct but cant seem to get it to total via a formula.

    can someone help?

    I need the totals in column AZ and BA, respectively.
    Attached Files Attached Files
    Last edited by jw01; 06-28-2017 at 10:42 AM.

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Sumif across columns

    If you change the text values in row 9 to actual dates (which can be formatted however you'd like), then you should be able to work with your data.

    For example, change all of row 9 from Text formatting to General. Then change Z9 to 7/1/2015 and you can format as custom mmm yyy.
    Last edited by 63falcondude; 06-29-2017 at 02:28 PM. Reason: Typo

  3. #3
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,224

    Re: Sumif across columns

    Quote Originally Posted by 63falcondude View Post
    If you change the text values in row 9 to actual dates (which can be formatted however you'd like), then you should be able to work with your data.

    For example, change all of row 9 from Text formatting to General. Then change Z9 to 7/1/2017 and you can format as custom mmm yyy.
    Yeah, but how do I sum the data for 2016 fiscal year based on the month criteria in column AZ?

  4. #4
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,224

    Re: Sumif across columns

    I have done it manually by adding "sum" function, however I am wondering if there is a way to use a formula?

    This will eliminate any errors in case I miss a certain month.

    let me know - i have attached the file again.

    thanks

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Sumif across columns

    I noticed that the date in AZ8 is 6/16/2017 (displayed as "16-Jun"). Is that supposed to be Jun 2016 (i.e. 6/1/2016)?

    If so, you can try something like this:
    =SUMPRODUCT((Z10:AW4848)*(Z9:AW9>=AZ7)*(Z9:AW9<=AZ8))

    Keep in mind that this will only work after you make the changes mentioned in post #2.

  6. #6
    Registered User
    Join Date
    06-28-2017
    Location
    uk
    MS-Off Ver
    2013
    Posts
    15

    Re: Sumif across columns

    I would use a DSUM rather than a sumif or sum product. Set up a separate criteria range by copying your headings, highlight all the data including headings and all the criteria entered under the headings on the criteria range including the headings again. the formula is straight forward =DSUM(database, FIELD which is column number, then criteria.

    great secret formula that not many know about.

  7. #7
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,224

    Re: Sumif across columns

    I tried dsum but not sure what I am doing incorrect?

    thoughts? see attached workbook
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,224

    Re: Sumif across columns

    any thoughts on this guys?

  9. #9
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Sumif across columns

    Did you try the suggestion from post #5?

    See attachment for implementation.
    Attached Files Attached Files
    Last edited by 63falcondude; 06-29-2017 at 02:36 PM.

+ 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. SUMIF 2 columns?
    By kevinSHR in forum Excel General
    Replies: 3
    Last Post: 05-04-2016, 07:56 PM
  2. sumif with not columns far apart
    By makinmomb in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-05-2014, 04:24 PM
  3. [SOLVED] Sumif two columns matching another two columns
    By kl99ny in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-11-2013, 02:08 PM
  4. SUMIF Several Columns
    By lampoonsaat in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2011, 01:11 PM
  5. SumIf across columns
    By Lithium78 in forum Excel General
    Replies: 12
    Last Post: 02-19-2010, 04:01 AM
  6. Sumif across columns-Sum pay-
    By mremmenga in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-12-2008, 05:42 PM
  7. Sumif across columns
    By mminsf in forum Excel Formulas & Functions
    Replies: 52
    Last Post: 09-06-2005, 12:05 PM

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