找到两个单元格之间的区别 [英] Find the difference between two cells

查看:122
本文介绍了找到两个单元格之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是我的Excel工作表的示例。因此,我想使用E和D细胞找到增益和损失。如果E> D,它应该计算ED,并且应该在F单元格中输入值,如果E

Below is the example of my Excel sheet. In that I want to find the Gain and Loss using the E and D cells. If E>D it should calculate E-D and the value should be entered in F cell and if E

推荐答案

将此公式输入单元格 F2

=IF(E2 > D2, E2 - D2, "-")

然后在单元格 G2中输入此公式

=IF(E2 <= D2, E2 - D2, "-")

那里的东西不是收益或损失,一个 - 破折号将出现在该列中。

For a row where something is not a gain or a loss, a - dash will appear in that column.

这篇关于找到两个单元格之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