+ Reply to Thread
Results 1 to 3 of 3

Detecting dates using SUMIF....

  1. #1
    Registered User
    Join Date
    01-02-2008
    Posts
    8

    Detecting dates using SUMIF....

    i'm creating a spreadsheet which calculates my incomes and outgoings for the year. In column D I am entering the date as (eg) '7 Jan' yet when I try the formula below I'm still unable to detect which month has been entered..

    =SUMIF(D9:D40,"jan",C9:C40)

    I know it would be possible to correct this if I create a separate column just for the month but surely it must be possible to detect the word 'jan' by ignoring the numbers and spaces..
    I'd appreciate any help.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    If your entries in column D are text then this should work

    =SUMIF(D9:D40,"*jan*",C9:C40)

    Note the wildcards

    but if the entries are interpreted as true dates try

    =SUMPRODUCT((TEXT(D9:D40,"mmm")="Jan")*(D9:D40<>""),C9:C40)

  3. #3
    Registered User
    Join Date
    01-02-2008
    Posts
    8

    thanks...

    Thanks very much. Works a treat

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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