+ Reply to Thread
Results 1 to 5 of 5

Formula to add cells based on criteria

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Formula to add cells based on criteria

    Hello:

    Please refer to attached file.
    I have monthly data as shown in Sheet1.
    Pls refer to sheet2.
    Depening on value in cell c1 (month #), i need formula in in cell D3 and D4 to add 3 months of data for items listed in column A.

    I have shown manually entered result.

    Let me know if you have any questions.
    Thanks.
    Riz
    Attached Files Attached Files

  2. #2
    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,647

    Re: Formula to add cells based on criteria

    In D3 copied down:

    =SUM(OFFSET(Sheet1!$K5,0,0,MATCH(Sheet2!$A$3,Sheet1!$J$5:$J$6,0),C$1))
    Last edited by AliGW; 07-14-2018 at 03:05 AM.
    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.

  3. #3
    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,647

    Re: Formula to add cells based on criteria

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

  4. #4
    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
    44,000

    Re: Formula to add cells based on criteria

    A non-volatile alternative...

    =SUM(Sheet1!K5:INDEX(Sheet1!K5:V5,,Sheet2!$C$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

  5. #5
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Formula to add cells based on criteria

    Hello Ali:

    Thanks, its works great

    Riz

+ 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. Formula/Macro that populates cells based on criteria
    By adroit233 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-21-2015, 05:49 AM
  2. Formula to highlight cells based on multiple criteria and sheets.
    By cascencio83 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-16-2015, 10:18 PM
  3. Replies: 3
    Last Post: 06-17-2014, 01:13 PM
  4. [SOLVED] Formula Needed to count a range of cells based on criteria in 2 other cells
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-01-2013, 04:06 PM
  5. Solved: Formula to total # of cells based on criteria
    By bbarrene in forum Excel General
    Replies: 9
    Last Post: 02-28-2011, 01:53 PM
  6. Replies: 8
    Last Post: 12-08-2009, 11:16 AM
  7. Formula to sum cells based on specific criteria
    By Socrates in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 09-26-2009, 11:27 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