+ Reply to Thread
Results 1 to 4 of 4

Summing the minimum of two columns

  1. #1
    Registered User
    Join Date
    09-24-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    2

    Summing the minimum of two columns

    Hi,

    I have a very large spreadsheet where I need to find the minimum of each row between 2 columns and then sum those minimums. Basically I want to do the following: sum (min(a1,b1),min(a2,b2)....min(an,bn)). I don't want to add a column that calculates the individual minimums because of the size of the spreadsheet. Any suggestions?

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Summing the minimum of two columns

    For just 2 columns try this "array formula"

    =SUM(IF(A1:A100<B1:B100,A1:A100,B1:B100))

    confirm with CTRL+SHIFT+ENTER

    adjust number of rows as required
    Audere est facere

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Summing the minimum of two columns

    A non-array formula perhaps..

    =SUMPRODUCT(SUBTOTAL(5,OFFSET(A1:B100,ROW(A1:B100)-ROW(A1),0,1)))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Registered User
    Join Date
    09-24-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Summing the minimum of two columns

    Both formulas work!!! Thanks!!!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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