bmccabe362
New Member
- Joined
- Jan 4, 2010
- Messages
- 11
By way of explanation, I am in the real estate business. Over the years I have found the MLS to be too one-dimensional, so I built an ever-evolving means of illuminating the ways in which markets behave. For example, consider the following array formula:
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
{=SUM(IF(PENDING_DATES>=BEGINNING_DATE,IF(PENDING_DATES<=END_DATE,IF(SALE_PRICES>=BEGINNING_PRICE,IF(SALE_PRICES<END_PRICE,IF(OWNERSHIP_TYPES=OWNERSHIP,1,0),0)))))}
<o></o>
This formula would return the number of houses that went under contract between two dates, in a particular price range, and having a particular ownership type. All the check-values in italics are pulled from either the same or other worksheets. Now to my problem:
<o></o>
I want to add a new variable to the existing formula…bedrooms. So, given the specified pending dates, price range and ownership type, I want to know how many 4-bedroom homes sold, or how many 3- and 4-bedroom homes sold, etc. Furthermore, since I won’t always be using the bedrooms crosstab, the default bedroom value has to include all houses that sold that had bedrooms, which would be the same as the returned value before the introduction of the bedroom variable.
<o></o>
Were I using the value of the bedroom variable only once I would add it by hand. However, many different formulas need to access it so the only practical way to do it seems to be an easily customized pull-down list. The reason is that in one market I may be interested in 2 and 3 bedroom houses, while in another it might be homes with 3 or more bedrooms (>=3). Also, the default bedroom value has to include all houses that sold (any house with a bedroom).
<o></o>
So, here is where I hit the wall. In order to get my list of bedroom check values to work I have to include operators that will enable me to account for all kinds of possibilities. The following is where I am and it doesn’t work (as you know).
<o></o>
{=SUM(IF(PENDING_DATES>=BEGINNING_DATE,IF(PENDING_DATES<=END_DATE,IF(SALE_PRICES>=BEGINNING_PRICE,IF(SALE_PRICES<END_PRICE,IF(OWNERSHIP_TYPES=OWNERSHIP, IF(NUMBER_BEDROOMS=$AY$11,0),0))))))}
<o></o>
In the above, =$AY$11 is the cell reference to the bedroom list. Since my check values sometimes contain operators, the values don’t work with the “=” in the expression, IF(NUMBER_BEDROOMS=$AY$11.
<o></o>
Thank you very much for your help and, by the way, I don’t know vba .
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
{=SUM(IF(PENDING_DATES>=BEGINNING_DATE,IF(PENDING_DATES<=END_DATE,IF(SALE_PRICES>=BEGINNING_PRICE,IF(SALE_PRICES<END_PRICE,IF(OWNERSHIP_TYPES=OWNERSHIP,1,0),0)))))}
<o></o>
This formula would return the number of houses that went under contract between two dates, in a particular price range, and having a particular ownership type. All the check-values in italics are pulled from either the same or other worksheets. Now to my problem:
<o></o>
I want to add a new variable to the existing formula…bedrooms. So, given the specified pending dates, price range and ownership type, I want to know how many 4-bedroom homes sold, or how many 3- and 4-bedroom homes sold, etc. Furthermore, since I won’t always be using the bedrooms crosstab, the default bedroom value has to include all houses that sold that had bedrooms, which would be the same as the returned value before the introduction of the bedroom variable.
<o></o>
Were I using the value of the bedroom variable only once I would add it by hand. However, many different formulas need to access it so the only practical way to do it seems to be an easily customized pull-down list. The reason is that in one market I may be interested in 2 and 3 bedroom houses, while in another it might be homes with 3 or more bedrooms (>=3). Also, the default bedroom value has to include all houses that sold (any house with a bedroom).
<o></o>
So, here is where I hit the wall. In order to get my list of bedroom check values to work I have to include operators that will enable me to account for all kinds of possibilities. The following is where I am and it doesn’t work (as you know).
<o></o>
{=SUM(IF(PENDING_DATES>=BEGINNING_DATE,IF(PENDING_DATES<=END_DATE,IF(SALE_PRICES>=BEGINNING_PRICE,IF(SALE_PRICES<END_PRICE,IF(OWNERSHIP_TYPES=OWNERSHIP, IF(NUMBER_BEDROOMS=$AY$11,0),0))))))}
<o></o>
In the above, =$AY$11 is the cell reference to the bedroom list. Since my check values sometimes contain operators, the values don’t work with the “=” in the expression, IF(NUMBER_BEDROOMS=$AY$11.
<o></o>
Thank you very much for your help and, by the way, I don’t know vba .