+ Reply to Thread
Results 1 to 6 of 6

Find values bigger than and sum the resulting difference

  1. #1
    Registered User
    Join Date
    12-25-2015
    Location
    GREECE
    MS-Off Ver
    2007
    Posts
    31

    Question Find values bigger than and sum the resulting difference

    Hello everyone,
    I need your help once again.
    I searched, tried countif sumif etc but could not find a way to join fomulas for the desired resault.
    I have a row that contains numbers (these are hours)

    I need in the last cell a formula that
    finds the numbers bigger than 10 and give me the sum of those differences.
    In this example it should be the number 6
    9 8,5 12 10 14
    Number 12 and number 14 exceeds number 10 and sums 2+4=6
    Is this possible?
    Thank you very very much.
    Last edited by alkiviadi; 05-17-2023 at 02:36 PM. Reason: SOLVED

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Find values bigger than and sum the resulting difference

    What row? How many numbers?

    Try this, assuming 6 numbers in row 1. You can put this formula in G1, then move it into any column to accommodate the necessary amount of data.

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Values as displayed
    A
    B
    C
    D
    E
    F
    G
    1
    9
    8
    5
    12
    10
    14
    6

    Underlying formulas
    A
    B
    C
    D
    E
    F
    G
    1
    9
    8
    5
    12
    10
    14
    =SUMIF(A1:OFFSET(G1,0,-1),">10")-10*COUNTIF(A1:OFFSET(G1,0,-1),">10")
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Find values bigger than and sum the resulting difference

    Try =SUMPRODUCT((A1:F1>10)*(A1:F1-10))

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Find values bigger than and sum the resulting difference

    Or another one:

    1) SUMIFS() to sum all values greater than 10 SUMIFS(A1:A5,A1:A5,">10")
    2) COUNTIFS() to determine how many are greater than 10 COUNTIFS(A1:A5,">10")
    3) The end result is equivalent to the modulo of the sum and the count times 10 =MOD(SUMIFS(...),10*COUNTIFS(...))
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Registered User
    Join Date
    12-25-2015
    Location
    GREECE
    MS-Off Ver
    2007
    Posts
    31

    Re: Find values bigger than and sum the resulting difference

    Quote Originally Posted by 63falcondude View Post
    Try =SUMPRODUCT((A1:F1>10)*(A1:F1-10))
    It worked. I'm so excited. I love excel.
    Thank you.
    Have a nice day.

  6. #6
    Registered User
    Join Date
    12-25-2015
    Location
    GREECE
    MS-Off Ver
    2007
    Posts
    31

    Re: Find values bigger than and sum the resulting difference

    Thank you all.

+ 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. Find the difference between the values in two pivot tables
    By CivicPiano in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 10-05-2021, 05:53 PM
  2. Find the difference between the values in two pivot tables
    By CivicPiano in forum Excel General
    Replies: 0
    Last Post: 10-05-2021, 05:53 PM
  3. [SOLVED] Compare times between two sheets and delete rows when time difference is bigger than 4 sec
    By thorblow in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-11-2021, 04:55 PM
  4. Formula to find difference between two values
    By xcentriq in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-25-2017, 11:22 AM
  5. Replies: 1
    Last Post: 04-09-2014, 12:30 PM
  6. Column of incrementing values, find difference.
    By Lectrician in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-08-2012, 04:17 PM
  7. Replies: 1
    Last Post: 03-25-2005, 01:06 PM

Tags for this Thread

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