51Testing软件测试论坛

标题: 关于excel的问题 [打印本页]

作者: happy-sunny    时间: 2007-5-31 20:15
标题: 关于excel的问题
问个问题,excel里面如果b列奇数行与偶数行相等,则得出c列偶数项的值为1有函数 么?
作者: happy-sunny    时间: 2007-5-31 21:15
比如说

B列  第一行的值=第二行的值     则   C列    第二行的值为 1

B列  第三行的值=第四行的值     则   C列    第四行的值为 1

B列  第五行的值=第六行的值     则   C列    第六行的值为 1

..........
作者: 风过无息    时间: 2007-5-31 22:09
自己写个方法实现就好了
作者: howard    时间: 2007-6-1 05:08
标题: 回复 #3 风过无息 的帖子
This is exactly what "IF" function does.

IF(logical_test,value_if_true,value_if_false)

C2:=IF(B1=B2,1,0)
C4:=IF(B3=B4,1,0)
...

You can copy and paste the formula to where ever you want it to be.
作者: howard    时间: 2007-6-1 05:10
标题: 回复 #1 happy-sunny 的帖子
This is exactly what "IF" function does.

IF(logical_test,value_if_true,value_if_false)

C2:=IF(B1=B2,1,0)
C4:=IF(B3=B4,1,0)
...

You can copy and paste the formula to where ever you want it to be.

Good luck
作者: 风过无息    时间: 2007-6-1 08:56
楼上的主意不错,这样方法会很简明的.
作者: happy-sunny    时间: 2007-6-1 10:18
谢谢了,问题解决了sdlkfj2
作者: yuandjing    时间: 2007-6-1 11:36
“howard”不是本国人?




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2