+ Reply to Thread
Results 1 to 2 of 2

Conditionally summing numbers?

  1. #1
    Registered User
    Join Date
    08-04-2018
    Location
    Espoo, Finland
    MS-Off Ver
    2010
    Posts
    1

    Conditionally summing numbers?

    Hi,

    I'm trying to create a function which could inspect a row, check a date on one column and add the number from another column to a sum if the date falls into a given interval.

    For example, let the column X have the dates and the column Y the numbers. And let the condition for the date to be May 2017.

    If, say, X1 has the 3rd of May 2017 and Y1 has the number 4, four should be added to the sum. If X2 has the 12th of July 2018 and Y2 has the number 6, thid row should be ignored and the sum stays the same and so on for the remaining rows.

    How could I implement a function for this purpose? As far as I know, the COUNTIF(S) function(s) aren't quite suited for this problem.

    Thank you for your help!

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

    Re: Conditionally summing numbers?

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    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

+ 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. Replies: 20
    Last Post: 11-02-2017, 01:00 PM
  2. [SOLVED] Conditionally summing if found in list
    By awood04 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-19-2014, 11:57 AM
  3. Counting/Summing cells with the same conditionally formated color
    By becow13 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-20-2012, 02:20 AM
  4. [SOLVED] Conditionally summing two columns
    By Butcher1 in forum Excel General
    Replies: 8
    Last Post: 04-05-2012, 09:58 AM
  5. Conditionally summing data in rows
    By gnw1976 in forum Excel General
    Replies: 6
    Last Post: 10-03-2011, 07:21 PM
  6. Summing values conditionally
    By dupaski in forum Excel General
    Replies: 2
    Last Post: 12-14-2008, 03:07 PM
  7. [SOLVED] Conditionally summing cells based on conditions in other rows
    By Bert in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-20-2006, 06:06 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