Need a formula to identify items that "net to zero" in a column, i.e. +10 and -10

drfernandombbs

New Member
Joined
Dec 5, 2013
Messages
10
I have a column of thousands of values. I have sorted them based on their absolute values, so positive and negative amounts that offset are usually next to each other. I need to identify the amounts that offset with each other, i.e. "net to zero"

For example:

In column A I have the following values:
-100
+100
-50
+50
-25
+25
-20
-15
-10
+10

In this example, I want to identify in the neighboring column the amounts that offset each other. So it will say "nets to zero" next to everything EXCEPT for the -20 and -15, as those do not have offsets.

I tried this formula: =IF(A1+A2=0,"nets to zero","")

However, this formula only puts the text on one of the offsetting cells, not both. Any help?
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
is it a must you use offset, maybe its why your data aint working how you want it to.
 
Upvote 0
try this: If(A1+A2=0,"Nets to Zero","") in B1
If(A2+A1=0,"Nets to Zero","") in B2
then highlight both and copy down. it will alternate the cells and should work for what you are asking for

HTH Don
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,720
Members
448,986
Latest member
andreguerra

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
Back
Top