几天来,我一直在寻找解决问题的方法,却没有任何运气。也许我根本无法为这个问题找到正确的措辞,但希望有人能在这里理解我。
我很难同时显示多个列中的数据,在我的例子中,要显示的数据是各种股票的交易日。由于不同股票的交易日不同,我希望有一个列显示所有其他列中的日期,以便只查看所有股票的共同交易日。
如果我不清楚,我很抱歉,因为这是我的第一个问题。如果有人能给我指明正确的方向,我将非常感激。
这是谷歌电子表格链接,这样你就可以看到我所说的不同交易日的含义。其思想是使A列同时出现在B、F、J、N、R、V列中,而不显示其他日期。
https://docs.google.com/spreadsheets/d/19GsIAtEdWPGcBfNOPaeqNVB7QQNO-bOyg-dCZzDaGkQ/edit?usp=sharing
编辑:为了显示我想要的输出,下面是另一个例子:
https://docs.google.com/spreadsheets/d/1jrIqaEzDPWcW4hkF2YdHq9XYIWjG8PhrewYrBHqEdVY/edit?usp=sharing
这些日期自动从谷歌金融公司( google )中提取。由于不同的交易所在不同的日期开放,所以每只股票在B-E栏中都有不同的开放日。
我要做的是在A列中有一个公式,它检查所有其他列,并返回出现在其他列中的数据(在本例中是日期),丢弃其他列中没有出现的数据。例如,2013年9月3日出现在所有B-E列中,因此会显示,但2013年9月12日没有出现在B列中,因此没有显示。
干杯
发布于 2014-08-21 13:38:55
去File -> Spreadsheet settings,在locale下面选择正确的国家。然后选择“所有日期列”,单击“format->number->date”或单击工具栏上的“123v”按钮,然后选择“日期”。
- for a value to be repeated across all 6 columns, that value must appear in column B.
- you therefore want column A to contain the value of the adjacent cell in column B, if that value also appears anywhere in column F,J,N,R and V.
- to check if value of B4 appears in column F you can use [`COUNTIF`](https://support.google.com/docs/answer/3093480?hl=en) function. If the result if >0, than value of B4 appears in column F. Repeat for all columns and combine to achieve the following formula (to go in cell A4) : =if(countif(F:F,B4)*countif(J:J,B4)*countif(N:N,B4)*countif(R:R,B4)*countif(V:V,B4),B4,)
- now copy this formula down, and only dates that appear in all columns will be displayed in column A.
发布于 2014-08-21 12:56:29
使用IF和COUNTIF。我想这就是你要找的。
IF(COUNTIF(B4:V4,B4)=6,B4,NA())https://stackoverflow.com/questions/25426461
复制相似问题