+ Reply to Thread
Results 1 to 18 of 18

SUMIFS with date range and four criteria

  1. #1
    Registered User
    Join Date
    03-27-2019
    Location
    Komarapalayam
    MS-Off Ver
    2016
    Posts
    26

    Post SUMIFS with date range and four criteria

    Hi Friends,

    I have done coding to sumif based date with cross checking of two values.

    I unable sumif the value based other criteria

    So, how to consolidate the value based,

    Column-D(Buyer Name) & Column-Q(Qty Status) & Column-K(Order Qt Qty) with Date Range = Column-B(Order Qty(Next Sheet))

    Column-D(Buyer Name) & Column-Q(Qty Status) & Column-M(Partial Qty)+Column-O(Shipped Qty) with Date Range = Column-C(Short Qty(Next Sheet))

    Column-D(Buyer Name) & Column-Q(Qty Status) & Column-K(Order Qt Qty) with Date Range = Column-D(Order Qty(Next Sheet))

    Column-D(Buyer Name) with Column-Q(Qty Range) & Column-M(Partial Qty)+Column-O(Shipped Qty) with Date Range = Column-E(Full Qty(Next Sheet))

    Column-D(Buyer Name) & Column-Q(Qty Status) & Column-K(Order Qt Qty) with Date Range = Column-F(Order Qty(Next Sheet))

    Column-D(Buyer Name) with Column-Q(Qty Range) & Column-M(Partial Qty)+Column-O(Shipped Qty) with Date Range = Column-G(Excess Qty(Next Sheet))

    Here I enclosed screen shot and coding sheet

    Thanks
    Short & Excess Qty - 1.jpg
    Short & Excess Qty - 2.jpg
    Short & Excess Qty Details.xlsm
    Last edited by nandhavnk; 07-18-2019 at 05:43 AM. Reason: To easy understaning adding column details

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: SUMIFS with date range and four criteria

    Hello nandhavnk,

    Can you post an example of the "Temp" sheet for a single company?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    03-27-2019
    Location
    Komarapalayam
    MS-Off Ver
    2016
    Posts
    26

    Re: SUMIFS with date range and four criteria

    Hello Leith Ross,

    Thanks for your reply.

    Here I enclosed sample screen short & excel sheet what should be present in month sheet(April)

    Tks

    Attachment 632334
    Attachment 632335

  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,780

    Re: SUMIFS with date range and four criteria

    Which version of Excel are you using now? Still Excel 2007?
    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.

  5. #5
    Registered User
    Join Date
    03-27-2019
    Location
    Komarapalayam
    MS-Off Ver
    2016
    Posts
    26
    Hi AligW,

    I m using Excel 2016 version.

    Thanks
    Last edited by AliGW; 07-15-2019 at 03:46 AM. Reason: Please don't quote unnecessarily!

  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,780

    Re: SUMIFS with date range and four criteria

    In that case, please update your forum profile. Thanks.

    Administrative Note:

    Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter. It's OK to quote if you are responding to a post out of sequence, but limit quoted content to a few relevant lines that makes clear to whom and what you are responding. Thanks!

    For normal conversational replies, try using the QUICK REPLY box below.

  7. #7
    Registered User
    Join Date
    03-27-2019
    Location
    Komarapalayam
    MS-Off Ver
    2016
    Posts
    26

    Red face Re: SUMIFS with date range and four criteria

    I updated my excel version in my profile.
    Thanks

  8. #8
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: SUMIFS with date range and four criteria

    Hello nandhavnk,

    Your attachments can be opened. Please try again in your next post.

  9. #9
    Registered User
    Join Date
    03-27-2019
    Location
    Komarapalayam
    MS-Off Ver
    2016
    Posts
    26

    Post Re: SUMIFS with date range and four criteria

    Hello Leith Ross,

    Again I tried some changes myself in code but still not working.

    Enclosed coding and working excel
    Short & Excess Qty Details.xlsm

    Please Login or Register  to view this content.
    Last edited by nandhavnk; 07-18-2019 at 05:44 AM.
    Thanks
    V.Nandhakumar

  10. #10
    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,780

    Re: SUMIFS with date range and four criteria

    You do not need code tags round every line - just at the start and the end of the code snippet. I have amended it for you this time, but please don't do it again. All you need to do is select the entire code snippet and click once on the # icon in the toolbar - that's it.
    Last edited by AliGW; 07-17-2019 at 03:13 AM.

  11. #11
    Registered User
    Join Date
    03-27-2019
    Location
    Komarapalayam
    MS-Off Ver
    2016
    Posts
    26

    Re: SUMIFS with date range and four criteria

    I changed my coding as u said.

    If possible to bring the result as i wrote in my coding.

  12. #12
    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,780

    Re: SUMIFS with date range and four criteria

    I think you need to elaborate on what you want: there have been lots of views of this thread, but no help offered yet, so this means that you need to give more detail.

    Continue here: do NOT start a new thread. Thanks.

  13. #13
    Registered User
    Join Date
    03-27-2019
    Location
    Komarapalayam
    MS-Off Ver
    2016
    Posts
    26

    Post Re: SUMIFS with date range and four criteria

    I understood my coding can’t understand clearly. Here I am explaining little elaborate
    My variables defined as below and coding for sumif names & values

    Please Login or Register  to view this content.
    What I need in new sheet as in below and respective to understand easily.
    Column-D(Buyer Name) & Column-Q(Qty Status) & Column-K(Order Qt Qty) with Date Range = Column-B(Order Qty(Next Sheet))
    Please Login or Register  to view this content.
    Column-D(Buyer Name) & Column-Q(Qty Status) & Column-M(Partial Qty)+Column-O(Shipped Qty) with Date Range = Column-C(Short Qty(Next Sheet))
    Please Login or Register  to view this content.
    Column-D(Buyer Name) & Column-Q(Qty Status) & Column-K(Order Qt Qty) with Date Range = Column-D(Order Qty(Next Sheet))
    Please Login or Register  to view this content.
    Column-D(Buyer Name) with Column-Q(Qty Range) & Column-M(Partial Qty)+Column-O(Shipped Qty) with Date Range = Column-E(Full Qty(Next Sheet))

    Please Login or Register  to view this content.
    Column-D(Buyer Name) & Column-Q(Qty Status) & Column-K(Order Qt Qty) with Date Range = Column-F(Order Qty(Next Sheet))
    Please Login or Register  to view this content.
    Column-D(Buyer Name) with Column-Q(Qty Range) & Column-M(Partial Qty)+Column-O(Shipped Qty) with Date Range = Column-G(Excess Qty(Next Sheet))
    Please Login or Register  to view this content.
    Enclosed screen shot of sum values with two main criteria
    Short & Exces Qty - 03.jpg
    My Coding Sheet attached
    Short & Excess Qty Details.xlsm
    Last edited by nandhavnk; 07-18-2019 at 06:10 AM. Reason: To easy understaning adding column details

  14. #14
    Registered User
    Join Date
    05-16-2019
    Location
    Bratislava
    MS-Off Ver
    2010
    Posts
    4

    Re: SUMIFS with date range and four criteria

    Hello,
    find attached functioning code to your task. It is not the solution you want but with code you should be able to finish your task.

    Please Login or Register  to view this content.


    Best Regards,
    Filip





    If you wish, you can reward me by clicking on my reputation star bottom left.
    Last edited by Fakla; 07-18-2019 at 10:37 AM.

  15. #15
    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,780

    Re: SUMIFS with date range and four criteria

    Administrative Note:

    You need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional.)

    Also, please change the text colour - change it back to black for legibility, please.

  16. #16
    Registered User
    Join Date
    03-27-2019
    Location
    Komarapalayam
    MS-Off Ver
    2016
    Posts
    26

    Re: SUMIFS with date range and four criteria

    Hi Filip,

    Thanks for your reply.

    What I have done in my coding and what expected in my coding is...

    When I select the month in Cell S1 and clicking "Update" Button. Output result will bring in next sheet with sheet name of selected month in Cell S1 which I already format created Sheet as “Temp”
    The specific month range sum give the result to me.
    In my coding the below i have done
    1. “Temp” Sheet coping and name changed to selected month
    2. Column-D Coping and removing duplicates and sorting in alphabet order
    I can’t to find the correct code to the below
    1. Sumifs the values in “Shipment” Sheet with Sum Range(Order Qty in Column-K), Main Criteria Range-1(Buyer Name in Column-D), Criteria-1(Formatted Sheet(ie with Month Name) in Column(A:A), Main Criteria Range-2(Qty Status in Column-Q), Criteria-2(Formatted Sheet(ie with Month Name) in Cell(B1), Start date & End Date with Date range(F.I.Date Column-B)
    2. Sumifs the values in “Shipment” Sheet with Sum Range(Partial Shipped Qty in Column-M)+Sum Range(Shipped Qty in Column-O), Main Criteria Range-1(Buyer Name in Column-D), Criteria-1(Formatted Sheet(ie with Month Name) in Column(A:A), Main Criteria Range-2(Qty Status in Column-Q), Criteria-2(Formatted Sheet(ie with Month Name) in Cell(B1), Start date & End Date with Date range(F.I.Date Column-B)

    This output will come in Formatted Sheet(ie with month name sheet) in the column of B & C

    And for Column D & E output with Criteria-2(Formatted Sheet(ie with Month Name) in Cell(D1)

    And for Column F & G output with Criteria-2(Formated Sheet(ie with Month Name) in Cell(F1)

    I guess myself error may come this area...

    Please Login or Register  to view this content.
    Main Criteria-1 & 2 Ranges from Sourcesheet what i would expect in from this sheet
    Attachment 633337

  17. #17
    Registered User
    Join Date
    03-27-2019
    Location
    Komarapalayam
    MS-Off Ver
    2016
    Posts
    26

    Re: SUMIFS with date range and four criteria

    Hi Filip,

    Thanks for your reply.

    What I have done in my coding and what expected in my coding is...

    When I select the month in Cell S1 and clicking "Update" Button. Output result will bring in next sheet with sheet name of selected month in Cell S1 which I already format created Sheet as “Temp”

    The specific month range sum give the result to me.

    In my coding the below i have done
    1. “Temp” Sheet coping and name changed to selected month
    2. Column-D Coping and removing duplicates and sorting in alphabet order

    I can’t to find the correct code to the below
    1. Sumifs the values in “Shipment” Sheet with Sum Range(Order Qty in Column-K), Main Criteria Range-1(Buyer Name in Column-D), Criteria-1(Formatted Sheet(ie with Month Name) in Column(A:A), Main Criteria Range-2(Qty Status in Column-Q), Criteria-2(Formatted Sheet(ie with Month Name) in Cell(B1), Start date & End Date with Date range(F.I.Date Column-B)
    2. Sumifs the values in “Shipment” Sheet with Sum Range(Partial Shipped Qty in Column-M)+Sum Range(Shipped Qty in Column-O), Main Criteria Range-1(Buyer Name in Column-D), Criteria-1(Formatted Sheet(ie with Month Name) in Column(A:A), Main Criteria Range-2(Qty Status in Column-Q), Criteria-2(Formatted Sheet(ie with Month Name) in Cell(B1), Start date & End Date with Date range(F.I.Date Column-B)

    This output will come in Formatted Sheet(ie with month name sheet) in the column of B & C

    And for Column D & E output with Criteria-2(Formatted Sheet(ie with Month Name) in Cell(D1)

    And for Column F & G output with Criteria-2(Formated Sheet(ie with Month Name) in Cell(F1)

    Hope this will make understandable.

    Please Login or Register  to view this content.
    Main Criteria 1 & 2 and range selection from Sourcesheet as in screenshot
    Short & Excess Qty - 4.jpg

  18. #18
    Registered User
    Join Date
    03-27-2019
    Location
    Komarapalayam
    MS-Off Ver
    2016
    Posts
    26
    Hi all,

    Is possible to get result in my coding or want change it.

    Can anyone suggest 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. SUMIFS for date range (read from a cell) and text criteria not working
    By meny_ in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-03-2019, 06:23 AM
  2. [SOLVED] sumifs with multiple criteria and date range year
    By Gijs in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 10-24-2017, 02:08 AM
  3. [SOLVED] Problem with SUMIFS within date range and one criteria
    By erikku in forum Excel General
    Replies: 3
    Last Post: 04-12-2017, 09:11 PM
  4. [SOLVED] Sumifs with date criteria, but the range includes time with the date
    By Alphabex in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-08-2017, 12:08 AM
  5. Replies: 5
    Last Post: 10-03-2016, 03:39 AM
  6. [SOLVED] SUMIFS + Multi criteria + Date Range
    By eyeope in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-11-2014, 07:43 AM
  7. Replies: 3
    Last Post: 11-21-2012, 04:57 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