【问题标题】:Excel formula to find the nearest valuesExcel公式查找最接近的值
【发布时间】:2017-01-27 11:05:57
【问题描述】:

是否可以使用公式找到最接近的值(+或-)并在我链接的 Excel 表中显示第一行值和第一列值?

例如:

搜索值为“7,30”(C12;变量可以查询表中的任何值)

找到的行值为“7”(带公式的 E12;寻址到 A7)

找到列值“4,00%”(带公式的 E13;寻址到 E1)

“F12”公式没问题。关于下表中的信息,“F13”中的公式可以是什么?

<head>
<meta http-equiv=Content-Type content="text/html; charset=Windows-1254">
<meta name=ProgId content=Excel.Sheet>
<meta name=Generator content="Microsoft Excel 14">
<link rel=File-List href="SampleT_dosyalar/filelist.xml">
<style id="table-3_9841_Styles">
<!--table
	{mso-displayed-decimal-separator:"\,";
	mso-displayed-thousand-separator:"\.";}
.xl159841
	{padding-top:1px;
	padding-right:1px;
	padding-left:1px;
	mso-ignore:padding;
	color:black;
	font-size:11.0pt;
	font-weight:400;
	font-style:normal;
	text-decoration:none;
	font-family:Calibri, sans-serif;
	mso-font-charset:162;
	mso-number-format:General;
	text-align:general;
	vertical-align:bottom;
	mso-background-source:auto;
	mso-pattern:auto;
	white-space:nowrap;}
.xl659841
	{padding-top:1px;
	padding-right:1px;
	padding-left:1px;
	mso-ignore:padding;
	color:black;
	font-size:11.0pt;
	font-weight:400;
	font-style:normal;
	text-decoration:none;
	font-family:Calibri, sans-serif;
	mso-font-charset:162;
	mso-number-format:General;
	text-align:right;
	vertical-align:bottom;
	mso-background-source:auto;
	mso-pattern:auto;
	white-space:nowrap;}
.xl669841
	{padding-top:1px;
	padding-right:1px;
	padding-left:1px;
	mso-ignore:padding;
	color:black;
	font-size:11.0pt;
	font-weight:400;
	font-style:normal;
	text-decoration:none;
	font-family:Calibri, sans-serif;
	mso-font-charset:162;
	mso-number-format:General;
	text-align:general;
	vertical-align:bottom;
	border:.5pt solid windowtext;
	mso-background-source:auto;
	mso-pattern:auto;
	white-space:nowrap;}
.xl679841
	{padding-top:1px;
	padding-right:1px;
	padding-left:1px;
	mso-ignore:padding;
	color:black;
	font-size:11.0pt;
	font-weight:400;
	font-style:normal;
	text-decoration:none;
	font-family:Calibri, sans-serif;
	mso-font-charset:162;
	mso-number-format:Fixed;
	text-align:general;
	vertical-align:bottom;
	border:.5pt solid windowtext;
	mso-background-source:auto;
	mso-pattern:auto;
	white-space:nowrap;}
.xl689841
	{padding-top:1px;
	padding-right:1px;
	padding-left:1px;
	mso-ignore:padding;
	color:black;
	font-size:11.0pt;
	font-weight:400;
	font-style:normal;
	text-decoration:none;
	font-family:Calibri, sans-serif;
	mso-font-charset:162;
	mso-number-format:"0\.00\\%";
	text-align:general;
	vertical-align:bottom;
	mso-background-source:auto;
	mso-pattern:auto;
	white-space:nowrap;}
.xl699841
	{padding-top:1px;
	padding-right:1px;
	padding-left:1px;
	mso-ignore:padding;
	color:black;
	font-size:11.0pt;
	font-weight:400;
	font-style:normal;
	text-decoration:none;
	font-family:Calibri, sans-serif;
	mso-font-charset:162;
	mso-number-format:General;
	text-align:general;
	vertical-align:bottom;
	background:#FFC000;
	mso-pattern:black none;
	white-space:nowrap;}
.xl709841
	{padding-top:1px;
	padding-right:1px;
	padding-left:1px;
	mso-ignore:padding;
	color:black;
	font-size:11.0pt;
	font-weight:400;
	font-style:normal;
	text-decoration:none;
	font-family:Calibri, sans-serif;
	mso-font-charset:162;
	mso-number-format:"0\.00\\%";
	text-align:general;
	vertical-align:bottom;
	background:#FFC000;
	mso-pattern:black none;
	white-space:nowrap;}
