+ Reply to Thread
Results 1 to 4 of 4

Using a range to sum 2 other ranges

Hybrid View

  1. #1
    Registered User
    Join Date
    10-09-2015
    Location
    Portland, OR
    MS-Off Ver
    2010
    Posts
    9

    Using a range to sum 2 other ranges

    Hi,

    I am trying to use one range criteria to sum 2 other ranges as follows:

    FUNCTION(RANGE1, CRITERIA, [RANGE2 - RANGE3] )

    SUMIF doesn't seem to allow multiple ranges in the 3rd section. I tried to use 2 consecutive SUMIF statements with a subtraction symbol between them but this counts all the empty cells as well for some reason. There must be an easier way to do this? HELP!

    Thanks,
    Sean

  2. #2
    Registered User
    Join Date
    10-09-2015
    Location
    Portland, OR
    MS-Off Ver
    2010
    Posts
    9

    Re: Using a range to sum 2 other ranges

    Oh, forgot to mention that RANGE2 AND RANGE3 are dates.

    Thx!

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Using a range to sum 2 other ranges

    try sumifs
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    10-09-2015
    Location
    Portland, OR
    MS-Off Ver
    2010
    Posts
    9

    Re: Using a range to sum 2 other ranges

    TRIED SUMIF, I CAN'T MAKE IT WORK.

    Let me explain a little more. What I am trying to get is an average number of days for each person based on a set up date subtracted from a close date.

    So from an excel chart that has multiple people (range1, criteria[persons name]), I ned to subtract the received date (RANGE2) from the closed date (RANGE3) for each project.

    So I have:

    NAME.....DT RECEIVED.....DT CLOSED
    JOE..... 8/10/2017..... 8/20/2017
    PETE..... 8/11/2017..... 8/15/2017
    JOE..... 8/12/2017..... 8/19/2017

    And so on. There are multiple people in this unit and I need to sort based on each person's name, and then have excel perform the subtraction of RANGE2 from RANGE3 for each line with this person's name, and then average the total based on the number of lines. It doesn't seem like it should so hard, but it is totallly escaping me.

    Thanks,
    Sean
    Last edited by Straywire; 08-23-2017 at 03:05 PM.

+ 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] Create one range for different ranges
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-29-2017, 09:42 PM
  2. Setting a Print range for 1 range within multiple ranges
    By DKsmash2014 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-25-2016, 07:33 PM
  3. Selecting ranges in a range
    By stephme55 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-20-2016, 10:15 PM
  4. Match Value in range with value in another range & output third value -vlookup for ranges?
    By tomhardy1491 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-25-2015, 01:24 PM
  5. Creating a new range from two ranges
    By ChemistB in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-26-2011, 11:42 AM
  6. How to get a range from other ranges?
    By bebo021999 in forum Excel General
    Replies: 1
    Last Post: 07-25-2011, 03:48 AM
  7. Creating a Range from two specified Ranges
    By PeterWilliams in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-18-2006, 07:10 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