+ Reply to Thread
Results 1 to 10 of 10

Sumif issue with date

  1. #1
    Registered User
    Join Date
    09-07-2013
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2010
    Posts
    3

    Sumif issue with date

    Using SUMIF I'm trying to get cell B13 to pull month from cell A13 to use as criteria to pull from Income sheet, however I havent been able to get it to work.

    =SUMIF(Income!C:C,"="&MONTH(A13),Income!D:D)

    including spread sheet.

    Values are:
    Currency: Japanese Yen
    Date: yyyy/mm/dd
    would like cell A13 to be just month and year.
    version excel 2010

    Thank you for any assistance,
    ToriOtokoJapan Budget.xlsx

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Sumif issue with date

    Hello & Welcome to the Forum,

    In B13 copied down >> =SUMPRODUCT(--(TEXT($A13,"mmyyyy")=TEXT(Income!$C$2:$C$25,"mmyyyy")),Income!$D$2:$D$25)

    Change A13 to 8/1/2013 with a custom format of >> mmmm

    A
    B
    12
    Income
    13
    August
    ¥30,000.00
    14
    September
    ¥70,000.00
    15
    October
    ¥0.00
    16
    November
    ¥0.00
    17
    December
    ¥0.00
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    09-07-2013
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Sumif issue with date

    OK, I think I missed something here. Copied and pasted =SUMPRODUCT(--(TEXT($A13,"mmyyyy")=TEXT(Income!$C$2:$C$25,"mmyyyy")),Income!$D$2:$D$25)
    and I got TRUE in field.

    Also this will be a fluid document and want to select the column as a whole instead of a specified range of cells within the Income sheet.

    Thanks again for the quick answers, specially considering time of night where you are.

  4. #4
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Sumif issue with date

    B13=SUMIFS(Income!$D$2:$D$10000,Income!$C$2:$C$10000,">="&A13,Income!$C$2:$C$10000,"<="&EOMONTH(A13,0))

    I would not recommend to use thw whole column range as it will slow down calculation but if you insist you can use C:C and D:D.
    As jeffrey pointed:
    Change A13 to 8/1/2013 with a custom format of >> mmmm
    Last edited by RobertMika; 09-08-2013 at 05:04 AM.
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Sumif issue with date

    "I would not recommend to use thw whole column range as it will slow down calculation but if you insist you can use C:C and D:D."

    Generally, yes, though as I understand it, one of the advantages of the SUMIF(S), COUNTIF(S), etc. family of functions is that they calculate the UsedRange only; hence no loss in performance is typically associated with referencing entire columns.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  6. #6
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Sumif issue with date

    You are right XOR LX.
    True for SUMIF(S) but not for COUNTIFS.
    I should have rarher say:Not feasibe and I woud I would rather not use.

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Sumif issue with date

    Ah, interesting. I didn't realise that COUNTIFS was different in this sense. Wonder why?

    Cheers

  8. #8
    Registered User
    Join Date
    09-07-2013
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Sumif issue with date

    Quote Originally Posted by XOR LX View Post
    "I would not recommend to use thw whole column range as it will slow down calculation but if you insist you can use C:C and D:D."

    Generally, yes, though as I understand it, one of the advantages of the SUMIF(S), COUNTIF(S), etc. family of functions is that they calculate the UsedRange only; hence no loss in performance is typically associated with referencing entire columns.

    Regards
    That worked great! Thanks for the timely reply

  9. #9
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Sumif issue with date

    Quote Originally Posted by XOR LX View Post
    Ah, interesting. I didn't realise that COUNTIFS was different in this sense. Wonder why?

    Cheers
    Look here:

    COUNTIFS/SUMIFS

  10. #10
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Sumif issue with date

    Robert, that's some really fascinating stuff.

    Thanks a lot.

+ 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 by Date - SUMIF by Date = #VALUE when linked worksheet not open
    By alexhartley in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-14-2013, 03:56 AM
  2. [SOLVED] SUMIF(By Date) - SUMIF(By Date)= #Value Error From Linked Data
    By Dragunov in forum Excel General
    Replies: 2
    Last Post: 05-17-2012, 11:22 AM
  3. Sumif(?) issue?
    By FFrrEEddRRiiKK in forum Excel General
    Replies: 2
    Last Post: 07-23-2009, 09:54 AM
  4. SUMIF Issue
    By vlro in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-20-2008, 02:30 PM
  5. Issue with SUMIF
    By Rgaherty in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-03-2008, 02:44 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