+ Reply to Thread
Results 1 to 20 of 20

Required formulae for sum with multiple conditions

  1. #1
    Registered User
    Join Date
    07-31-2011
    Location
    Pakistan
    MS-Off Ver
    Excel 2019
    Posts
    63

    Required formulae for sum with multiple conditions

    Dear experts,

    I have attached sample data with wanted results. first i tried myself using sumifs formulae but not getting required result.
    that's why i m posting here to get help from the experts.

    i want to search whole data for sumif.

    Thanks
    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 (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,227

    Re: Required formulae for sum with multiple conditions

    Administrative Note:

    Although we value privacy as much you do, it could be important that members have a rough idea of your location as the solutions they offer may be affected by your locale. For instance, you might in the future post questions which are related to your regional settings.

    With this in mind, please update your profile to something more precise (something such as UK, Europe, USA, etc. will suffice).

    Thank you for helping us to help you.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    07-31-2011
    Location
    Pakistan
    MS-Off Ver
    Excel 2019
    Posts
    63

    Re: Required formulae for sum with multiple conditions

    I understand it. Done
    Thanks
    Last edited by AliGW; 07-15-2019 at 04:17 AM. Reason: Please don't quote unnecessarily!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,227

    Re: Required formulae for sum with multiple conditions

    Explain what you are trying to achieve and tell us the results you are expecting and where.

  5. #5
    Registered User
    Join Date
    07-31-2011
    Location
    Pakistan
    MS-Off Ver
    Excel 2019
    Posts
    63

    Re: Required formulae for sum with multiple conditions

    as i mentioned in attached sheet the results i want briefly, let me explain it further here. there r three products CPO, RBDPO & PFAD, I receive and deliver these products to different customers during the month. i actually want to summarize the quantity data of receiving and delivery month wise & party wise.
    hope this helps ?

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,227

    Re: Required formulae for sum with multiple conditions

    Which version of Excel wre you now using? Still 2010?

  7. #7
    Registered User
    Join Date
    07-31-2011
    Location
    Pakistan
    MS-Off Ver
    Excel 2019
    Posts
    63

    Re: Required formulae for sum with multiple conditions

    Yes i m using excel 2010 version

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,227

    Re: Required formulae for sum with multiple conditions

    And do I understand that the subtotals appear in the main table and that you just want to extract these, or are the grey areas NOT meant to exist in the main data table?

  9. #9
    Registered User
    Join Date
    07-31-2011
    Location
    Pakistan
    MS-Off Ver
    Excel 2019
    Posts
    63

    Re: Required formulae for sum with multiple conditions

    these subtotal are part of the main data table but grey areas that is only summing up using simple sumif taking into account of only product condition.
    and i want other main summary data will be month wise including conditions of ( Product wise + Customer wise + Month wise )

  10. #10
    Registered User
    Join Date
    07-31-2011
    Location
    Pakistan
    MS-Off Ver
    Excel 2019
    Posts
    63

    Re: Required formulae for sum with multiple conditions

    i want to create Main short summary data with these three conditions ( ( Product wise + Customer wise + Month wise ) with formulae linked with main data table along with subtotal.
    I am currently in office, sorry for any delay in reply.
    Thanks for ur precious time. i want to speed up my work

  11. #11
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,427

    Re: Required formulae for sum with multiple conditions

    Shouldn't cells C37:C39 contain 01/07/2019, instead of August?

    Would it be correct to assume that you will add new data at the bottom of cells A to K, from row 32 onwards? If so, would it be better to put your summary table on the right, say in column N, or on a new sheet?

    Hope this helps.

    Pete

  12. #12
    Registered User
    Join Date
    07-31-2011
    Location
    Pakistan
    MS-Off Ver
    Excel 2019
    Posts
    63

    Re: Required formulae for sum with multiple conditions

    oh yes it should contain 01-07-2019 instead of 01-08-2019, This represents July-2019 in short summary, my mistake, in creating sample data, i did this my mistake
    Last edited by AliGW; 07-15-2019 at 05:29 AM. Reason: Please don't quote unnecessarily!

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,227

    Re: Required formulae for sum with multiple conditions

    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.

  14. #14
    Registered User
    Join Date
    07-31-2011
    Location
    Pakistan
    MS-Off Ver
    Excel 2019
    Posts
    63

    Re: Required formulae for sum with multiple conditions

    i will create new summary sheet and link it with main data table sheet and yes new data will be entered at the bottom of cells A to K from row 32 onwards

  15. #15
    Registered User
    Join Date
    07-31-2011
    Location
    Pakistan
    MS-Off Ver
    Excel 2019
    Posts
    63

    Re: Required formulae for sum with multiple conditions

    data table will cover whole year & short summary sheet will be different linked with main data table
    so for sure, there will be new data entered from row 32 onwards.

  16. #16
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,427

    Re: Required formulae for sum with multiple conditions

    Okay, see attached file.

    I've simplified your data layout by putting your intermediate (test) tables on the right-hand side (just so you can check the results more easily - they are not required long-term), and closing the data up. There is no need to have blank rows between each set of data, but I have retained these for you.

    I have set up a new sheet called Summary, which has this formula in cell E3:

    =SUMPRODUCT('Recieved & Delivery'!E$4:E$500,('Recieved & Delivery'!$B$4:$B$500=$B3)*(TEXT('Recieved & Delivery'!$D$4:$D$500,"mmm-yy")=$D3))

    This can be copied across and down to suit your layout. I have arranged blank rows between each month's summary, so to cater for new data being added you can just copy the 3 rows of each summary table (e.g. rows 7, 8 and 9) into the next available slot (I've done this to row 11). Then you just need to change the date in the yellow-coloured cell to suit the next month.

    Hope this helps.

    Pete
    Attached Files Attached Files

  17. #17
    Registered User
    Join Date
    07-31-2011
    Location
    Pakistan
    MS-Off Ver
    Excel 2019
    Posts
    63

    Re: Required formulae for sum with multiple conditions

    Pete_UK, Thank u so much, it is working great but it is missing the third condition that is customer/party name. in this case they are
    1. Recieved PM 2. Recieved MH 3. Delivery PM & 4.Delivery MH in summary sheet which should also be linked with the main data table within the range E3 to J3 via in ur given formuale. i tried myself to do it but getting value# error. could u plz assist me to incorporate the third condition.

    Note: more party name could also be added in this range of E3 to J3

  18. #18
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,427

    Re: Required formulae for sum with multiple conditions

    I'm not sure what you mean, as those occur in columns E/F and I/J of the Summary sheet.

    If you want a different layout then please submit a new attachment.

    Hope this helps.

    Pete

  19. #19
    Registered User
    Join Date
    07-31-2011
    Location
    Pakistan
    MS-Off Ver
    Excel 2019
    Posts
    63

    Re: Required formulae for sum with multiple conditions

    Pete_UK thank u so much. everything working fine. this thread is marked solved now. Thanks

  20. #20
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,427

    Re: Required formulae for sum with multiple conditions

    Glad to help - thanks for the rep.

    Pete

+ 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] If formulae with multiple conditions
    By anilpatni1234 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-18-2018, 10:50 AM
  2. Help required with If formulae
    By Reclyc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-12-2016, 08:54 AM
  3. VBA code required to run after checkbox value is true and test multiple conditions.
    By mchilapur in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-10-2015, 08:30 PM
  4. multiple conditions required for formula
    By REDJESS5 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-16-2013, 02:08 PM
  5. [SOLVED] Macro required to delete rows with multiple conditions
    By bigband1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-03-2012, 03:53 AM
  6. Formula required with multiple conditions
    By bakshi.ishan in forum Excel General
    Replies: 3
    Last Post: 10-07-2011, 12:44 PM
  7. Replies: 1
    Last Post: 03-05-2010, 03:00 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