+ Reply to Thread
Results 1 to 7 of 7

Solution for SUMIF

  1. #1
    Registered User
    Join Date
    04-12-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    87

    Solution for SUMIF

    What is the best solution for this scenario?

    I have a large workbook with many worksheets. Each worksheet is a City, I have a macro that picks up expenses and puts them into the city worksheet but I need to summarise all of the expenses.

    I have a list of end of month dates in Column B, I need to summarise these dates underneath and use a SUMIF in column I.

    EXAMPLE OF WHAT I NEED:

    COL B COL I
    31/08/2013 200
    30/06/2013 1200
    31/08/2013 750
    31/07/2013 650
    30/06/2013 1000
    30/06/2013 4500
    30/06/2013 1500
    31/07/2013 500
    ------------------------------------
    31/08/2013 950
    30/06/2013 8200
    31/07/2013 1150

    I think a macro would be best for this but I am unsure on how to do it. My current one doesn't work if there are less that 4 dates in column B. Could someone think of a better way to do this? At this moment in time I have:
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Last edited by aaaaaaiden; 02-18-2014 at 12:57 PM.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,962

    Re: Solution for SUMIF

    I have a list of end of month dates in Column B..
    On each sheet, or on one sheet?

    I need to summarise these dates underneath and use a SUMIF in column I.
    Of the same sheet?

    EXAMPLE OF WHAT I NEED:
    How about an example of what you have, first.

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Solution for SUMIF

    Please see attached file and see if this helps with your task with formula.
    Attached Files Attached Files
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Registered User
    Join Date
    04-12-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    87

    Re: Solution for SUMIF

    Quote Originally Posted by Bernie Deitrick View Post
    On each sheet, or on one sheet?
    On each sheet


    Quote Originally Posted by Bernie Deitrick View Post
    Of the same sheet?
    Yes, on the same sheet


    Quote Originally Posted by Bernie Deitrick View Post
    How about an example of what you have, first.
    I shall have a look at AlKey's spreadsheet and if not then I shall reply to you with an example

  5. #5
    Registered User
    Join Date
    04-12-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    87

    Re: Solution for SUMIF

    Quote Originally Posted by AlKey View Post
    Please see attached file and see if this helps with your task with formula.
    You have the right idea, except I need it underneath the dates and figures and the length of information is variable so it will have to be added automatically.. please see my example below.

  6. #6
    Registered User
    Join Date
    04-12-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    87

    Re: Solution for SUMIF

    Quote Originally Posted by Bernie Deitrick View Post
    On each sheet, or on one sheet?



    Of the same sheet?



    How about an example of what you have, first.

    test.xlsm

    Run the Run macro
    Then Run the Line 1 macro for the sumif problem

    London is the problematic spreadsheet because the year end has a possible 4 lines and with my coding it uses coordinates that doesn't guarantee the correct outcome.

    Please see the attachment which works for all but London because of my coding
    Last edited by aaaaaaiden; 02-19-2014 at 05:21 AM.

  7. #7
    Registered User
    Join Date
    04-12-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    87

    Re: Solution for SUMIF

    solved using RC formula instead

    Please Login or Register  to view this content.

+ 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. Simple I thought - Sumif / Sumproduct / Sumifs solution perhaps
    By jigpadia in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-19-2013, 07:50 AM
  2. [SOLVED] SUMPRODUCT(SUMIF or other clever solution!
    By Torleif in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-07-2012, 02:09 PM
  3. Replies: 2
    Last Post: 10-25-2010, 03:10 PM
  4. [SOLVED] Proper solution?:sumif
    By Nuno Jácome in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-24-2006, 11:55 AM
  5. [SOLVED] solution: SUMIF
    By Dahlman in forum Excel General
    Replies: 1
    Last Post: 06-09-2005, 04: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