English 中文(简体)
查找开始和结束列名称
原标题:Finding starting and ending column name

假设我有以下的优秀数据

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+  A  +  B  +  C  +  D  +  E  +  F  +  G  +  H  +  I  +  J  +  K  +  L  +  M  +  N  +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+     +  1  +  2  +  3  +  4  +  4  +  1  +  1  +  2  +  3  +  7  +  3  +  4  +  1  +
+     +  1  +  2  +  3  +  3  +  4  +  2  +  1  +  2  +  3  +  7  +  3  +  4  +  1  +
+     +  0  +  1  +  2  +  3  +  6  +  6  +  3  +  2  +  3  +  7  +  3  +  4  +  1  +
+     +  0  +  0  +  0  +  0  +  0  +  0  +  0  +  0  +  0  +  0  +  0  +  0  +  0  +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

我想找到的是不正确的行, 即所有列不应该有 0。 要得到这个, 我用在 N 单元格的公式下面。

<%code%if( SUM( B1: M1) & gt; 0, 1,0)

NOTE: 所有单元格都将只有非负数。

在以上的例子中,我有第4行是不正确的行,因此我的价值是0。

我想要的是,与其手工写下B1:M1 ,不如用手工写下B1:M1 , 是否有任何方法能显示单元格/栏的起始和结尾名称。

以上例子

Starting cell/column will be B
Ending cell/column will be   M
问题回答

您正在寻找 < a href=> http://www.homeandlearn.co.uk/excel2007/excel2007/excel2007/excel2007s7p6.html" rel=“ no follow” > 命名为 Excel 的区域 内建特性 。

B:M 上创建命名区域并将其用于您的公式中。命名区域是一种方式,可以在不同范围的电子表格中写出一致的相同公式。

我不用Vba就可以做到(但令我感到很震惊的是,

我用第五排第五排来计算这些计算 将第五排改成你需要的

Cell 1 - beginning column - enter as an array formula (Ctrl+Shift+Enter) =MATCH(TRUE,5:5>0,0) (excel will put {} around it if entered correctly
Cell 2 - number of columns - =COUNTA(5:5)
Final Cell - your check - =if(SUM(INDIRECT(ADDRESS(5,Cell_1)&":"&ADDRESS(5,Cell_1+Cell_2)))>0,1,0)





相关问题
import of excel in SQL imports NULL lines

I have a stored procedure that imports differently formatted workbooks into a database table, does work on them then drops the table. Here is the populating query. SELECT IDENTITY(INT,1,1) AS ID ...

Connecting to Oracle 10g with ODBC from Excel VBA

The following code works. the connection opens fine but recordset.recordCount always returns -1 when there is data in the table. ANd If I try to call any methods/properties on recordset it crashes ...

Excel date to Unix timestamp

Does anyone know how to convert an Excel date to a correct Unix timestamp?

C# GemBox Excel Import Error

I am trying to import an excel file into a data table using GemBox and I keep getting this error: Invalid data value when extracting to DataTable at SourceRowIndex: 1, and SourceColumnIndex: 1. As ...

Importing from excel "applications" using SSIS

I am looking for any tips or resources on importing from excel into a SQL database, but specifically when the information is NOT in column and row format. I am currently doing some pre-development ...

热门标签