+ Reply to Thread
Results 1 to 5 of 5

Min/Max fuction to calculate difference between two ranges

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    157

    Min/Max fuction to calculate difference between two ranges

    I'm trying to consolidate some of the formulas on a spreadsheet. I have a range of numbers in column A and a range of numbers in column B. Currently in column C, I calculate the difference between columns B and A. In column D, I have a logical function to show if the value in C is the min difference value or the max difference value.

    I would like to get rid of column C altogether and have one formula that calulates the difference between columns B and A and determines if it's the min or max of all the other differences. Is this possible with a CSE function?

    I have attached a sample workbook.
    Attached Files Attached Files
    Last edited by Ricker090; 06-27-2012 at 04:00 PM. Reason: Solved

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,043

    Re: Min/Max fuction to calculate difference between two ranges

    Can't see att but Something like: =IF(MAX(B:B-A:A)=B1-A1, "Max", "")
    Never use Merged Cells in Excel

  3. #3
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    157

    Re: Min/Max fuction to calculate difference between two ranges

    zbor-

    Unfortunately that marks every difference as "Max."

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,043

    Re: Min/Max fuction to calculate difference between two ranges

    Comfirm with ctrl+shift+enter

  5. #5
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    157

    Re: Min/Max fuction to calculate difference between two ranges

    ctrl+shift+enter. Yeah that did it! I always forget to do that.

    Thanks so much.

+ 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