+ Reply to Thread
Results 1 to 8 of 8

Getting wrong result because of the Cell's format!

  1. #1
    Registered User
    Join Date
    02-02-2018
    Location
    TURKEY
    MS-Off Ver
    2021
    Posts
    63

    Getting wrong result because of the Cell's format!

    Hi everyone,

    I'm trying to get dates of "Check" Sheet into "Prod BILKON" sheet when I use the SUMPRODUCT function I get the result which's in the attached file, would you please help.

    Thanks in advance.
    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,916

    Re: Getting wrong result because of the Cell's format!

    What result are you expecting? Why not just change the cell format?
    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
    Registered User
    Join Date
    02-02-2018
    Location
    TURKEY
    MS-Off Ver
    2021
    Posts
    63

    Re: Getting wrong result because of the Cell's format!

    I expect the two dates in Sheet "Check" Column "Print Go" - "Print Come"
    I've tried all the possible Cell Formats but nothing changed, unfortunately.

  4. #4
    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,916

    Re: Getting wrong result because of the Cell's format!

    Try this:

    =TEXT(SUMPRODUCT(((check!$B$2:$B$505)=$D2)*((check!$C$2:$C$505)=$E2),check!H$2:H$505),"dd/mm/yy")&"-"&TEXT(SUMPRODUCT(((check!$B$2:$B$505)=$D2)*((check!$C$2:$C$505)=$E2),check!I$2:I$505),"dd/mm/yyyy")

    You will want to adapt it for when the SUMPRODUCT returns 0.

    This maybe:

    =IF(SUMPRODUCT(((check!$B$2:$B$505)=$D2)*((check!$C$2:$C$505)=$E2),check!H$2:H$505)=0,0,TEXT(SUMPRODUCT(((check!$B$2:$B$505)=$D2)*((check!$C$2:$C$505)=$E2),check!H$2:H$505),"dd/mm/yy"))&"-"&IF(SUMPRODUCT(((check!$B$2:$B$505)=$D2)*((check!$C$2:$C$505)=$E2),check!I$2:I$505)=0,0,TEXT(SUMPRODUCT(((check!$B$2:$B$505)=$D2)*((check!$C$2:$C$505)=$E2),check!I$2:I$505),"dd/mm/yyyy"))

  5. #5
    Registered User
    Join Date
    02-02-2018
    Location
    TURKEY
    MS-Off Ver
    2021
    Posts
    63

    Re: Getting wrong result because of the Cell's format!

    Unfortunately, it doesn't work
    I get the below returns:

    43/mm/19-46/mm/2019
    33/mm/19-44/mm/2019
    42/mm/19-44/mm/2019
    01/mm/19-43/mm/2019

  6. #6
    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,916

    Re: Getting wrong result because of the Cell's format!

    You will need to replace this: dd/mm/yyyy

    with the Turkish equivalent - maybe this: dd.mm.yyyy

    It's dependent on your machine's locale. When you get that right, it will work:

    Excel 2016 (Windows) 32 bit
    K
    1
    PRINTING
    2
    0-0
    3
    0-0
    4
    0-0
    5
    0-0
    6
    0-0
    7
    0-0
    8
    29/04/19-03/05/2019
    9
    29/04/19-03/05/2019
    10
    09/05/19-14/05/2019
    11
    14/05/19-16/05/2019
    12
    19/04/19-20/04/2019
    Sheet: PROD BILKON

  7. #7
    Registered User
    Join Date
    02-02-2018
    Location
    TURKEY
    MS-Off Ver
    2021
    Posts
    63

    Re: Getting wrong result because of the Cell's format!

    Your way worked, thank you very much for your help,
    only I have one more problem, on the second day, I have in the day field 46..48..etc.

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,569

    Re: Getting wrong result because of the Cell's format!

    Please upload a file that demonstrates the "have in the day field 46..48.." issue.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Result in Cell is Wrong
    By bj in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 07:05 AM
  2. [SOLVED] Result in Cell is Wrong
    By bj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 06:05 AM
  3. [SOLVED] Result in Cell is Wrong
    By bj in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  4. Result in Cell is Wrong
    By Lilbit in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. [SOLVED] Result in Cell is Wrong
    By Lilbit in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  6. [SOLVED] Result in Cell is Wrong
    By Lilbit in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  7. [SOLVED] Result in Cell is Wrong
    By Lilbit in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  8. Result in Cell is Wrong
    By Lilbit in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-23-2005, 01:05 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