+ Reply to Thread
Results 1 to 12 of 12

sumifs multiple conditions stuck

  1. #1
    Forum Contributor
    Join Date
    09-08-2011
    Location
    Leicester, England
    MS-Off Ver
    Excel 2007
    Posts
    157

    sumifs multiple conditions stuck

    I currently have a formula that reads in a date range, start and end then in that date range add up the total cores then display for the date range, then against either silo's 1,2,3,4,5 totals the amount of cores for each.

    M= cores
    I = Start date
    K= End date
    L = Silo
    X12= date start
    X13 = date end
    X14= Silo

    Please Login or Register  to view this content.
    Sum works fine, what I want to do now is adapt is so that I have another column called priorities, it has the value 1,2,3, I want it to sum the cores for the silo if it has priority 1,2,3 which is in column H. or I can call it in a cell aswell which is fine.

    Any help appreciated deeply!
    Last edited by kieranbop; 10-31-2011 at 06:30 AM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: sumifs multiple conditions stuck

    Maybe
    Please Login or Register  to view this content.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Forum Contributor
    Join Date
    09-08-2011
    Location
    Leicester, England
    MS-Off Ver
    Excel 2007
    Posts
    157

    Re: sumifs multiple conditions stuck

    it will add some and not the rest assuming that the <"&3 means priority 3

    It might be easier for it to like where it reads input for silo in x14, read input for priority in x15

    so I would input like:

    1/1/2011 - START
    17/12/2011 - End
    Silo 1 - Silo
    1 - Priority

    tells me all cores which ***1*** priority
    Last edited by kieranbop; 10-28-2011 at 06:44 AM.

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: sumifs multiple conditions stuck

    Sorry that should have been "<="&3, hence returning all priority values 1, 2, 3 and excluding any other priority value.
    .....if it has priority 1,2,3 which is in column H .....
    Can you post a sample workbook so that we can see your problem more clearly?

  5. #5
    Forum Contributor
    Join Date
    09-08-2011
    Location
    Leicester, England
    MS-Off Ver
    Excel 2007
    Posts
    157

    Re: sumifs multiple conditions stuck

    sample attached, but I wanted to instead of say if they are between range of 0 & 3

    their either
    priority 1
    priority 2
    priority 3

    depending on the silo picked if possible.

    thanks again
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    09-08-2011
    Location
    Leicester, England
    MS-Off Ver
    Excel 2007
    Posts
    157

    Re: sumifs multiple conditions stuck

    =SUMIFS(M:M,I:I,">="&J27,I:I,"<="&J28,K:K,"<="&J28,L:L,J29,H:H,J30)

    I got this in, it will sum the majority of things on a certain silo with whatever priority they have, just not all of it?
    Last edited by kieranbop; 10-31-2011 at 04:43 AM.

  7. #7
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: sumifs multiple conditions stuck

    I'm still not sure what you are trying to do, see if this workbook has what you need.

    [EDIT 1]
    Not sure why I didn't see your last post.
    Your sample file is 2003 or earlier, but your formula using SUMIFS() will only work in 2007+

    This suggestion was based on using 2003

    [EDIT 2]
    What is this meant to do?
    =SUMIFS(M:M,I:I,">="&J27,I:I,"<="&J28,K:K,"<="&J28,L:L,J29,H:H,J30)
    I can't see the logic in it, can you explain in words what you are trying to do?
    Attached Files Attached Files
    Last edited by Marcol; 10-31-2011 at 05:56 AM.

  8. #8
    Forum Contributor
    Join Date
    09-08-2011
    Location
    Leicester, England
    MS-Off Ver
    Excel 2007
    Posts
    157

    Re: sumifs multiple conditions stuck

    Please Login or Register  to view this content.

    this sum Calculates the amount of cores on a silo between a start and enddate range. All that I need to do is edit that sum so that it:

    Calculates the amount of cores, on a silo, between the start and end date range if it is either priority 1 then show amount, 2 then show amount, 3 then show amount.

    So say X15 I would either have 1,2,3 in their, and it sums based on priority between silo's.

    that make any more sense to you? and Thanks for your previous post, another good way I could display data.

  9. #9
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: sumifs multiple conditions stuck

    See if this is better.

    It could be simplified if you don't need it to work with pre 2007 versions of Excel
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    09-08-2011
    Location
    Leicester, England
    MS-Off Ver
    Excel 2007
    Posts
    157

    Re: sumifs multiple conditions stuck

    thats great, does what I need to but is their any chance I could pester you once more.


    On the sample book, where I've just put the 4 details, where I can change what I want etc, Could you put the formula in their, instead of the table format as I want to map it onto a userform I have, if possible?

    Thanks alot
    K
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    09-08-2011
    Location
    Leicester, England
    MS-Off Ver
    Excel 2007
    Posts
    157

    Re: sumifs multiple conditions stuck

    Please Login or Register  to view this content.
    got it now, thanks for all your help marcol.

  12. #12
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: sumifs multiple conditions stuck

    Okay.

    I can see problems with putting your formula below your data table, why not put it in some spare column(s)?

    Several of your dates are in fact strings that look like dates, these should be converted to serial dates if any formula is to give the correct result.

    Try selecting each date column one at a time then use Text to Columns.

    Delimited > Next > Next ... Select Date "DMY" from the dropdown > Finish.

    By formatting these columns horizontal alignment > center you are masking this problem, although in this case you can still see some "dates" are out of line.
    Best to never to align dates "center", then any errors are easily seen.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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