+ Reply to Thread
Results 1 to 5 of 5

SumIF and MedianIF Help

  1. #1
    Registered User
    Join Date
    01-12-2016
    Location
    New York
    MS-Off Ver
    2015
    Posts
    76

    SumIF and MedianIF Help

    I've attached my worksheet.

    I'm trying to sum the prices as well as find the Median Price.

    Basically I want to sum and find the median for the below two conditions

    If the "Contract Price" column is blank I want the "Current Price" column to be used in the formula
    If the "Contract Price" column is filled in I want the "Contract Price" column to be used in the formula
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: SumIF and MedianIF Help

    I didn't do the math to check, but try:

    SUM: =SUM(IF(DATA[CONTRACT PRICE]="",DATA[CURRENT PRICE],DATA[CONTRACT PRICE]))
    MEDIAN: =MEDIAN(IF(DATA[CONTRACT PRICE]="",DATA[CURRENT PRICE],DATA[CONTRACT PRICE]))

    Both confirmed as array formulas with Ctrl + Shift + Enter instead of the regular Enter.

    EDIT:
    Results appear to check out.
    SUM = 44,992,800
    Median = 1,472,000
    Last edited by CAntosh; 06-27-2016 at 04:49 PM.

  3. #3
    Registered User
    Join Date
    01-12-2016
    Location
    New York
    MS-Off Ver
    2015
    Posts
    76

    Re: SumIF and MedianIF Help

    perfect thanks

  4. #4
    Registered User
    Join Date
    01-12-2016
    Location
    New York
    MS-Off Ver
    2015
    Posts
    76

    Re: SumIF and MedianIF Help

    Actually one other thing. How do I get the Median to ignore $0?

  5. #5
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: SumIF and MedianIF Help

    Try this one to exclude zero values, again entered with Ctrl + Shift + Enter:

    =MEDIAN(IF(DATA[CURRENT PRICE]>0,IF(DATA[CONTRACT PRICE]="",DATA[CURRENT PRICE],DATA[CONTRACT PRICE])))

+ 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. [SOLVED] Help with MedianIF array function
    By graphicgoose in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-25-2016, 02:25 AM
  2. MedianIf Array Formula
    By rishsteven in forum Excel General
    Replies: 5
    Last Post: 02-13-2012, 03:50 PM
  3. MedianIf... using Lookup?
    By lady_Jane in forum Excel General
    Replies: 2
    Last Post: 07-05-2011, 11:50 AM
  4. medianif 2 different columns of data
    By abelkrista in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-20-2009, 07:12 PM
  5. MedianIf?
    By ameng in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-02-2006, 04:25 PM
  6. Is there any way to get an AVERAGEIF & MEDIANIF function in Exce
    By TinaMo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 02:05 AM
  7. [SOLVED] Is there any way to get an AVERAGEIF & MEDIANIF function in Exce
    By TinaMo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-05-2005, 11:05 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