+ Reply to Thread
Results 1 to 5 of 5

Sum depending on the value

  1. #1
    Registered User
    Join Date
    04-27-2020
    Location
    Istanbul
    MS-Off Ver
    2016
    Posts
    41

    Sum depending on the value

    Hi, how can I make a calculation depending on the value? I attached an example file, there are piles between 0-36 meters, I need SUM of 0-18 meters and 18-36 meters seperately, any way to do this?
    Attached Files Attached Files

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,767

    Re: Sum depending on the value

    F
    G
    H
    I
    5
    Production
    0-18
    18-36
    Total
    6
    63
    368
    431.00


    F
    G
    H
    I
    5
    Production
    0-18
    18-36
    Total
    6
    =SUMIFS($D$4:$D$20,$B$4:$B$20,">="&LEFT(G5,FIND("-",G5)-1),$B$4:$B$20,"<="&MID(G5,FIND("-",G5)+1,10))
    =SUMIFS($D$4:$D$20,$B$4:$B$20,">="&LEFT(H5,FIND("-",H5)-1),$B$4:$B$20,"<="&MID(H5,FIND("-",H5)+1,10))
    =D21


    You have to decide that it is should be <= / >= or sharp </> as 18 is on both ranges.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Registered User
    Join Date
    04-27-2020
    Location
    Istanbul
    MS-Off Ver
    2016
    Posts
    41

    Re: Sum depending on the value

    Thank you, that's the solution.

  4. #4
    Registered User
    Join Date
    04-27-2020
    Location
    Istanbul
    MS-Off Ver
    2016
    Posts
    41

    Re: Sum depending on the value

    Hi, I think my messages are not being delivered, I don't see anything at my Sent Items, I asked you something I didn't understand about the formula.

  5. #5
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,767

    Re: Sum depending on the value

    I've got msg on PM.
    EDIT: replied.
    Last edited by KOKOSEK; 11-30-2020 at 09:32 AM.

+ 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. VBA - depending on other VBA?
    By horsefish01 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-03-2015, 04:37 PM
  2. Sum depending on other criteria
    By mark0123 in forum Excel General
    Replies: 1
    Last Post: 01-09-2015, 04:55 AM
  3. Insert formula depending on cells depending of variables
    By elmexicano87 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-29-2014, 01:22 PM
  4. sum depending on other value
    By sjieez in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-20-2012, 06:37 PM
  5. Getting cells to add depending on what you put beside them.
    By Ottoexcel in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-24-2012, 05:58 PM
  6. sum of one column depending on the other one.
    By gazamanga in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 04-05-2010, 01:16 PM
  7. add and subtract depending
    By caldera55 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-26-2008, 09:32 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