如何在Excel中绘制曲线的外边缘? [英] How do I plot just the outer edge of a curve in Excel?

查看:705
本文介绍了如何在Excel中绘制曲线的外边缘?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下数据:

Risk    Return  
9.2      6.5  
7.8      3.4  
6.4      5.2  
.  
.  
.  
.  
10.2     6.4  

我创建了一个如下所示的散点图:

I created a scatter plot that looks like this:

如何获得曲线的外边缘?我想它看起来像这样:

How can I get just the outer edge of the curve? I'd like it to look like this:

推荐答案

假设您的风险在A列2-100列,Return列B列2 -100。

Let say your Risk is in column A rows 2-100, and Return is column B rows 2-100.

使用此公式(其数组公式,因此使用Ctrl-Shift-Enter)创建列C:
= MAX(IF $ 2:$ A $ 100< = A2,$ B $ 2:$ B $ 100))= B2

Create a column C with this formula (its an array formula so use Ctrl-Shift-Enter): =MAX(IF($A$2:$A$100<=A2,$B$2:$B$100))=B2

复制到列C的全部。最大回报,具有与这一点相同或更低风险的所有点。

Copy down to all of column C. This formula is saying get the max return, of all points with the same or lower risk than this point. If that return is equal to this points return then TRUE.

现在创建列D和E,并使用以下公式:
= IF(C2,A2,0 )
= IF(C2,B2,0)

Now create columns D and E and with formulas like: =IF(C2,A2,0) =IF(C2,B2,0)

这将不是边界的一部分,你可以绘制这些点。

This will 0 out the points that are not part of the frontier, you can then plot these points.

这篇关于如何在Excel中绘制曲线的外边缘?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