.xl719841
	{padding-top:1px;
	padding-right:1px;
	padding-left:1px;
	mso-ignore:padding;
	color:black;
	font-size:11.0pt;
	font-weight:400;
	font-style:normal;
	text-decoration:none;
	font-family:Calibri, sans-serif;
	mso-font-charset:162;
	mso-number-format:"0\.00\\%";
	text-align:general;
	vertical-align:bottom;
	border:.5pt solid windowtext;
	mso-background-source:auto;
	mso-pattern:auto;
	white-space:nowrap;}
.xl729841
	{padding-top:1px;
	padding-right:1px;
	padding-left:1px;
	mso-ignore:padding;
	color:black;
	font-size:11.0pt;
	font-weight:400;
	font-style:normal;
	text-decoration:none;
	font-family:Calibri, sans-serif;
	mso-font-charset:162;
	mso-number-format:General;
	text-align:left;
	vertical-align:top;
	border:none;
	mso-diagonal-up:.5pt solid windowtext;
	mso-background-source:auto;
	mso-pattern:auto;
	white-space:normal;}
.xl739841
	{padding-top:1px;
	padding-right:1px;
	padding-left:1px;
	mso-ignore:padding;
	color:red;
	font-size:11.0pt;
	font-weight:700;
	font-style:normal;
	text-decoration:none;
	font-family:Calibri, sans-serif;
	mso-font-charset:162;
	mso-number-format:General;
	text-align:general;
	vertical-align:bottom;
	mso-background-source:auto;
	mso-pattern:auto;
	white-space:nowrap;}
.xl749841
	{padding-top:1px;
	padding-right:1px;
	padding-left:1px;
	mso-ignore:padding;
	color:#0070C0;
	font-size:11.0pt;
	font-weight:700;
	font-style:normal;
	text-decoration:none;
	font-family:Calibri, sans-serif;
	mso-font-charset:162;
	mso-number-format:General;
	text-align:general;
	vertical-align:bottom;
	mso-background-source:auto;
	mso-pattern:auto;
	white-space:nowrap;}
.xl759841
	{padding-top:1px;
	padding-right:1px;
	padding-left:1px;
	mso-ignore:padding;
	color:black;
	font-size:11.0pt;
	font-weight:400;
	font-style:normal;
	text-decoration:none;
	font-family:Calibri, sans-serif;
	mso-font-charset:162;
	mso-number-format:General;
	text-align:center;
	vertical-align:bottom;
	mso-background-source:auto;
	mso-pattern:auto;
	white-space:nowrap;}
.xl769841
	{padding-top:1px;
	padding-right:1px;
	padding-left:1px;
	mso-ignore:padding;
	color:black;
	font-size:11.0pt;
	font-weight:400;
	font-style:normal;
	text-decoration:none;
	font-family:Calibri, sans-serif;
	mso-font-charset:162;
	mso-number-format:General;
	text-align:general;
	vertical-align:bottom;
	background:#D9D9D9;
	mso-pattern:black none;
	white-space:nowrap;}
-->
</style>
</head>

<body>
<!--[if !excel]>&nbsp;&nbsp;<![endif]-->
<!--Aşağıdaki bilgiler Microsoft Excel'in Web Sayfası Olarak Yayımlama
sihirbazı tarafından oluşturuldu.-->
<!--Aynı öğe Excel'den yeniden yayımlanırsa, DIV etiketleri arasındaki
bilgilerin tümü değiştirilecek.-->
<!----------------------------->
<!--EXCEL WEB SAYFASI OLARAK YAYIMLA SİHİRBAZI ÇIKTI BAŞLANGICI-->
<!----------------------------->

<div id="table-3_9841" align=center x:publishsource="Excel">

