+ Reply to Thread
Results 1 to 19 of 19

Lazy old man needs formula to sum values by month

  1. #1
    Registered User
    Join Date
    01-01-2014
    Location
    Maine
    MS-Off Ver
    Excel 2007
    Posts
    27

    Lazy old man needs formula to sum values by month

    Look I'm old okay? And I am one lazy old man. So hopefully you need a good deed on your list today.

    Screenshot and spreadsheet are attached. Thank you for any help!

    Screenshot - 10_27_2022 , 8_41_01 PM.png
    Attached Files Attached Files
    Last edited by MrBiggy; 10-27-2022 at 09:04 PM.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Lazy old man needs formula to sum values by month

    Hi old man
    could you read big yellow banner at the top of this site?
    and confirm your excel version, still 2007 ?

  3. #3
    Registered User
    Join Date
    01-01-2014
    Location
    Maine
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Lazy old man needs formula to sum values by month

    Hi sandy666! Yes, still v2007. Change is hard in your old age.

    Slight correction in what I wrote in the OP. I really don't need a formula for the "Month" column but would be happy to see one if you would like to provide it. It's probably a better formula than an old man can come up with.
    Last edited by MrBiggy; 10-27-2022 at 09:17 PM.

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Lazy old man needs formula to sum values by month

    One way:

    Please try in F3 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,059

    Re: Lazy old man needs formula to sum values by month

    Try this: F3=SUMPRODUCT($B$3:$B$10*($A$3:$A$10>=G3)*($A$3:$A$10<=EOMONTH(G3,0))), copy down.

  6. #6
    Registered User
    Join Date
    01-01-2014
    Location
    Maine
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Lazy old man needs formula to sum values by month

    Thank you HansDouwe. But the result in F3 is 186.00. It should be 685.33. It is apparently picking up the 186.00 value on 3/10/2023 of the Input table, but not the 499.33 value on 3/24/2023.

  7. #7
    Registered User
    Join Date
    01-01-2014
    Location
    Maine
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Lazy old man needs formula to sum values by month

    Quote Originally Posted by josephteh View Post
    Try this: F3=SUMPRODUCT($B$3:$B$10*($A$3:$A$10>=G3)*($A$3:$A$10<=EOMONTH(G3,0))), copy down.
    Thank you josephteh! It worked! BIG thank you!

    You folks are fantastic. Thank you to all!
    Last edited by MrBiggy; 10-27-2022 at 09:49 PM.

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Lazy old man needs formula to sum values by month

    Quote Originally Posted by MrBiggy View Post
    Yes, still v2007. Change is hard in your old age.
    that's why I shut up good luck

  9. #9
    Registered User
    Join Date
    01-01-2014
    Location
    Maine
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Lazy old man needs formula to sum values by month

    Quote Originally Posted by sandy666 View Post
    that's why I shut up good luck
    Haha! Well it worked!

    Okay... I got the Month column formula in the Output table to work, so I don't need that.

    Everything seems to be working after I adapted the formula josephteh posted to my larger spreadsheet. GREAT JOB!

    But I have one more modification I will have to make in the formula in the Total column on the output table. Tomorrow I'll modify the spreadsheet I posted here to include another column on the Input table so I can ask the question.

    Thanks again for all the great help!
    Last edited by MrBiggy; 10-27-2022 at 11:20 PM.

  10. #10
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Lazy old man needs formula to sum values by month

    G3 will be 1st day of month, formatted as "mmm-yy"
    Please Login or Register  to view this content.
    F3:
    Please Login or Register  to view this content.
    IFERROR to turn 0 into blank. Use SUMIFS only if you want 0 instead of blank
    Drag both down
    Quang PT

  11. #11
    Registered User
    Join Date
    01-01-2014
    Location
    Maine
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Lazy old man needs formula to sum values by month

    Thank you bebo021999!

    Sorry about that. I edited my previous post after I no longer needed the formula for that column. As a matter of fact I came up with the same formula you posted and it worked! Just goes to show you that even a blind squirrel finds a nut sometimes!

    But thank you and you also came up with some good ideas for me to make some improvements. Nice work!
    Last edited by MrBiggy; 10-27-2022 at 11:27 PM.

  12. #12
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,428

    Re: Lazy old man needs formula to sum values by month

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    My formula also returns 685.33 in F3. See attachment

  13. #13
    Registered User
    Join Date
    01-01-2014
    Location
    Maine
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Lazy old man needs formula to sum values by month

    Okay! I modified the Excel file to include another question and posted it with a screenshot below.

    Can you modify the formula in Column F of the Output table so that it will only include rows that have "Joe" in the Person column of the Input table?

    The new Tables...
    Screenshot - 10_28_2022 , 12_08_36 AM.png
    Last edited by MrBiggy; 10-28-2022 at 12:14 AM.

  14. #14
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Lazy old man needs formula to sum values by month

    G3:
    Please Login or Register  to view this content.

  15. #15
    Registered User
    Join Date
    01-01-2014
    Location
    Maine
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Lazy old man needs formula to sum values by month

    First to HansDouwe ...
    Thank you for following up on this. I am sure you are right. I must have made an error and offer my apologies. When I get a chance I will try your formula again to see if I can find out what I did wrong. Thanks for the great work... and you got it so fast!

    bebo021999 what can I say. Another bullseye! The SUMIFS() function was one I was originally using for this spreadsheet I am working on but could not put everything together the way you did and my results were slightly off. But you NAIILED IT! I already modified the spreadsheet to adapt elements of all the formulas everyone posted here and it is now working perfectly.

    So once again I want to thank all who responded.... such great answers all around! Now I go to sleep not only as an old man but as a HAPPY old man!

    Thanks again all!

  16. #16
    Registered User
    Join Date
    01-01-2014
    Location
    Maine
    MS-Off Ver
    Excel 2007
    Posts
    27

    Thumbs up Re: Lazy old man needs formula to sum values by month

    HansDouwe

    Ahhhh! I see what went wrong. I was in a hurry when I posted this request and needed something fast. So I didn't really look at the formulas posted or try to interpret them. I just plugged them in and tried them. Since you did not mention it when you posted the formula you gave, I did not realize it was an array formula and just entered it as a regular formula. So it did not work properly. Sorry about that. But now when I enter it as an array formula it does indeed work.

    I wanted to come back here now that I had a moment to look and see what went wrong and to thank you again because you are the one who posted the first working solution and deserve the credit for that! Thank you for your excellent work! 
    Last edited by MrBiggy; 10-29-2022 at 11:17 AM.

  17. #17
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,059

    Re: Lazy old man needs formula to sum values by month

    MrBiggy, are you sure you are still using Excel 2007? I don't recall there is SUMIFS function in Excel 2007!

  18. #18
    Registered User
    Join Date
    01-01-2014
    Location
    Maine
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Lazy old man needs formula to sum values by month

    Yes josephteh, still using Excel 2007. It supports SUMIFS. I have used them many times. Great function!

  19. #19
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,059

    Re: Lazy old man needs formula to sum values by month

    Oh.. that's great! Thank you for your reply.

+ 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] Lazy caterer's sequence
    By CVDom in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 08-21-2023, 03:07 PM
  2. [SOLVED] Formula to sum values according to the month they're in
    By LCA_ in forum Excel Formulas & Functions
    Replies: 23
    Last Post: 01-19-2018, 05:15 AM
  3. MsgBox is lazy or disobedient
    By Sidewinder72 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-11-2015, 11:03 PM
  4. [SOLVED] Formula to add values that fall in a Month
    By bouncingbudha in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-02-2015, 11:33 PM
  5. I'm lazy. There has to be a faster way to pull data & cross reference a worksheet, right?
    By colleendeborah in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-28-2013, 07:52 PM
  6. lazy gits
    By martindwilson in forum The Water Cooler
    Replies: 91
    Last Post: 02-11-2013, 05:35 AM
  7. [SOLVED] Simple question I'm too lazy to answer but still need some help on
    By Zerex71 in forum Excel General
    Replies: 3
    Last Post: 07-21-2006, 05:20 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