+ Reply to Thread
Results 1 to 3 of 3

Conditional Median Using Two Sale Dates

  1. #1
    Registered User
    Join Date
    09-07-2010
    Location
    Scranton
    MS-Off Ver
    Excel 2007
    Posts
    2

    Conditional Median Using Two Sale Dates

    Hello Everyone. It's my first post so please be gentle

    I'm using MS Excel 2007.

    I'm a real estate appraiser and I'm trying to set up a template for my analysis that checks the sale dates from a period (say 10 years) and calculates the median sale price of each annual period. I've been doing this with pivot tables for a while and it works beautifully; however, it obviously can't calculate the median for me and the mean isn't acceptable for my work.

    The problem I encounter is that I am dealing with large sets of data that I import into Excel from Access or from a .csv/.txt. The sets usually consist of between 1,000 - 3,000 records.

    Here's what I'm trying to accomplish:

    I have a worksheet in my workbook titled "Data", I dump all the records into this and insert them into a table. The fields have names typical of real estate databases (sold date, sold price, etc.). On another sheet I have a row of empty cells that I want to populate with the medians for each annual period. How do I create an array that will test the values in one field and calculate the median from the records that meet the criteria. So 01/01/00 >= 12/31/00 ... simple, I know, but I can't get it to work.

    I tried using an AND statement and nested IF statements but I just can't get it to work.

    Please help, I'm desperate

    TYIA.

    Mike

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Conditional Median Using Two Sale Dates

    You don't stipulate either Table name nor sheet on which the Annual periods are listed but in basic terms if we assume that sheet is called Results and Table is called Table1

    Please Login or Register  to view this content.
    Of course if the data is sorted by date then theoretically you need not use an Array.

  3. #3
    Registered User
    Join Date
    09-07-2010
    Location
    Scranton
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Conditional Median Using Two Sale Dates

    WOW! Thank you. Words cannot express how grateful I am. I've been struggling with this for the last three hours. Thank you again.

    I forgot to add: the solution worked perfectly.
    Last edited by Appraiser18411; 09-07-2010 at 02:35 AM. Reason: Omission

+ 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