+ Reply to Thread
Results 1 to 2 of 2

help with a formula, please?

  1. #1
    Registered User
    Join Date
    01-13-2011
    Location
    Austin, TX
    MS-Off Ver
    Excel 2007
    Posts
    1

    help with a formula, please?

    I am trying to figure out a formula that will choose values based on a certain date range. So it will review a column of data (lets say column "A") and only use the data from that column IF Column B (which has all the dates in it) is equal to a certain start and finish date (which are two other cells).
    I am a real estate appraiser, and am trying to pull out certain data from a larger data set so that I can see average, hi, low, and medians. But I need to sort it into 12 month periods (the most recent, the previous 12 month period, and the 12 month period before that (3 years total). So I want to get (for example) the average asking price of all homes in my 3 years worth of data that occurred only in the period 12 to 24 months ago. To do that, the formula would look at the two cells that state the start and end date of the 12 month period I need, then search column B to see which dates are relevant, and then if the date is relevant it uses the data in column A to (for example) determine the average.

    This is what I tried:
    =IF(S2:S1498>E1505,AND(S2:S1498<F1505),AVERAGE(G2:G1498))

    where "S" is the date column, E1505 & F1505 are the start and end dates, and "G" is the column with the data I am trying to average.

    Any help would be appreciated!

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: help with a formula, please?

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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