+ Reply to Thread
Results 1 to 6 of 6

Put value in correct month

  1. #1
    Registered User
    Join Date
    03-15-2018
    Location
    London
    MS-Off Ver
    365
    Posts
    24

    Put value in correct month

    Dear all,

    I am trying to add the correct value in the correct year and month.

    I have already put in the answers in but would be great to get in a formula

    Many thanks in advance

    Rob
    Attached Files Attached Files

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

    Re: Put value in correct month

    Sorry for off-topic interjection:

    Although there is no official rule regarding this behavior, we request that wherever possible both the question AND the answer be provided in substantive detail here within the thread. An attached workbook is an excellent aid for posing a question and offering a solution, but solely doing that with no in thread explanation makes it difficult for researchers to understand or consider the Q & A of this thread without downloading what may be a pointless doc to them, if they can do that at all. Doing that also hides the content from search engines so others may never benefit from this.

    I'm sure you understand, and we look forward to seeing you post your formulas/macros in your posts for the searching benefit of all.

    Thanks again for all your hard work here!

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Put value in correct month

    In G4:

    =SUMIFS($C:$C,$D:$D,$F4,$B:$B,">="&G$3,$B:$B,"<"&EDATE(G$3,1))
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

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

    Re: Put value in correct month

    In G4 copied across and down:

    =SUMIFS($C$5:$C$19,$B$5:$B$19,">="&G$3,$B$5:$B$19,"<="&EOMONTH(G$3,0),$D$5:$D$19,$F4)
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Put value in correct month

    Or... if you don't like all those distracting zeros:

    =IFERROR(1/(1/SUMIFS($C:$C,$D:$D,$F4,$B:$B,">="&G$3,$B:$B,"<"&EDATE(G$3,1))),"")
    Attached Files Attached Files

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

    Re: Put value in correct month

    Ditto:

    =IFERROR(1/(1/SUMIFS($C$5:$C$19,$B$5:$B$19,">="&G$3,$B$5:$B$19,"<="&EOMONTH(G$3,0),$D$5:$D$19,$F4)),"")

+ 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. MONTH Function not returning correct MONTH
    By jgray in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-26-2016, 03:21 PM
  2. [SOLVED] Month function not returning/reading correct month
    By D-smoke in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-03-2016, 07:04 AM
  3. [SOLVED] Month formula not calculating correct
    By hkyomha in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-13-2014, 03:04 PM
  4. [SOLVED] Vlookup or VBA to get correct week No for Month
    By nironto in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-18-2013, 05:31 AM
  5. Getting correct date for day of month
    By kestrel10 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-31-2012, 08:55 AM
  6. how to match up a number with the correct month?
    By katharil in forum Excel General
    Replies: 3
    Last Post: 01-19-2012, 11:54 AM
  7. Rolling up to the correct Month Dilemma
    By salooha in forum Excel General
    Replies: 0
    Last Post: 02-09-2006, 05:18 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