+ Reply to Thread
Results 1 to 6 of 6

DSUM Criteria

  1. #1
    Registered User
    Join Date
    05-17-2007
    Posts
    45

    DSUM Criteria

    Hello;

    I'm trying to write up the criteria for a DSUM equation - the column within data table I'm wanting to sum has numbers stored as text as well as characters - is there a way to set the criteria so that it doesn't add certain numbers stored as text? I tried ="<>3" and <>3; then basically every combination I could think of...

    When I set the criteria to ="=3" it will take the sum; can't understand why it'd be any different for a does not equal sign.

    Thank you for any help!

    Mike

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: DSUM Criteria

    Hello Mike,

    Have you tried

    ="<>"&3

    Rgds
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: DSUM Criteria

    Try this - note the single quote just before the numeric character

    ="<>'3"
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  4. #4
    Registered User
    Join Date
    05-17-2007
    Posts
    45

    Re: DSUM Criteria

    I tried both examples; no luck. Here's a part of the spreadsheet I'm working with for an example; maybe I have weird formatting going on - but this is how I get it back from the query. Thanks guys
    Attached Files Attached Files

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

    Re: DSUM Criteria

    How about using this...

    =SUMPRODUCT(--($D$2:$D$39=$D$46),--($F$2:$F$39=$E$46),--($C$2:$C$39=$F$46),--($J$2:$J$39<>2))

    I get an answer of 38.

    I will try the DSUM in the meantime...

  6. #6
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: DSUM Criteria

    It's not working as is because your 2s in the table are text and the one in the conditions table is a number. If you correct the top table to be numbers, your DSUM will work.

+ 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