+ Reply to Thread
Results 1 to 6 of 6

sumif or sumifs values less than corresponding values in the adjacent column

  1. #1
    Registered User
    Join Date
    08-21-2015
    Location
    texas, usa
    MS-Off Ver
    2007
    Posts
    3

    sumif or sumifs values less than corresponding values in the adjacent column

    Hi,

    I am trying to sum all values in a column less than their corresponding values in other column. Can someone please help me figure out how to formulate this? i have used the function SUMIFS(H3:H72,$D3:$D72,"<"&H3:H72)
    attached a snapshot. Appreciate the forum's help!


    thanks,
    harika
    Attached Images Attached Images

  2. #2
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: sumif or sumifs values less than corresponding values in the adjacent column

    Try,

    =SUMPRODUCT(--($H$3:$H$72>$D$3:$D$72)*($H$3:$H$72))

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: sumif or sumifs values less than corresponding values in the adjacent column

    Hi

    Use the array formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    if data in D2:H54

    Best regards

  4. #4
    Registered User
    Join Date
    08-21-2015
    Location
    texas, usa
    MS-Off Ver
    2007
    Posts
    3

    Re: sumif or sumifs values less than corresponding values in the adjacent column

    Thank you for quick response!

    Berlan, the formula worked well but it returns "#VALUE!" if one of the cells has no value i.e if it's empty. does the function need to be modified to match that? Appreciate your help!

    Jose, the function returns to "#VALUE!". Appreciate your help!

  5. #5
    Registered User
    Join Date
    08-21-2015
    Location
    texas, usa
    MS-Off Ver
    2007
    Posts
    3

    Re: sumif or sumifs values less than corresponding values in the adjacent column

    Thank you for quick response!

    Berlan, the formula worked well but it returns "#VALUE!" if one of the cells has no value i.e if it's empty. does the function need to be modified to match that? Appreciate your help!

    Jose, the function returns to "#VALUE!". Appreciate your help!

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: sumif or sumifs values less than corresponding values in the adjacent column

    Post a SMALL sample file with about 20 rows worth of data and show us what result you expect. Make sure you include all scenarios that you may encounter.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Macro to find all specific values in column and replace adjacent cell values
    By dblock02 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-23-2013, 06:03 AM
  2. [SOLVED] Summing values in one column based on their adjacent values
    By undoubtedlymegz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-07-2013, 04:57 PM
  3. [SOLVED] Need Urgent help on Adjacent values of Duplicate column values should be be in single row.
    By anto_01 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-11-2012, 09:55 PM
  4. Replies: 0
    Last Post: 09-06-2012, 04:06 AM
  5. Replies: 3
    Last Post: 07-30-2012, 11:20 AM
  6. SUMIF - add values from one column based on values in two other columns
    By goodmike in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-30-2008, 08:04 PM
  7. Replies: 4
    Last Post: 01-29-2008, 08:40 AM
  8. Replies: 6
    Last Post: 03-04-2006, 07:30 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