<table border=0 cellpadding=0 cellspacing=0 width=1114 style='border-collapse:
 collapse;table-layout:fixed;width:836pt'>
 <col class=xl159841 width=26 style='mso-width-source:userset;mso-width-alt:
 950;width:20pt'>
 <col class=xl159841 width=64 style='width:48pt'>
 <col width=64 span=16 style='width:48pt'>
 <tr class=xl159841 height=20 style='height:15.0pt'>
  <td height=20 class=xl769841 width=26 style='height:15.0pt;width:20pt'>&nbsp;</td>
  <td class=xl759841 width=64 style='width:48pt'>A</td>
  <td class=xl759841 width=64 style='width:48pt'>B</td>
  <td class=xl759841 width=64 style='width:48pt'>C</td>
  <td class=xl759841 width=64 style='width:48pt'>D</td>
  <td class=xl759841 width=64 style='width:48pt'>E</td>
  <td class=xl759841 width=64 style='width:48pt'>F</td>
  <td class=xl759841 width=64 style='width:48pt'>H</td>
  <td class=xl759841 width=64 style='width:48pt'>I</td>
  <td class=xl759841 width=64 style='width:48pt'>J</td>
  <td class=xl759841 width=64 style='width:48pt'>K</td>
  <td class=xl759841 width=64 style='width:48pt'>L</td>
  <td class=xl759841 width=64 style='width:48pt'>M</td>
  <td class=xl759841 width=64 style='width:48pt'>N</td>
  <td class=xl759841 width=64 style='width:48pt'>O</td>
  <td class=xl759841 width=64 style='width:48pt'>P</td>
  <td class=xl759841 width=64 style='width:48pt'>Q</td>
  <td class=xl759841 width=64 style='width:48pt'>R</td>
 </tr>
 <tr height=20 style='mso-height-source:userset;height:15.0pt'>
  <td height=20 class=xl759841 style='height:15.0pt'>1</td>
  <td rowspan=2 class=xl729841 width=64 style='width:48pt'><span
  style='mso-spacerun:yes'>  </span>%<br>
    <span style='mso-spacerun:yes'>        </span>Price</td>
  <td class=xl689841 align=right>1,00%</td>
  <td class=xl689841 align=right>2,00%</td>
  <td class=xl689841 align=right>3,00%</td>
  <td class=xl709841 align=right>4,00%</td>
  <td class=xl689841 align=right>5,00%</td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
 </tr>
 <tr height=20 style='height:15.0pt'>
  <td height=20 class=xl759841 style='height:15.0pt'>2</td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
 </tr>
 <tr height=20 style='height:15.0pt'>
  <td height=20 class=xl759841 style='height:15.0pt'>3</td>
  <td class=xl159841 align=right>3</td>
  <td class=xl159841 align=right><a name="RANGE!C4:G11">3,03</a></td>
  <td class=xl159841 align=right>3,06</td>
  <td class=xl159841 align=right>3,095</td>
  <td class=xl159841 align=right>3,125</td>
  <td class=xl159841 align=right>3,16</td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
 </tr>
 <tr height=20 style='height:15.0pt'>
  <td height=20 class=xl759841 style='height:15.0pt'>4</td>
  <td class=xl159841 align=right>4</td>
  <td class=xl159841 align=right>4,04</td>
  <td class=xl159841 align=right>4,08</td>
  <td class=xl159841 align=right>4,125</td>
  <td class=xl159841 align=right>4,165</td>
  <td class=xl159841 align=right>4,21</td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
 </tr>
 <tr height=20 style='height:15.0pt'>
  <td height=20 class=xl759841 style='height:15.0pt'>5</td>
  <td class=xl159841 align=right>5</td>
  <td class=xl159841 align=right>5,05</td>
  <td class=xl159841 align=right>5,1</td>
  <td class=xl159841 align=right>5,155</td>
  <td class=xl159841 align=right>5,21</td>
  <td class=xl159841 align=right>5,265</td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
 </tr>
 <tr height=20 style='height:15.0pt'>
  <td height=20 class=xl759841 style='height:15.0pt'>6</td>
  <td class=xl159841 align=right>6</td>
  <td class=xl159841 align=right>6,06</td>
  <td class=xl159841 align=right>6,12</td>
  <td class=xl159841 align=right>6,185</td>
  <td class=xl159841 align=right>6,25</td>
  <td class=xl739841 align=right>7,29</td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
 </tr>
 <tr height=20 style='height:15.0pt'>
  <td height=20 class=xl759841 style='height:15.0pt'>7</td>
  <td class=xl699841 align=right>7</td>
  <td class=xl159841 align=right>7,07</td>
  <td class=xl159841 align=right>7,145</td>
  <td class=xl159841 align=right>7,215</td>
  <td class=xl739841 align=right>7,29</td>
  <td class=xl159841 align=right>7,37</td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
 </tr>
 <tr height=20 style='height:15.0pt'>
  <td height=20 class=xl759841 style='height:15.0pt'>8</td>
  <td class=xl159841 align=right>8</td>
  <td class=xl159841 align=right>8,08</td>
  <td class=xl159841 align=right>8,165</td>
  <td class=xl159841 align=right>8,245</td>
  <td class=xl159841 align=right>8,335</td>
  <td class=xl159841 align=right>8,42</td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
 </tr>
 <tr height=20 style='height:15.0pt'>
  <td height=20 class=xl759841 style='height:15.0pt'>9</td>
  <td class=xl159841 align=right>9</td>
  <td class=xl159841 align=right>9,09</td>
  <td class=xl159841 align=right>9,185</td>
  <td class=xl159841 align=right>9,28</td>
  <td class=xl159841 align=right>9,375</td>
  <td class=xl159841 align=right>9,475</td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
 </tr>
 <tr height=20 style='height:15.0pt'>
  <td height=20 class=xl759841 style='height:15.0pt'>10</td>
  <td class=xl159841 align=right>10</td>
  <td class=xl159841 align=right>10,1</td>
  <td class=xl159841 align=right>10,205</td>
  <td class=xl159841 align=right>10,31</td>
  <td class=xl159841 align=right>10,415</td>
  <td class=xl159841 align=right>10,525</td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
 </tr>
 <tr height=20 style='height:15.0pt'>
  <td height=20 class=xl759841 style='height:15.0pt'>11</td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
 </tr>
 <tr height=20 style='height:15.0pt'>
  <td height=20 class=xl759841 style='height:15.0pt'>12</td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl659841>Search:</td>
  <td class=xl679841 align=right>7,30</td>
  <td class=xl659841>Row</td>
  <td class=xl669841 align=right>7</td>
  <td class=xl159841 colspan=11><span style='mso-spacerun:yes'> 
  </span>=İNDİS($A:$A;MAK((MİN(MUTLAK(DataRange-$C$12))=MUTLAK(DataRange-$C$12))*SATIR(DataRange)))</td>
 </tr>
 <tr height=20 style='height:15.0pt'>
  <td height=20 class=xl759841 style='height:15.0pt'>13</td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl659841>Column</td>
  <td class=xl719841 align=right style='border-top:none'>5,00%</td>
  <td class=xl159841 colspan=11><span style='mso-spacerun:yes'> 
  </span>=İNDİS($1:$1;1;MAK((MİN(MUTLAK(DataRange-$C$12))=MUTLAK(DataRange-$C$12))*SÜTUN(DataRange)))</td>
 </tr>
 <tr height=20 style='height:15.0pt'>
  <td height=20 class=xl759841 style='height:15.0pt'>14</td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
 </tr>
 <tr height=20 style='height:15.0pt'>
  <td height=20 class=xl759841 style='height:15.0pt'>15</td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl749841 colspan=10>This formula is OK as row# &quot;7&quot; but is
  it possible to display &quot;E7&quot; instead of &quot;F6&quot; as column
  title?</td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
 </tr>
 <tr height=20 style='height:15.0pt'>
  <td height=20 class=xl759841 style='height:15.0pt'>16</td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl749841 colspan=12>Can the formula check row# first to retrieve
  the colum title then check for others if no figure is identical in row
  &quot;7&quot; line?</td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
 </tr>
 <tr height=20 style='height:15.0pt'>
  <td height=20 class=xl759841 style='height:15.0pt'>18</td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
  <td class=xl159841></td>
 </tr>
 <![if supportMisalignedColumns]>
 <tr height=0 style='display:none'>
  <td width=26 style='width:20pt'></td>
  <td width=64 style='width:48pt'></td>
  <td width=64 style='width:48pt'></td>
  <td width=64 style='width:48pt'></td>
  <td width=64 style='width:48pt'></td>
  <td width=64 style='width:48pt'></td>
  <td width=64 style='width:48pt'></td>
  <td width=64 style='width:48pt'></td>
  <td width=64 style='width:48pt'></td>
  <td width=64 style='width:48pt'></td>
  <td width=64 style='width:48pt'></td>
  <td width=64 style='width:48pt'></td>
  <td width=64 style='width:48pt'></td>
  <td width=64 style='width:48pt'></td>
  <td width=64 style='width:48pt'></td>
  <td width=64 style='width:48pt'></td>
  <td width=64 style='width:48pt'></td>
  <td width=64 style='width:48pt'></td>
 </tr>
 <![endif]>
