+ Reply to Thread
Results 1 to 7 of 7

date format problem and SUMIF() is not working date criteria

  1. #1
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    date format problem and SUMIF() is not working date criteria

    Hi all,
    i import a file from system and i want to change date column format in different way using custom and other but there is no change in date format, why?
    i am using a formula to get item Qty,=SUMIF($A$2:$E$331,G2,$E$2:$E$331) but result is not OK, my july month end of last transaction 27/7/2017 and g2=31/7/2017, July-2017 formula is calculating 27/7/2017 not 31/7/2017. next columns is also required to filled by formula. i am also using SUMIF next columns.
    Thanks.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    03-19-2019
    Location
    London
    MS-Off Ver
    2003-2016/2016 Mac
    Posts
    57

    Re: date format problem and SUMIF() is not working date criteria

    First of all, you need to convert text into date in Column A. This can be achieved by following steps:

    Select Column A
    Go To Data > Data Tools > Text to Columns > Next > Next >
    Column Data Format : Date (DMY) > Finish.

    Then put the following Formula in Cell H2 and drag Down:
    Please Login or Register  to view this content.
    -Given that you will always enter last day of the month in Column G.

    Further, It was not clear, how and what you want to achieve in other cells.

  3. #3
    Registered User
    Join Date
    03-19-2019
    Location
    London
    MS-Off Ver
    2003-2016/2016 Mac
    Posts
    57

    Re: date format problem and SUMIF() is not working date criteria

    If I guess it right, you want to sum all those entries whose first three letters (e.g., MD-) coincide with the heading. For this, use this formulae in Cell I2 and drag across

    Please Login or Register  to view this content.
    Attaching the file:

    Date-Wise-Record.xlsx

  4. #4
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Re: date format problem and SUMIF() is not working date criteria

    Dear Saqib,
    Thanks for the reply,first issue date problem is solved. i attached new sheet for desired result.
    cell L2 =SUMIFS($E:$E,$A:$A,"<="&$G2,$A:$A,">="&DATE(YEAR($G2),MONTH($G2),1),$B:$B,LEFT(I$1,3)&"*") for sum item qty MD result is not OK so i mention it by manually in cell F2 because MD + BI total with equal to Total Qty of july-2017 cell H2.
    rest of column i entered value i required. if you have query of it please ask me.
    Thanks
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Re: date format problem and SUMIF() is not working date criteria

    i am using to calculate count value if Item by this formula,
    =COUNTIFS($C:$C,LEFT(J$1,2),$A:$A,"<="&$H2,$A:$A,">="&DATE(YEAR($H2),MONTH($H2),1)), with additional column so i want to apply it direct on column B then this formula is not working. why?
    =COUNTIFS($B:$B,LEFT(J$1,2),$A:$A,"<="&$H2,$A:$A,">="&DATE(YEAR($H2),MONTH($H2),1))
    can anybody help me for this.
    snap is attached for you.
    Thanks.
    Attached Images Attached Images

  6. #6
    Registered User
    Join Date
    03-19-2019
    Location
    London
    MS-Off Ver
    2003-2016/2016 Mac
    Posts
    57

    Re: date format problem and SUMIF() is not working date criteria

    Your Condition says this:-
    "If the content in B Column is Equal to Left 2 Charters of J2, Count it."
    But Content in B Column is not just two characters of J2, it is 2 Characters of J2 followed by some other characters.

    You need to feed that in the formulae. Note in the formula I mentioned I used left formulae with "& "*"" that means anything can follow these two characters. Got it?

  7. #7
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Re: date format problem and SUMIF() is not working date criteria

    Thanks Saqib Qureshi,
    Thank a lot to explained me.

+ 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] Conditional Format when date is x amount past today's date with two criteria
    By L plates in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-27-2018, 09:27 AM
  2. [SOLVED] Sumif referencing another cell for criteria (date and time format)
    By Baldowsky in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-23-2014, 05:01 AM
  3. Advanced filter by date range, international date format problem
    By Senator685 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-21-2013, 08:16 AM
  4. [SOLVED] SUMIF/SUMIFS not working using Date fields as criteria
    By waynees in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-08-2013, 09:24 AM
  5. Replies: 1
    Last Post: 09-30-2012, 03:01 PM
  6. Problem with Sumif matching date format
    By faxmebeer in forum Excel General
    Replies: 2
    Last Post: 11-19-2010, 03:54 PM
  7. [SOLVED] the date format is not working ,sort by date doesn't work.
    By Rosa Campos in forum Excel General
    Replies: 1
    Last Post: 09-12-2005, 06: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