+ Reply to Thread
Results 1 to 4 of 4

sum range of cells according to condition

  1. #1
    Registered User
    Join Date
    01-31-2019
    Location
    israel
    MS-Off Ver
    10
    Posts
    4

    sum range of cells according to condition

    Hi,

    I want to sum the last X cells according to specific condition,
    for example if A11>0 then sum A1:A10, else sum A2:A10.


    is it possible?

    Thanks!

  2. #2
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: sum range of cells according to condition

    Please Login or Register  to view this content.
    Pete

  3. #3
    Registered User
    Join Date
    01-31-2019
    Location
    israel
    MS-Off Ver
    10
    Posts
    4

    Re: sum range of cells according to condition

    Thanks,

    I want that the number of the cells to sum while be dynamic,
    I mean that if the condition fulfills than it will sum X last cells, and the X number will be set in a different excel sheet.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: sum range of cells according to condition

    We may be in a better position to help if we could see a sample Excel file that illustrates what you are attempting to accomplish.
    Instructions for including an Excel file with your post are given in the "HOW TO ATTACH YOUR SAMPLE WORKBOOK" banner at the top of the page.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] Count value with condition in a range of cells
    By Khalil Handal in forum Excel General
    Replies: 8
    Last Post: 06-15-2021, 02:04 PM
  2. Need help to lookup through each cells in a range based on two condition
    By petroes in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-07-2020, 04:30 AM
  3. msgbox for certain condition being met in range of cells.
    By sameer45 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-23-2015, 01:49 PM
  4. [SOLVED] counting range of cells with condition
    By blexor in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-25-2014, 05:38 PM
  5. [SOLVED] Color cells in Range based on condition.
    By gammaman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-24-2012, 10:27 AM
  6. Excel 2007 : Colorizing a range of cells on a condition
    By furiousfox in forum Excel General
    Replies: 2
    Last Post: 07-28-2009, 10:24 AM
  7. Deleting Specific Range of Cells via Condition
    By Excel Newbie05 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 02-06-2008, 04:44 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