+ Reply to Thread
Results 1 to 12 of 12

Adding columns based upon dates

  1. #1
    Registered User
    Join Date
    09-05-2015
    Location
    North Carolina
    MS-Off Ver
    Office 2013
    Posts
    33

    Adding columns based upon dates

    I have a Table with dates in column A and then column B there is a dollar amount. Column C and D have drop down categories and subcategories. I know how to add up the columns/rows, based on the category chosen. But now I need to add a date factor to my equation. So posted below is my current formula. But I need it to only pull the numbers from the rows with dates before July 1st 2016 and or after July 1st 2016.

    =SUMIF(Payrollregister[Subcatagory],'Fixed Data'!Q3,Payrollregister[Withdrawal])+SUMIF(FixedExpenses[Subcatagory],'Fixed Data'!Q3,FixedExpenses[Withdrawal])+SUMIF(COB[Subcatagory],'Fixed Data'!Q3,COB[Withdrawal])


    Thank you for any help!

    Brenda

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Adding columns based upon dates

    Hi,

    You'll need to use SUMIFS() rather than SUMIF and add two more criteria for the dates to each of the 3 functions you're adding. e.g.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Or more simply if you only wantall results with the EXCEPTION of July 1st which is implied by your condition then
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    09-05-2015
    Location
    North Carolina
    MS-Off Ver
    Office 2013
    Posts
    33

    Re: Adding columns based upon dates

    When I use that first formula excel keeps telling me there is a problem. I don't think I'm understanding the formula all the way.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,348

    Re: Adding columns based upon dates

    What 'problem' does Excel report?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    09-05-2015
    Location
    North Carolina
    MS-Off Ver
    Office 2013
    Posts
    33

    Re: Adding columns based upon dates

    "We found a problem with this formula. Try clicking insert funtion on the formula tab to fix it, or click help for more info on common formula problem.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,348

    Re: Adding columns based upon dates

    Will you please attach a sample Excel workbook?

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.

  7. #7
    Registered User
    Join Date
    09-05-2015
    Location
    North Carolina
    MS-Off Ver
    Office 2013
    Posts
    33

    Re: Adding columns based upon dates

    Lets see if this will help you help me!
    Attached Files Attached Files

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,348

    Re: Adding columns based upon dates

    We are getting there!

    Just to clarify: in the real data set, the table on the right will be for EVERYTHING up to and including 30 June, and the table on the right for EVERYTHING since - is this correct? Or are you dealing JUST with data from June and July?

  9. #9
    Registered User
    Join Date
    09-05-2015
    Location
    North Carolina
    MS-Off Ver
    Office 2013
    Posts
    33

    Re: Adding columns based upon dates

    The real data set is January 1st 2016 - June 30th 2016 and the second table on the left is July1t through December 31st 2016

    Brenda

  10. #10
    Registered User
    Join Date
    09-05-2015
    Location
    North Carolina
    MS-Off Ver
    Office 2013
    Posts
    33

    Re: Adding columns based upon dates

    Anyone else have any ideas?

  11. #11
    Registered User
    Join Date
    09-05-2015
    Location
    North Carolina
    MS-Off Ver
    Office 2013
    Posts
    33

    Re: Adding columns based upon dates

    I don't know if this makes a difference or not, but the table the data is in only has dates from 2016.

    Brenda

  12. #12
    Registered User
    Join Date
    09-05-2015
    Location
    North Carolina
    MS-Off Ver
    Office 2013
    Posts
    33

    Re: Adding columns based upon dates

    I don't know if this makes a difference or not, but the table the data is in only has dates from 2016.

    Brenda

+ 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. Adding columns based off of adjacent columns.
    By smsulliva in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-10-2013, 12:26 PM
  2. Adding Columns Based on a date
    By Jaspal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2012, 06:40 AM
  3. Adding Dates When Box is Check in Multiple Columns
    By svtcobrar_410 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-27-2012, 06:00 PM
  4. Adding Values in two Columns based on condition
    By kaushal99 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-14-2012, 05:52 PM
  5. Adding dates to a range of cells based on certain criteria
    By jva in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-15-2012, 07:50 PM
  6. adding dates based on date ranges
    By tbar05 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-23-2012, 07:39 PM
  7. [SOLVED] Adding Figures based on a different columns info
    By wowster0 in forum Excel General
    Replies: 4
    Last Post: 06-19-2006, 04:20 PM
  8. adding columns based on lists
    By Craig in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-04-2005, 05: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