+ Reply to Thread
Results 1 to 4 of 4

Formula to add 2015 and formula to add specefic months

  1. #1
    Registered User
    Join Date
    12-28-2009
    Location
    Dubai
    MS-Off Ver
    Excel 2003
    Posts
    28

    Formula to add 2015 and formula to add specefic months

    Dear All,

    I need help please. In the attached file, can someone please help me with formulas for the following:

    1- A formula that adds column G for cells in column H containing 2015 only given that I cannot change the format of the cells of column H.
    2- A formula that adds column G for cells in column H for months from 2.2015 to 6.2015 only given that I cannot change the format of the cells of column H.

    Many thanks and appreciate your help.

    Nasser
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,737

    Re: Formula to add 2015 and formula to add specefic months

    This will give you the answer to 1:

    =SUMPRODUCT(--(RIGHT(F2:F25,4)="2015"),G2:G25)

    and this one for 2:

    =SUMPRODUCT((F2:F25>2)*(F2:F25<7)*(RIGHT(F2:F25,4)="2015"),G2:G25)

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    12-28-2009
    Location
    Dubai
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Formula to add 2015 and formula to add specefic months

    Thanks very much. this is very helpful Pete.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,737

    Re: Formula to add 2015 and formula to add specefic months

    You're welcome - glad to help.

    If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, you might like to click on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you).

    Pete

+ 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] Formula to calculate years of service for next year (2015)
    By Kimston in forum Excel General
    Replies: 4
    Last Post: 12-03-2014, 04:48 AM
  2. Replies: 2
    Last Post: 07-22-2014, 02:15 AM
  3. Replies: 8
    Last Post: 02-20-2014, 05:46 PM
  4. Replies: 0
    Last Post: 04-13-2012, 03:10 AM
  5. [SOLVED] Average - 3 months / 6 months trend line ( array formula? )
    By ccernat in forum Excel General
    Replies: 3
    Last Post: 04-04-2012, 06:24 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