+ Reply to Thread
Results 1 to 12 of 12

SUMIFS Help - returning 0.00 instead of the necessary total

  1. #1
    Forum Contributor
    Join Date
    08-10-2015
    Location
    Sarasota, FL
    MS-Off Ver
    MS 365
    Posts
    77

    SUMIFS Help - returning 0.00 instead of the necessary total

    Formulas really challenge me, I see them as mathematical and I'm terrible at math! I have researched and tried numerous different variations of this formula and none of them are working.

    In the attached spreadsheet there are two versions listed of the formula I am working on:

    =SUMIFS('1 Data'!$H:$H,'1 Data'!F:F,'Monthly 2015'!A20,'1 Data'!$E:$E,">='Monthly 2015'!C17",'1 Data'!E:E,"<=,'Monthly 2015'!C18")

    The above formula is located in C20, the variation is in D20 - neither work, and they should both return a 2.0 in their respective cells. I only need one that works for all of the cells highlighted in burnt orange.

    Using the data in the 1 Data Sheet I am trying to sum up the total hours for the client listed in A between two dates (C17 and C18), then go to the next cell (D20) and do the same thing for the next set of dates (weekly dates).

    I've been doing this by grouping on the data page (a data page for each week) and then =cell with weekly total for that client - VERY MANUAL and TEDIOUS!

    I want to make it a little more automated, I'll still need to do some manual stuff, but if it can enter each week's totals on it's own, that would be great. I've spent several hours researching and trying to figure out what I did wrong - can someone help?

    The report format is the format I HAVE to turn in so I cannot change the format....row 17 will actually be formatted so that you cannot see the dates when printed - I only added them because changing row 18 to a date range was not working either), but row 18 does need the dates, it's part of the report.

    The data format is the way the data comes out of my software and I cannot change it either.

    I would also LOVE to be able to total the dollar amount (C37-G37) for each week from '1 Data'!I:I (G is used 4 times a year when I have 5 weeks in the billing cycle)

    Any assistance would be GREATLY appreciated
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: SUMIFS Help - returning 0.00 instead of the necessary total

    Two issues,
    One
    In your formula, for your > and < values, you put the Cell ID inside the quotes. It's looking for text, not for whatever is in C20 (for example). Use the ambersand (&) to concatenate instead. Thus it will be something like

    =SUMIFS('1 Data'!$H:$H,'1 Data'!F:F,'Monthly 2015'!A20,'1 Data'!$E:$E,">="&'Monthly 2015'!C17,'1 Data'!E:E,"<="&'Monthly 2015'!C18)

    TWO
    Your values in '1 Data'! Column E are not numbers, they are text. To fix this, in J2 copied down (you can hide this if you like)

    =TRIM(LEFT(E2, LEN(E2)-3))+0

    Then redirect your formula to look at J instead of E and in C20

    =SUMIFS('1 Data'!$H:$H,'1 Data'!F:F,'Monthly 2015'!$A20,'1 Data'!$J:$J,">="&'Monthly 2015'!C$17,'1 Data'!$J:$J,"<="&'Monthly 2015'!C$18)

    Questions?
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: SUMIFS Help - returning 0.00 instead of the necessary total

    I believe its because you are trying to get Monthly 2015 C17 date to match to 1 Data E:E date. They wont match because one is a date format only and the other is date and time.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  4. #4
    Forum Contributor
    Join Date
    08-10-2015
    Location
    Sarasota, FL
    MS-Off Ver
    MS 365
    Posts
    77

    Re: SUMIFS Help - returning 0.00 instead of the necessary total

    gmr4evr1 - I thought that too and at one point changed the cells in rows 17 and 18 to date / time format - and it still didn't work....at one time it did give me the total over all hours, but not the total for the specific week....probably all a result of what ChemistB pointed out, of the hours being text and not numbers.

    ChemistB - Issue One - I tried that solution and it wasn't working either, probably because of Issue Two.....it's funny that changing column E format to be numbers, it still didn't work - I had to do the solution in column J....very interesting. I'm going to apply this to my master report and see what the outcome is. Will let you know. Thanks!

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: SUMIFS Help - returning 0.00 instead of the necessary total

    Changing cells to number format (or date format) will not automatically convert text to numbers. First, Excel has to recognize the entry as a number (which it doesn't in your case because of the Time Zone on the end) and then it needs a little push (which is the reason my formula has the "+0" in there. It forces Excel to look at what's there and then converts it to a number.)

  6. #6
    Forum Contributor
    Join Date
    08-10-2015
    Location
    Sarasota, FL
    MS-Off Ver
    MS 365
    Posts
    77

    Re: SUMIFS Help - returning 0.00 instead of the necessary total

    That makes sense. Ok, the formula is working, with the exception of typos that have to be fixed between the data and the report.

    Would I basically do the same thing for the dollars without the client name criteria (row 95 on the Monthly 2015 worksheet)? Again, would probably have to convert it to numbers because they are probably text too....

    =SUMIFS('1 Data'!$H:$H,'1 Data'!$K:$K,">="&'Monthly 2015'!C$17,'1 Data'!$K:$K,"<="&'Monthly 2015'!C$18)

    Yes?

  7. #7
    Forum Contributor
    Join Date
    08-10-2015
    Location
    Sarasota, FL
    MS-Off Ver
    MS 365
    Posts
    77

    Re: SUMIFS Help - returning 0.00 instead of the necessary total

    Nope, figured it out...just changed H to I works great.....

    Thank you so very much for your assistance ChemistB

  8. #8
    Forum Contributor
    Join Date
    08-10-2015
    Location
    Sarasota, FL
    MS-Off Ver
    MS 365
    Posts
    77

    Re: SUMIFS Help - returning 0.00 instead of the necessary total

    BLERG

    The formula is not adding the content when the date is equal to the date in C19......>= should take care of that, right?!

  9. #9
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUMIFS Help - returning 0.00 instead of the necessary total

    Probably because the values in column J of 1 Data also contain a TIME value.
    But the Dates you are comparing them to (C18) do NOT have the time values.

    So if you have say 11/1/2015 15:00:00 in Column J
    That is NOT considered <= 11/1/2015

    Try adding 1 to the date in C and using just <

    =SUMIFS('1 Data'!$H:$H,'1 Data'!$K:$K,">="&'Monthly 2015'!C$17,'1 Data'!$K:$K,"<"&'Monthly 2015'!C$18+1)

  10. #10
    Forum Contributor
    Join Date
    08-10-2015
    Location
    Sarasota, FL
    MS-Off Ver
    MS 365
    Posts
    77

    Re: SUMIFS Help - returning 0.00 instead of the necessary total

    Jonmo1 - I knew that time was going to get me at some point.....unfortunately the data out of my software can't be changed, so I am stuck with the time. Adding the +1 worked wonders - didn't seem to matter much if it was < or <=.....at some point it probably will, eh?

    Thanks for your assistance!

    Carol

  11. #11
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUMIFS Help - returning 0.00 instead of the necessary total

    You're welcome.

    Quote Originally Posted by CHillFL View Post
    didn't seem to matter much if it was < or <=.....at some point it probably will, eh?
    Yes, it will matter.
    If you ever happen to have a date in column J that has no time or happens to be exactly midnight.
    Then it could be erroneousely counted.

  12. #12
    Forum Contributor
    Join Date
    08-10-2015
    Location
    Sarasota, FL
    MS-Off Ver
    MS 365
    Posts
    77

    Re: SUMIFS Help - returning 0.00 instead of the necessary total

    That's what I figured - I will make sure they are all <

    Thanks again!

+ 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] SUMIFS Not Returning Correct Value
    By dankonstantinos in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-24-2015, 06:18 PM
  2. [SOLVED] SUMIFS Always Returning '0' in Excel
    By dean_of_admissions in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-14-2014, 11:53 AM
  3. [SOLVED] SUMIFS returning #VALUE
    By mglassco in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-06-2013, 06:45 PM
  4. sumif returning correct total while sumifs returns #value
    By mlevitt in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-01-2013, 04:16 PM
  5. SUMIFS returning #VALUE!
    By HarvardMajesty in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 01-27-2013, 10:35 PM
  6. SUMIFS returning #VALUE!
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-08-2011, 08:59 AM
  7. Sumifs Value Returning Problem:
    By pipsturbo in forum Excel General
    Replies: 2
    Last Post: 09-23-2009, 04:39 PM

Tags for this Thread

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