将三列课程转换成单列且忽略空值:{=INDIRECT(TEXT(SMALL(IF($B$2:$D$7<>"",ROW($2:$7)*1000+1,1048576001),ROW(A1)),"r#c000"),)&""} 罗列两个正整数的所有公约数:{=IFERROR(SMALL(IF((MOD(A$2,ROW(INDIRECT("1:"&GCD(A$2:B$2))))=0)*(MOD(B$2,ROW(INDIRECT("1:"&GCD(A$2:B$2))))=0),ROW(INDIRECT("1:"&GCD(A$2:B$2)))),ROW()-1),"")} B列最大值的地址:{=ADDRESS(MAX(IF(B2:B11=MAX(B2:B11),ROW(2:11))),2)} 记录最后一次销量大于3000的地址:{=ADDRESS(MOD(MAX((IF(ISNUMBER(B2:D7),B2:D7,0)>3000)*ROW(B2:D7)+(IF(ISNUMBER(B2:D7),B2:D7,0)>3000)*COLUMN(B2:D7)*1000),1000),INT(MAX((IF(ISNUMBER(B2:D7),B2:D7,0)>3000)*ROW(B2:D7)+(IF(ISNUMBER(B2:D7),B2:D7,0)>3000)*COLUMN(B2:D7)*1000)/1000))} 根据下拉列表引用不同工作表的产量:=INDIRECT(ADDRESS(11,2,1,1,D1)) 根据下拉列表罗列班级成绩第一名姓名:{=IFERROR(INDIRECT(ADDRESS(LARGE(((INDIRECT(D$1&"!B2:B10")=MAX(INDIRECT(D$1&"!B2:B10")))*ROW($2:$10)),ROW(A1)),1,1,1,D$1)),"")} 查询成绩:=OFFSET(A1,MATCH(F1,A2:A11,0),MATCH(G1,B1:D1,0)) 在具有合并单元格的A列产生自然数编号:=1+COUNT(OFFSET($A$2,,,ROW()-2,)) 引用合并区域时防止产生0值:=IF(A1<>"",A1,OFFSET(B1,-1,)) 计算10届运动会中有几次破纪录:=SUMPRODUCT(N(SUBTOTAL(5,OFFSET(B2,,,ROW(2:10)))<SUBTOTAL(5,OFFSET($B$2,,,ROW(1:9))))) 计第奎续三天之总产量大于等于25万元的次数:=SUMPRODUCT(N(SUBTOTAL(9,OFFSET($B$1,ROW(1:10)-1,,3))>=25)) 进、出库合计查询:=SUM(OFFSET(A1,E2,MATCH(G2&"总计",B1:C1,0),F2-E2+1)) 根据人数自动调整表格大小:{=IFERROR(OFFSET($E$1,SMALL(IF(F$2:F$5>=TRANSPOSE(ROW(INDIRECT("1:"&MAX(F$2:F$5)))),ROW($2:$5)-1),ROW(1:1)),),"")} 累计数据:{=SUM(OFFSET(B$2,,,ROW()-1))} 计算至少两科不及格的学生人数:{=SUM(--(COUNTIF(OFFSET($B$1,ROW(2:11)-1,,,4),"<60")>=2))} 列出成绩最好的科目:{=OFFSET(A2,,SUM((MAX(SUBTOTAL(9,OFFSET(A2,1,ROW(1:4),4)))=SUBTOTAL(9,OFFSET(A2,1,COLUMN(A:D),4)))*COLUMN(B:E))-1)} 计算及格率不超过50%的科目数:{=SUM(N(COUNTIF(OFFSET(A1,1,COLUMN(A:D),10,1),"<60")>=ROWS(2:11)/2))} 罗列两次未打卡人员:{=IFERROR(OFFSET(A$1,LARGE((COUNTIF(OFFSET(A$1,ROW($2:$11)-1,1,,4),"×")>=2)*ROW($2:$11),ROW(A1))-1,),"")} 计算语文、英语、化学、政治哪科总分最高:=CHOOSE(MATCH(MAX(SUBTOTAL(9,OFFSET(A1,1,MATCH({"语文","英语","化学","政治"},$B$1:$G$1,0),10,))),SUBTOTAL(9,OFFSET(A1,1,MATCH({"语文","英语","化学","政治"},$B$1:$G$1,0),10,)),0),"语文","英语","化学","政治") 连续三届达到100的次数:=SUMPRODUCT(N(COUNTIF(OFFSET(B1,ROW(2:9)-1,,3,1),">=100")=3)) 罗列及格率最高的学生姓名:{=INDEX(A:A,SMALL(IF(MAX(COUNTIF(OFFSET(A$1,ROW($2:$11)-1,1,1,COLUMNS(B:G)),">=60"))=COUNTIF(OFFSET(A1,ROW($2:$11)-1,1,1,COLUMNS(B:G)),">=60"),ROW($2:$11),12),ROW(A1)))&""} 计算Excel类图书最多进货量及书名:{=MAX(SUMIF(OFFSET(B1,ROW(2:11)-1,1,1,6),">=100")*(B2:B11="excel"))} 计算Excel类图书进货最多的是哪一个月:{=INDEX(C1:H1,MATCH(MAX(SUMIF(B2:B11,"excel",OFFSET(C2,,COLUMN(C:H)-3,ROWS(2:11),1))),SUMIF(B2:B11,"excel",OFFSET(C2,,COLUMN(C:H)-3,ROWS(2:11),1)),0))} 根据下拉列表中的时间和产品名计算销量冠军:{=INDEX(A2:A11,MATCH(MAX(OFFSET(C2,,MATCH(J2,C1:H1,0)-1,ROWS(2:11),)*(B2:B11=K2)),OFFSET(C2,,MATCH(J2,C1:H1,0)-1,ROWS(2:11),)*(B2:B11=K2),0))} 根据下拉列表中的产品提取姓名与销量:{=IFERROR(1/MOD(SMALL(IF(B2:B11=K1,1/SUBTOTAL(9,OFFSET(C2,ROW(2:11)-2,0,1,COLUMNS(C:H)))+ROW(2:11)),ROW(1:10)),1),"")} 计算产量最高的季度:=TEXT(MATCH(MAX(SUBTOTAL(9,OFFSET(A1,{0,3,6,9},1,3))),SUBTOTAL(9,OFFSET(A1,{0,3,6,9},1,3)),0),"[DBNum1]0季度") 分栏打印:=IF(ROW()=1,CHOOSE(MOD(COLUMN()-1,3)+1,资料!$A$1,资料!$B$1,""),IF(MOD(COLUMN(),3)=0,"",OFFSET(资料!$A$1,INT(COLUMN()/3)*9+ROW()-1,MOD(COLUMN(),3)-1,))) 分类汇总:=IF(SUMIF(B$2:B$11,E2,C$2:C$11)=0,"",SUMIF(B$2:B$11,E2,C$2:C$11)) 分类汇总并排序:{=OFFSET(B$1,RIGHT(LARGE(IF(MATCH(B$2:B$11,B$2:B$11,)=ROW($2:$11)-1,SUMIF(B$2:B$11,B$2:B$11,C$2:C$11)*1000+ROW($2:$11),ROWS($1:$11)+1),ROW(1:1)),3)-1,)&""} 工资查询:{=IFERROR(OFFSET(D1,MATCH(F2&G2&H2,A2:A11&B2:B11&C2:C11,0),),G2&"无此人")} 多表成绩查询:{=SUBTOTAL(9,OFFSET(INDIRECT(ADDRESS(1,MATCH(H1,1:1,0),1,1,{"一班";"二班";"三班"})),1,,ROWS(2:11),))} 计算每个学生总分是否高于本班平均成绩:{=SUM(C2:E2)>AVERAGE(IF((A2=A$2:A$11),SUBTOTAL(9,OFFSET(B$1,ROW($2:$11)-1,1,,COLUMNS(C:E)))))} 计算每个学生进入前三名的科目总数:{=SUM(N((RANK(N(OFFSET($B$2,ROW()-2,COLUMN(B:F)-2,1,1)),OFFSET($B$2,0,COLUMN(B:F)-2,ROWS($2:$11),1)))<=3))} 计算高于单科平均值的科目总数:{=SUM(N(N(OFFSET($B$2,ROW()-2,COLUMN(B:F)-2,1,1))>SUBTOTAL(1,OFFSET($B$2,0,COLUMN(B:F)-2,ROWS($2:$11),1))))} 罗列平均成绩倒数三名的班级:{=OFFSET(A1,MATCH(SMALL(SUBTOTAL(1,OFFSET(A1,ROW($2:$9)-1,1,1,COLUMNS(B:F)))*1000+ROW(2:9),ROW(1:3)),SUBTOTAL(1,OFFSET(A1,ROW($2:$9)-1,1,1,COLUMNS(B:F)))*1000+ROW(2:9),),)} 将姓名重复三次:{=T(OFFSET(A$1,ROUNDUP(ROW(INDIRECT("1:"&ROWS(A$2:A$5)*3))/3,0),))} 多表汇总金额:{=SUM(SUBTOTAL(6,OFFSET(INDIRECT({"华南区","华东区","华北区"}&"!B1:C1"),ROW(2:10)-1,)))} 从单价表引用单价并汇总金额:{=SUM((N(OFFSET(G1,MATCH(A2:A7,F2:F13,),)))*B2:B7)} 从单价表引用最新单价并汇总金额:{=SUM((N(OFFSET(F1,MATCH(A2:A7,D2:D13,)+(COUNTIF(D2:D13,A2:A7)-1),)))*B2:B7)} 根据完工状况汇总工程款:{=SUM(SUBTOTAL(9,OFFSET(C1,ROW(2:11)-1,,1,2))*(E2:E11=G2))} 统计最后三天的平均销量:{=SUBTOTAL(1,OFFSET(INDIRECT("B"&MAX((A:A<>"")*ROW(1:1048576))),,,-3,1))} 重组培训科目表:姓名=LOOKUP(ROW()-1,COUNTIF(OFFSET(B$1:G$1,,,ROW($1:$7)),"<>"),A$2:A$8)&"";科目=IFERROR(OFFSET(B$2,MATCH(H2,$A$2:$A$7,)-1,COUNTIF($H$2:H2,H2)-1),"") 从多个产品相同单价的单价表中引用单价:=SUMPRODUCT(COUNTIF(OFFSET(A$2,ROW($2:$4)-2,0,1,4),G2)*E$2:E$4)*H2 统计所有业务员销售利润并罗列排列榜:{=OFFSET(A1,MOD(LARGE(INT(SUBTOTAL(6,OFFSET(C2,ROW(C2:C11)-2,,,3)))*1000+ROW(2:11),ROW(2:11)-1),1000)-1,)} 按季度引用不同价格并统计金额与累计:{=IF(A2<>"累计",LOOKUP(COUNTIF(OFFSET(A$1,1,0,ROWS($2:2),),"合计")+1,ROW($2:$5)-1,F$2:F$5)*B2,SUM(C1:C$2*(A1:A$2<>"累计")))} 计算10个月中的销售利润并排名:{=OFFSET(A1,MOD(LARGE(INT(MMULT(SUBTOTAL(6,OFFSET(INDIRECT({"华东区","华南区","华北区","华中区","西南区"}&"!A1"),ROW(2:11)-1,1,1,3)),{1;1;1;1;1}))*1000+ROW(2:11),ROW(1:10)),1000)-1,)} 计算五个地区销售利润:{=TRANSPOSE(MMULT({1,1,1,1,1,1,1,1,1,1},SUBTOTAL(6,OFFSET(INDIRECT({"华东区","华南区","华北区","华中区","西南区"}&"!A1"),ROW(西南区!$2:$11)-1,1,1,3)))*1000+ROW(2:11))} 计算第几轮销量最高以及售货员姓名:{=OFFSET(A1,RIGHT(MAX(SUBTOTAL(9,OFFSET(D1,5*(ROW(INDIRECT("1:"&CEILING(COUNTA(C:C)/5,1)))-1),,5))*10+ROW(INDIRECT("1:"&CEILING(COUNTA(C:C)/5,1)))))*5-1,)} 提取组名及计算每组平均达标率:{=TEXT(SUBTOTAL(1,OFFSET(B1,((ROW(1:4))*2-1),,,8)),"0.00%")} 判断是否超过一半人达标率在90%以上:{=COUNTIF(OFFSET(B1,((ROW(1:4))*2-1),,,8),">=0.9")>COLUMNS(B:I)/2} 分别计算每个班第一名的成绩和姓名:名次{=MAX(SUBTOTAL(9,OFFSET(B$1,ROW($2:$31)-1,1,,COLUMNS(C:I)))*(B$2:B$31=K2))};名{=OFFSET(A$1,MOD(MAX((SUBTOTAL(9,OFFSET(B$1,ROW($2:$31)-1,1,,COLUMNS(C:I)))*1000+ROW($2:$31))*(B$2:B$31=K2)),1000)-1,)} 计算哪一个月完成目标:=OFFSET(A1,LOOKUP(,1*(SUBTOTAL(9,OFFSET(B1,1,0,ROW(2:12)-1))>=200),ROW(2:12)),) 有几次连续三个月的平均值低于整体平均值:{=SUM(N((SUBTOTAL(9,OFFSET(B4,ROW(2:11)-2,,3,2))/3<AVERAGE(SUBTOTAL(9,OFFSET(B4,ROW(2:11)-2,,,2))))))} |