ExcelUser18
New Member
- Joined
- May 3, 2017
- Messages
- 36
Good Afternoon All,
I've tried effortlessly to figure out this equation and many other posts I see do not exactly fit my needs. Apologies if this has been repeated somewhere.
Column A has square footage (SF) numbers, some which are unavailable and contain zeros. Column B has $/square foot ($/SF), some which are also zero because the square footage is zero.
[TABLE="width: 126"]
<colgroup><col style="text-align: center;"><col style="text-align: center;"></colgroup><tbody>[TR]
[TD="align: center"]SF[/TD]
[TD="align: center"]$/SF[/TD]
[/TR]
[TR]
[TD="align: center"]675[/TD]
[TD="align: center"]$250[/TD]
[/TR]
[TR]
[TD="align: center"]0[/TD]
[TD="align: center"]$0[/TD]
[/TR]
[TR]
[TD="align: center"]0[/TD]
[TD="align: center"]$0[/TD]
[/TR]
[TR]
[TD="align: center"]0[/TD]
[TD="align: center"]$0[/TD]
[/TR]
[TR]
[TD="align: center"]0[/TD]
[TD="align: center"]$0[/TD]
[/TR]
[TR]
[TD="align: center"]850[/TD]
[TD="align: center"]$340[/TD]
[/TR]
[TR]
[TD="align: center"]775[/TD]
[TD="align: center"]$387[/TD]
[/TR]
[TR]
[TD="align: center"]850[/TD]
[TD="align: center"]$364[/TD]
[/TR]
[TR]
[TD="align: center"]950[/TD]
[TD="align: center"]$342[/TD]
[/TR]
[TR]
[TD="align: center"]0[/TD]
[TD="align: center"]$0[/TD]
[/TR]
[TR]
[TD="align: center"]900[/TD]
[TD="align: center"]$376[/TD]
[/TR]
[TR]
[TD="align: center"]775[/TD]
[TD="align: center"]$450[/TD]
[/TR]
[TR]
[TD="align: center"]950[/TD]
[TD="align: center"]$367[/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]6,725[/TD]
[TD="align: center"]$361[/TD]
[/TR]
</tbody>[/TABLE]
The weighted average for the above data is $361/SF. Easy enough. What I need to do or like to do is exclude the lowest and highest values from Column B ($/SF) AND also exclude its corresponding data in Column A (SF). Additionally, the MIN will calculate the first zero in there, but still returning a zero for the minimum because there are a total of 5 zeros in Column B. I know it's easier to delete those data points that have zeros but there are other columns attached to those data points and cannot be delete. Maybe, somehow, incorporate =small(B2:B14,countif(B2:B14,0)+1) as part of the MIN portion of the entire formula? This formula by itself ignores all the zero's and finds me the true minimum, but obviously I believe I need a more complex formula.
You guys are the experts, please feel free to ask questions. Many thanks.
I've tried effortlessly to figure out this equation and many other posts I see do not exactly fit my needs. Apologies if this has been repeated somewhere.
Column A has square footage (SF) numbers, some which are unavailable and contain zeros. Column B has $/square foot ($/SF), some which are also zero because the square footage is zero.
[TABLE="width: 126"]
<colgroup><col style="text-align: center;"><col style="text-align: center;"></colgroup><tbody>[TR]
[TD="align: center"]SF[/TD]
[TD="align: center"]$/SF[/TD]
[/TR]
[TR]
[TD="align: center"]675[/TD]
[TD="align: center"]$250[/TD]
[/TR]
[TR]
[TD="align: center"]0[/TD]
[TD="align: center"]$0[/TD]
[/TR]
[TR]
[TD="align: center"]0[/TD]
[TD="align: center"]$0[/TD]
[/TR]
[TR]
[TD="align: center"]0[/TD]
[TD="align: center"]$0[/TD]
[/TR]
[TR]
[TD="align: center"]0[/TD]
[TD="align: center"]$0[/TD]
[/TR]
[TR]
[TD="align: center"]850[/TD]
[TD="align: center"]$340[/TD]
[/TR]
[TR]
[TD="align: center"]775[/TD]
[TD="align: center"]$387[/TD]
[/TR]
[TR]
[TD="align: center"]850[/TD]
[TD="align: center"]$364[/TD]
[/TR]
[TR]
[TD="align: center"]950[/TD]
[TD="align: center"]$342[/TD]
[/TR]
[TR]
[TD="align: center"]0[/TD]
[TD="align: center"]$0[/TD]
[/TR]
[TR]
[TD="align: center"]900[/TD]
[TD="align: center"]$376[/TD]
[/TR]
[TR]
[TD="align: center"]775[/TD]
[TD="align: center"]$450[/TD]
[/TR]
[TR]
[TD="align: center"]950[/TD]
[TD="align: center"]$367[/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]6,725[/TD]
[TD="align: center"]$361[/TD]
[/TR]
</tbody>[/TABLE]
The weighted average for the above data is $361/SF. Easy enough. What I need to do or like to do is exclude the lowest and highest values from Column B ($/SF) AND also exclude its corresponding data in Column A (SF). Additionally, the MIN will calculate the first zero in there, but still returning a zero for the minimum because there are a total of 5 zeros in Column B. I know it's easier to delete those data points that have zeros but there are other columns attached to those data points and cannot be delete. Maybe, somehow, incorporate =small(B2:B14,countif(B2:B14,0)+1) as part of the MIN portion of the entire formula? This formula by itself ignores all the zero's and finds me the true minimum, but obviously I believe I need a more complex formula.
You guys are the experts, please feel free to ask questions. Many thanks.