+ Reply to Thread
Results 1 to 3 of 3

Summing all transactions that are on a Friday

  1. #1
    Forum Contributor
    Join Date
    02-25-2008
    Posts
    101

    Summing all transactions that are on a Friday

    Hiya,

    What am I doing wrong? I think it should hopefully be obvious what I'm trying to do:
    =SUMIF(TEXT(C7:C9,"ddd"),"Fri",D7:D9)

    I know I can and should be using SUMPRODUCT, but can I do it using SUMIF?

    Thanks

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    21,528

    Re: Summing all transactions that are on a Friday

    Re: basic SUMIF - no, not with your existing data (dates in C)

    SUMIF, unlike SUMPRODUCT / Arrays, can not alter the underlying values when calculating which is what you're trying to do with TEXT.

    If you want to use SUMIF you would need to either modify C such that they included or returned the weekday literally or store the ddd in another column.

    Example of the former: if C7:C9 stored "ddd" (even partially) then you could use SUMIF, eg

    C7: =TEXT(appropriate date value,"ddd, dd-mmm-yy")
    etc

    then

    =SUMIF(C7:C9,"Fri*",D7:D9)

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Summing all transactions that are on a Friday

    SUMIF won't let you manipulate the criteria range that way.. so you have to use Sumproduct()

    =Sumproduct(--(TEXT(C7:C9,"ddd")="Fri"),D7:D9)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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