+ Reply to Thread
Results 1 to 3 of 3

Problem with SUMIF

  1. #1
    Registered User
    Join Date
    10-10-2010
    Location
    Timbuktu
    MS-Off Ver
    Excel 2003
    Posts
    8

    Unhappy Problem with SUMIF

    I have been trying to use SUMIF in Excel 2003 and notice a problem. I have a long list of values in Column D and want to sum them if (and only if) there appears a flag ('*') in Column A. Sounds pretty simple, huh? Well, when I code the SUMIF cell at the bottom of Column D, it always return the sum of all cells in Column D, without regard to any flags in Column A! In playing w/ this, I have found that SUMIF only seems to work for short lists (< 10 items or so).

    Has anyone ever noticed this? What could be wrong?

    I'm attaching a sample of the problem I describe.
    Attached Files Attached Files

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

    Re: Problem with SUMIF

    * in context of SUMIF is a wildcard - if you want to search for * literally you must prefix with tilde ~

    =SUMIF(A:A,"~*",D:D)

    same holds true of ? and ~ itself.

  3. #3
    Registered User
    Join Date
    10-10-2010
    Location
    Timbuktu
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Problem with SUMIF

    Right on, DonkeyOte. Your advice works and is duly noted. Strangely, nowhere in Excel guidance did I see any caveats ro warnings about the wildcard / tilde thing you describe.

    Thanks so much!

+ 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