+ Reply to Thread
Results 1 to 21 of 21

sumifs does not equal

  1. #1
    Forum Contributor
    Join Date
    07-18-2014
    Location
    Missouri, USA
    MS-Off Ver
    2010
    Posts
    175

    sumifs does not equal

    Doing a sumifs formula and in criteria1 I have the following....

    TEXT(10238,"#")


    How do I change it to "not equal TEXT(10238,"#") ?

    <>TEXT(10238,"#") does not work

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: sumifs does not equal

    Maybe = "<>" & Text(10238, "#")

  3. #3
    Forum Contributor
    Join Date
    07-18-2014
    Location
    Missouri, USA
    MS-Off Ver
    2010
    Posts
    175

    Re: sumifs does not equal

    Just tried it and it didn't work

  4. #4
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: sumifs does not equal

    Can you post your file?

  5. #5
    Forum Contributor
    Join Date
    07-18-2014
    Location
    Missouri, USA
    MS-Off Ver
    2010
    Posts
    175

    Re: sumifs does not equal

    Would like not to post it due to sensitive information.

    My data is pulling in customer account numbers as text. I can change it but when the report refreshes, they change back to text. The current way I have it pulls in the correct number if the column equals 10238. If I can't get it to work I'll just double the formula and subtract one from the other to get the right number.

  6. #6
    Forum Contributor
    Join Date
    07-18-2014
    Location
    Missouri, USA
    MS-Off Ver
    2010
    Posts
    175

    Re: sumifs does not equal

    I changed it to this to come up with the right total but I'd like to make my formula short and simple if I can

    =SUMIFS('36moHist'!$I$2:$I$35010,'36moHist'!$D$2:$D$35010,TODAY())-SUMIFS('36moHist'!$I$2:$I$35010,'36moHist'!$B$2:$B$35010,TEXT(10238,"#"),'36moHist'!$D$2:$D$35010,TODAY())

  7. #7
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: sumifs does not equal

    Maybe remove the sensitive data and replace with dummy data instead.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: sumifs does not equal

    Maybe put the TEXT(10238,"#") in it's own cell and reference it?

    What exactly is that supposed to be doing, anyway? Would "10238" not work just as well?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  9. #9
    Forum Contributor
    Join Date
    07-18-2014
    Location
    Missouri, USA
    MS-Off Ver
    2010
    Posts
    175

    Re: sumifs does not equal

    "10238" does work also.

    What I want is the total that does not equal 10238. I tried "<>10238" and it did not work until I went to the data and changed the 10238 to a number. Once I changed it to a number, the "<>10238" worked perfectly. The only problem was the "data" updates through out the day and it switches back to text.

  10. #10
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: sumifs does not equal

    How often does your data gets updated per day? If you highlight the column, do a Text To Columns, it will also convert Text to Numeric value.

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: sumifs does not equal

    I know you said you cannot upload your data, but can you mock-up something so we can see what you have?

  12. #12
    Forum Contributor
    Join Date
    07-18-2014
    Location
    Missouri, USA
    MS-Off Ver
    2010
    Posts
    175

    Re: sumifs does not equal

    I'm building a dashboard that the owner, myself, production manager, and the sales manager will open and review. I have it updating every 20 minutes pulling in real time sales, real time inputs and outputs and shipments. I did the "Text To Columns" for that column and it worked until the next update.

  13. #13
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: sumifs does not equal

    Sounds like your raw data is treating numeric value as text. Maybe change your criteria to <> 10238 + 0

  14. #14
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: sumifs does not equal

    Should be

    =SUMIFS('36moHist'!$I$2:$I$35010,'36moHist'!$D$2:$D$35010,TODAY(),'36moHist'!$B$2:$B$35010,"<>"&TEXT(10238,"#"))

  15. #15
    Forum Contributor
    Join Date
    07-18-2014
    Location
    Missouri, USA
    MS-Off Ver
    2010
    Posts
    175

    Re: sumifs does not equal

    All I'm doing is saying, sum column "I" if column "B" does not equal 10238. And the only problem I'm having with it is column B is text.

    To sum column "I" if column "B" equals 10238, TEXT(10238,"#") works perfectly. "10238" works also.

    What does not work is
    "<>10238"
    <>TEXT(10238,"#")
    "<>" & Text(10238, "#")
    Last edited by rs1aj; 06-17-2015 at 03:12 PM.

  16. #16
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: sumifs does not equal

    Not sure if you missed my post, give this one a try see if it works.

    "<> 10238 + 0"

  17. #17
    Forum Contributor
    Join Date
    07-18-2014
    Location
    Missouri, USA
    MS-Off Ver
    2010
    Posts
    175

    Re: sumifs does not equal

    =SUMIFS('36moHist'!$I$2:$I$35010,'36moHist'!$D$2:$D$35010,TODAY(),'36moHist'!$B$2:$B$35010,"<>"&TEXT(10238,"#"))
    and
    "<> 10238 + 0"

    did not work

    Both of these gave me 53. 17 of those equal 10238 so my total should be 36.

    TEXT(10238,"#") give me a total of 17, which is correct but I want the total not equaling 10238

    =SUMIFS('36moHist'!$I$2:$I$35014,'36moHist'!$D$2:$D$35014,WORKDAY(TODAY(),-1))-SUMIFS('36moHist'!$I$2:$I$35014,'36moHist'!$B$2:$B$35014,TEXT(10238,"#"),'36moHist'!$D$2:$D$35014,WORKDAY(TODAY(),-1))

    does work so I may have to just stick with that.
    Last edited by rs1aj; 06-17-2015 at 02:10 PM.

  18. #18
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: sumifs does not equal

    Well, if you really want to shorten the formula, then my final suggestion would be insert a helper column, convert the the text to numeric using Value() function, then do a SumIFS based on the helper column.
    Attached Files Attached Files

  19. #19
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: sumifs does not equal

    Sumifs (as you've seen) does tend to convert text numbers to real numbers.

    Try sumproduct, it won't do that

    =SUMPRODUCT(--('36moHist'!$D$2:$D$35014=WORKDAY(TODAY(),-1)),--('36moHist'!$B$2:$B$35014<>"10238"),'36moHist'!$I$2:$I$35014)

  20. #20
    Forum Contributor
    Join Date
    07-18-2014
    Location
    Missouri, USA
    MS-Off Ver
    2010
    Posts
    175

    Re: sumifs does not equal

    Thank you to all that helped.

  21. #21
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: sumifs does not equal

    Try this....
    "<>*10238"

    It worked on this simple example...
    A
    B
    C
    1
    10238
    10
    450
    2
    10239
    20
    440
    3
    10240
    30
    4
    10241
    40
    5
    10242
    50
    6
    10243
    60
    7
    10244
    70
    8
    10245
    80
    9
    10246
    90
    440

    C1=SUMIFS($B$1:$B$9,$A$1:$A$9,"<>10238")
    C2=SUMIFS($B$1:$B$9,$A$1:$A$9,"<>*10238")
    C9=SUM(B2:B9)

+ 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. Issue With Not Equal To in SUMIFS Formula
    By Comptka in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-06-2015, 02:29 PM
  2. SUMIFS with a greater than or equal to, as well as an OR criteria
    By fayep1986 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-14-2015, 09:51 AM
  3. [SOLVED] Set Sumifs Criteria Range to equal year
    By HCLax in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-10-2014, 09:53 AM
  4. SumIfs containing a greater than or equal to And less than or equal to
    By teton88 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-15-2014, 07:47 PM
  5. [SOLVED] SUMIFS greater than or equal
    By telton in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-11-2013, 04:55 AM

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