Solved

# Excel Formula Help - Benchmark Subset of Array Against Another Subset in Same Array

Posted on 2016-07-21
54 Views
Trying to take the average difference between market values in one metro versus the national average. Both national data and the metro data are in the same data set, so I have been attempting to use multiple criteria in an "AVERAGE(IF(..." format. Cannot use VBA. Current formula is:

{=AVERAGE(IF((MSA="METRO NAME)*(YYYYQ>=20001)*(YYYYQ<=20161)=1,MVperSF_SF_Wtd-(MSA="NATION")*(YYYYQ>=20001)*(YYYYQ<=20161)*MVperSF_SF_Wtd,FALSE))}

Where "MVperSF_SF_Wtd" is the value-weighted market value per square foot for an apartment building. The results are just wrong, so looking for some help.

I have attached the file for further clarity. Please see column "R".

Thanks for the help!!!
2016Q1-NCREIF-Value-psf---Apt.xlsx
0
Question by:dhansen_
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 2

LVL 51

Accepted Solution

Rgonzo1971 earned 500 total points
ID: 41724497
Hi,

pls try (as an array formula Ctrl-Shift-Enter) the calculations are very long I recommend to have Calculation mode Manual

``````=(SUMPRODUCT(--(MSA=\$N10),--(YYYYQ>=--(\$E\$6&\$E\$5)),--(YYYYQ<=--(\$E\$4&\$E\$5)),MVperSF_SF_Wtd)-SUMPRODUCT(SIGN(IFERROR(MATCH(YYYYQ&N10,YYYYQ&MSA,0),0))*(YYYYQ&N10<>YYYYQ&MSA),--(MSA=\$N\$9),--(YYYYQ>=--(\$E\$6&\$E\$5)),--(YYYYQ<=--(\$E\$4&\$E\$5)),MVperSF_SF_Wtd))/SUMPRODUCT(--(MSA=\$N10),--(YYYYQ>=--(\$E\$6&\$E\$5)),--(YYYYQ<=--(\$E\$4&\$E\$5)))
``````
Regards
2016Q1-NCREIF-Value-psf---AptV1.xlsx
2

Author Comment

ID: 41724762
Thanks! Works perfectly and quite impressive.
0

LVL 24

Expert Comment

ID: 41733177
Hi dhansen_

If that solution worked, please don't forget to mark it as the solution and close the question.

Thanks,
Brian (TBone2K)
0

Author Closing Comment

ID: 41733572
This worked well. I did do some side math, and found I could further simplify the formula by taking the difference of two AVERAGEIFS functions, market less nation. Yields the same results.
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
###### Suggested Courses
Course of the Month5 days, left to enroll