+ Reply to Thread
Results 1 to 5 of 5

Thread: SUMIF question

  1. #1
    Registered User
    Join Date
    09-07-2008
    Location
    Canada
    Posts
    5

    SUMIF question

    Hi All,

    I have a workbook of 13 sheets, the first being a summary and the next 12 being JAN, FEB, and so on till DEC.

    What I need to do is SUM the values of B5:B29 and C5:C29 on all of the monthly sheets if the date in the same row on Colum A is the current calander month, and secondly if it is within the past 30 days.

    I have had trouble using TODAY() within the criteria for a SUMIF function.

  2. #2
    Valued Forum Contributor
    Join Date
    08-26-2008
    Location
    singapore
    Posts
    618
    I can only give you the formula for 1 worksheet, you have to sum up all the 12 worksheets yourself

    
    =SUM(IF(MONTH(A1)=MONTH(TODAY())*(TODAY()-E!A1<=30),E!B5:C29,0))

  3. #3
    Registered User
    Join Date
    09-07-2008
    Location
    Canada
    Posts
    5
    Thanks for your help, But i don't think i described the problem well enough. I've attached the woorkbook i'm working with.

    I need the blank cell F11 on the summary page to reflect the # of to/ldgs from the other pages, when those occur within the current calander month. So that's Colums B & C but only when the date in colum a is within the current calander month.

    The 30 Day issue arrives for H11 and H12
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    08-26-2008
    Location
    singapore
    Posts
    618

    see attachment

    I have write 2 sample formulas only include January, you can add other months.
    Remember to see the comment
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-07-2008
    Location
    Canada
    Posts
    5
    Thank you, those formulas work great. However, is there a way I can add the other months so they total the same way, in the same cell. Or will i have to combine all 12 months of log entries on one sheet and simply label it 2008?

    This formula should work no? But I get a #REF error

    =SUM(IF(MONTH(JAN:DEC!A5:A29)=MONTH(TODAY()),JAN:DEC!B5:C29,0))

    Thanks again for your help!
    Last edited by Jeremy.Waller; 09-08-2008 at 10:25 AM.

+ 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 question
    By arkady23 in forum Excel General
    Replies: 3
    Last Post: 05-06-2008, 08:40 AM
  2. SUMIF question... I think
    By theboydoug in forum Excel Worksheet Functions
    Replies: 6
    Last Post: 04-21-2008, 02:25 AM
  3. basic sumif question
    By splash in forum Excel Worksheet Functions
    Replies: 3
    Last Post: 04-02-2008, 10:12 AM
  4. SUMIF Question
    By JD22 in forum Excel Worksheet Functions
    Replies: 4
    Last Post: 11-08-2007, 04:32 AM
  5. SUMIF question
    By RNiner in forum Excel Worksheet Functions
    Replies: 13
    Last Post: 11-20-2006, 07:54 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.2.0