0

I have imported data from an outside source into Excel. The data comes as "Profit" in one single column. However, it contains both profit and loss numbers. In order to provide a true analysis, I must be able to separate the data and recognize which cells are profit and which are losses. Below are screenshots of two different sheets of what I have developed so far, but hit a road block.

enter image description here enter image description here

I am trying to take the profit/loss in Column R from the top picture, and calculate these on spreadsheet to (4 Hour) results for G8 & I8 on the bottom picture. If I can do this, all other calculations will be successful. I have not been able to get this to operate properly. Any answers would be appreciated.

4

1 回答 1

1

我的假设是 a) 已应用单元格格式以从负数中删除 - 并将它们涂成红色。b) 亏损为负,盈利为正。

根据所提供示例的固定范围,利润计算如下:

=SUMIF(B2:B11,">=0",B2:B11)

损失计算如下:

=SUMIF(B2:B11,"<=0",B2:B11)

测试工作:

在此处输入图像描述

于 2016-06-13T10:00:30.250 回答