+ Reply to Thread
Results 1 to 13 of 13

Picking up wrong data using SUMIFS

  1. #1
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Picking up wrong data using SUMIFS

    Hi,

    I have two worksheets.In worksheet 1, Iam pulling data in BA column from worksheet2 from Y column .But here seems to be wrong data pulling by matching 4 columns which is compulsory criteria.

    This is happening only in this case.

    Pls find enclosed in attachment.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,933

    Re: Picking up wrong data using SUMIFS

    What is the problem?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Picking up wrong data using SUMIFS

    Pls see the data pulled in worksheet 1,it is extracting wrong data

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Picking up wrong data using SUMIFS

    Are you expecting SUMIFS to differentiate between tr>144 (B) and TR>144 (B)? SUMIFS isn't usually "case-sensitive", so it's treating those two values as the same. If you need it to be case sensitive then you need to switch to s SUMPRODUCT formula with EXACT or something similar
    Last edited by daddylonglegs; 01-01-2018 at 09:39 AM.
    Audere est facere

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,933

    Re: Picking up wrong data using SUMIFS

    Quote Originally Posted by paradise2sr View Post
    Pls see the data pulled in worksheet 1,it is extracting wrong data
    I did. It didn't tell me anything. I'm afraid I don't have time to through your workbook and check calculations to work out what the problem is (i.e. what data is 'wrong'). You, however, could easily explain it in words, if you were so inclined, and make it easier for those trying to help you.

  6. #6
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Picking up wrong data using SUMIFS

    Quote Originally Posted by daddylonglegs View Post
    Are you expecting SUMIFS to differentiate between tr>144 (B) and TR>144 (B)? SUMIFS isn't usually "case-sensitive", so it's treating those two values as the same. If you need it to be case sensitive then you need to switch to s SUMPRODUCT formula with EXACT or something similar
    Yeah,You are right.Can you revised the same.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Picking up wrong data using SUMIFS

    You have 3 variants:

    tr>144 (B)
    TR>144(B)
    TR>144 (B)

    Do you want EACH ONE to be treated as different?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  8. #8
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Picking up wrong data using SUMIFS

    For a revised version it's best to restrict the number of rows - this version will do a case-sensitive match for only the last criterion

    =SUMPRODUCT('2'!$Y$2:$Y$51,('2'!$A$2:$A$51=B5)*('2'!$T$2:$T$51=A5)*('2'!$V$2:$V$51=V5)*EXACT('2'!$X$2:$X$51,AJ5))

  9. #9
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Picking up wrong data using SUMIFS

    Quote Originally Posted by Glenn Kennedy View Post
    You have 3 variants:

    tr>144 (B)
    TR>144(B)
    TR>144 (B)

    Do you want EACH ONE to be treated as different?
    Yeah sure as there are 4columns to match.

  10. #10
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Picking up wrong data using SUMIFS

    Quote Originally Posted by daddylonglegs View Post
    For a revised version it's best to restrict the number of rows - this version will do a case-sensitive match for only the last criterion

    =SUMPRODUCT('2'!$Y$2:$Y$51,('2'!$A$2:$A$51=B5)*('2'!$T$2:$T$51=A5)*('2'!$V$2:$V$51=V5)*EXACT('2'!$X$2:$X$51,AJ5))
    Actually I want all the criteria to be matched and pull the data accurately as I have more than 20k data like this.

  11. #11
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Picking up wrong data using SUMIFS

    As the data in sheet 1 in AJ column all 3 data are different which can be checked using Len function.Hence,plz help me in getting correct formula.

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Picking up wrong data using SUMIFS

    Question 1. In your posted sheet, is Daddy LL formula giving you the expected result?

    Question 2. Will you please post a sample with some more examples - to show us what variations there can be?

  13. #13
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,248

    Re: Picking up wrong data using SUMIFS

    Ok I have duly checked and it seems to work as provided by forum contributor Daddy LL in my original file.As I have never used 'Exact' function earlier.Can you plz explain about 'Exact' function.Also why there is no exact match on case sensitive matching using sumifs.

    However,currently my problem is solved on this topic.

    Thanx for your kind help.
    Last edited by paradise2sr; 01-02-2018 at 07:49 AM.

+ 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. [SOLVED] VLOOKUP picking wrong values
    By JamezStrickland in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-25-2016, 09:54 AM
  2. [SOLVED] sumif, function picking wrong value
    By nicci113 in forum Excel General
    Replies: 12
    Last Post: 11-20-2014, 01:21 PM
  3. SUMIFS Problem - A value used in the formula is of the wrong data type
    By TicklyTigger in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-09-2014, 10:48 AM
  4. [SOLVED] dependant comboboxes picking up wrong items
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-18-2013, 01:46 PM
  5. Sum if array picking up wrong values
    By Loisw in forum Excel General
    Replies: 3
    Last Post: 06-28-2010, 10:21 AM
  6. vlookup function, picking up the wrong row
    By superdan in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-03-2009, 10:11 AM
  7. labels in formulas picking up wrong range
    By Carmen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-19-2005, 02:24 PM

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