HELP!!!

TNTitans1974

New Member
Joined
Sep 24, 2006
Messages
2
I am trying to get a sum to copy from another page, which I was able to do. Now I am trying to get it to move to another cell if its negitive or stay in the same cell if it is positive. Could someone help how to do this. I can't figure out the language to do an IFTHEN statement, and I don't even know if this is what I would use.

Thanks in advance
:confused:
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825
For the positive cell...

=If(SUM(sheet2!A1:A0)>0,SUM(sheet2!A1:A10),"")

and the negative.....

=If(SUM(sheet2!A1:A0)<0,SUM(sheet2!A1:A10),"")

if the sum is equal to zero then you'll get blanks in both cells
 

Doug.T

Board Regular
Joined
Sep 19, 2006
Messages
80
You would need 2 foumulas, 1 in each cell
positive cell would be =if(sum(myrange)>=0, sum(myrange),"")
The negative cell would be =if(sum(myrange)<0, sum(myrange),"")
 

sgremmo

Board Regular
Joined
Sep 1, 2004
Messages
55
If I understand correctly, i think that you must use If two time:

in cells where place positive =if(yourCell>0, yourCell,)
and in cells where place negative =if(yourCell>0, ,yourCell)

yourCell is riferiment of cell where you get sum!

Ciao
 

Forum statistics

Threads
1,137,340
Messages
5,680,916
Members
419,945
Latest member
Carrie Sellers

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top