Solved

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

Posted on 2016-07-21
4
44 Views
Last Modified: 2016-07-28
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
Comment
Question by:dhansen_
  • 2
4 Comments
 
LVL 48

Accepted Solution

by:
Rgonzo1971 earned 500 total points
Comment Utility
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)))

Open in new window

Regards
2016Q1-NCREIF-Value-psf---AptV1.xlsx
2
 

Author Comment

by:dhansen_
Comment Utility
Thanks! Works perfectly and quite impressive.
0
 
LVL 23

Expert Comment

by:Brian B
Comment Utility
Hi dhansen_

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

Thanks,
Brian (TBone2K)
Topic Advisor
0
 

Author Closing Comment

by:dhansen_
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now