</table>

</div>


<!----------------------------->
<!--EXCEL WEB SAYFASI OLARAK YAYIMLA SİHİRBAZI ÇIKTI SONU-->
<!----------------------------->
</body>

</html>

【问题讨论】:

  • 您可以创建一个辅助表,其中每个条目是 C12 的绝对值减去主表中的相应值,例如:=ABS($C$12-B3) 然后匹配最小值在该范围内,例如:(假设辅助表在 I3:M10 中)=MATCH(MIN(I7:M7),I7:M7,0)。显然,这是针对第 7 行的,我假设您已经知道如何更改行。

标签: excel excel-formula


【解决方案1】:

我想这一定有一个更漂亮的答案,但这对我有用: 在 E12 中输入:

=ROUNDDOWN(C12,0)

在 E13 中放入这个 Array-Formula(需要输入 Ctrl+Shift+Enter 而不是通常的 Enter):

=MATCH(MIN(ABS(C12-B3:F10)),ABS(C12-INDIRECT(CONCATENATE("B",E12)):INDIRECT(CONCATENATE("F",E12))),0)

希望对你有帮助

【讨论】:

    【解决方案2】:

    这些公式必须以数组形式输入

    Row:  =INDEX($A:$A,MAX((MIN(ABS(DataRange-$C$12))=ABS(DataRange-$C$12))*ROW(DataRange)))
    
    Column:  =INDEX($1:$1,1,MAX((MIN(ABS(DataRange-$C$12))=ABS(DataRange-$C$12))*COLUMN(DataRange)))
    

    编辑:如果表中可能存在重复项(与搜索值等距的两个值,则以下公式将确保 Column 与找到行值。

    Row:  Formula in C12
    Column:  =INDEX($1:$1,1,MAX((MIN(ABS(INDEX(DataRange,E12-ROW(DataRange)+1,0)-$C$12))=ABS(INDEX(DataRange,E12-ROW(DataRange)+1,0)-$C$12))*COLUMN(DataRange)))
    

    在你的例子中,

    DataRange refers to:    =Sheet1!$B$3:$F$10
    

    数组输入公式,输入后 将公式放入单元格或公式栏中,按住 ctrl+shift 同时按 enter。如果你这样做了 正确地,Excel 会在公式周围放置大括号 {...}

    【讨论】:

    • 这正是我所需要的。非常感谢
    • 在我进一步的检查中,我注意到如果表中有相同的数字,则第二个公式 E13) 请求的百分比可以在第一个公式检索到的行之前。我的意思是,假设 7,29 位于 F6 和 E7 中,因此第一个公式将显示 E7 优先级,但第二个公式将显示 F6 (5%) 作为索引问题。
    • @ZRS 提供一个可以复制/粘贴的示例(不是屏幕截图),以及如果表中有重复匹配项,您想要的结果。表中两个不同但等距的值也可能出现重复。通过编辑您的原始帖子来做到这一点。
    • 我想知道如果第二个公式检查第一个公式检索到的行# (A7) 优先级并显示列标题,如果该行中的数字满足,否则从第一个匹配行中提取标题。我将尝试按照您的建议编辑我的原始帖子。再次感谢
    • @ZRS 查看我的编辑以获取解决方案。
    【解决方案3】:

    在 E12 中,行:

    =INDEX(A:A,AGGREGATE(15,6,($B$3:$F$10)/(AGGREGATE(15,6,ABS(C12-$B$3:$F$10),1)=ABS(C12-$B$3:$F$10)),1))
    

    在 E13 中,列:

    =INDEX(1:1,AGGREGATE(15,6,COLUMN($B$3:$F$10)/(AGGREGATE(15,6,ABS(C12-$B$3:$F$10),1)=ABS(C12-$B$3:$F$10)),1))
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-08-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-19
      相关资源
      最近更新 更多