+ Reply to Thread
Results 1 to 10 of 10

Sumif problem

  1. #1
    Registered User
    Join Date
    12-01-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    13

    Question Sumif problem

    am I able to have more than 1 column for the range with just 1 criteria and 1 column for sum-range? been at this for hours trying to work this one out. I dont think the sumifs function is much use to me as i only have 1 criteria but i want it to find the criteria from different columns.

    I tried using =SUMIF(A:E,R15,H:H) however this does not work

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,633

    Re: Sumif problem

    Hi

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Sumif problem

    Sumif only allows you to look for one criteria in one column. SumifS works for multiple criteria or multiple columns.

    So now the question is if you want it to sum ONLY if it has this criteria met for all columns or ANY of the columns. As PePe has explained, post a sample workbook and I'm sure you will get a response fairly quickly with a solution.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  4. #4
    Registered User
    Join Date
    12-01-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Sumif problem

    example doc.xlsx

    Hope this is enough info

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Sumif problem

    Those ranges dont exist in your data, and theu are text, not times/values, so you cant use > or < on them just as they are.
    12:00-14:00
    14:00-18:00

    You will need to break the times into their own columns, or create a complext formula to break out the values in both the data and the sum ranges
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Registered User
    Join Date
    12-01-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Sumif problem

    i hope this one is more help on how i tried to do it,

    i made hidden cells to the left of the times to reference the times i needed if you understand what im gettin at

    the only problem i had was, the reason the shifts are a drop down menu is due to shifts changing so based on what i choose in the drop down menu i wanted it to find the right column to reference what i needed to then take the data i needed
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-01-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Sumif problem

    if this is not possible to do this in the way I am trying does anybody have any other ideas on how I could get this data without having to put sum the formula manually as this is going to be a spreadsheet used on a daily basis in which the shifts will be different on a daily basis.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Sumif problem

    If you can modify your data to look likme this, it will make things a lot easier...
    M
    N
    O
    20
    Data
    21
    12:00
    25
    22
    13:00
    35
    23
    14:00
    85
    24
    15:00
    65
    25
    16:00
    45
    26
    17:00
    20
    27
    18:00
    35
    28
    29
    30
    12:00
    14:00
    60
    31
    14:00
    18:00
    215
    32
    15:00
    17:00
    110


    In O30, copied down, I used this...
    =SUMIFS($O$21:$O$27,$M$21:$M$27,">="&M30,$M$21:$M$27,"<"&N30)

  9. #9
    Registered User
    Join Date
    12-01-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Sumif problem

    This is absolutely perfect and will work great I just need to slightly change the worksheet round but it work fantastic.
    Much Appreciated for your help.

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Sumif problem

    happy to help and thanks for the feedback

+ 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. sumif problem
    By Froggyfrench in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-30-2013, 06:58 PM
  2. [SOLVED] SUMIF problem...
    By floxxie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-17-2013, 08:41 AM
  3. SUMIF problem
    By FilipGo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-10-2006, 08:30 AM
  4. SumIf Problem
    By carl in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-18-2005, 02:05 PM
  5. SUMIF Problem
    By Mohammed Zenuwah in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM

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