macro or a formula which could find the approximate figure of oposite sign

harry2908

Board Regular
Joined
May 7, 2010
Messages
87
Hi,
Can someone please advise, I need a macro or a formula which could find the approximate figure of oposite sign with a diffence of 4000.

For example:-

I have a amount 50,000 in cell A1, in the same coulmn if there is any figure in oposite sign with a differnce of +/-4000, so it should find/color 47000 or 53000
 
One way of doing this would be to put the following formula into cells B2 and copying down. Any value that fits the criteria of 46000 - 54000 would have a value of 1.

=IF(AND(A2>=$A$1-4000,A2<=$A$1+4000),1,0)

Hope this helps
 
Upvote 0

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