Formula to match negative and positive numbers

JRAMZ88

New Member
Joined
Jun 7, 2017
Messages
28
Office Version
  1. 365
Platform
  1. Windows
Hi everyone!

I'm working on a project where I need to match numbers regardless if they are positive or negative so as long as they have a pair...

I'm looking for a formula that will highlight the matches, but also ignore if there is more than one... shown below is an example.

Is that something someone here can help me with if possible? The data set is huge and doing manually is time consuming.

As always, appreciative of the feedback!
Thank you,


1687357295914.png
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Try using conditional formatting as shown here. You don't need the B column formula...I included it to show the logic. The formula itself is entered into the Conditional Formatting window.
Book5
AB
11000TRUE
2-1000TRUE
31200FALSE
41500TRUE
5-1500TRUE
61500FALSE
72000TRUE
8-2000TRUE
Sheet1
Cell Formulas
RangeFormula
B1:B8B1=AND(SUMPRODUCT(--(ABS(A$1:A$8)=ABS(A1)))>1,SUMPRODUCT(--(ABS(A$1:A1)=ABS(A1)))<3)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:A8Expression=AND(SUMPRODUCT(--(ABS(A$1:A$8)=ABS(A1)))>1,SUMPRODUCT(--(ABS(A$1:A1)=ABS(A1)))<3)textNO
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,287
Members
452,631
Latest member
a_potato

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