Re: Filter whole numbers with + - 0.02 or 0.01

panyagak

Active Member
Joined
Feb 24, 2017
Messages
299
Re: Filter whole numbers with + - 0.02 or 0.01

Hi Joe4 & Happy Easter

Refer to the above title and below is your answer:
It works perfectly though 0.01s & 0.02s are also
"TRUE"- I dont need them.

Any way to lock them out by adjusting the code.

This formula will tell you which ones to Keep/
Dump (for an entry in cell A1):

Code:

=IF(ABS(ROUND(A1,0)-A1)<=0.02,"KEEP","DUMP")

Regards
Patrick
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Re: Filter whole numbers with + - 0.02 or 0.01

Where is the original formula that Joe4 gave you? :confused:
 
Upvote 0
Re: Filter whole numbers with + - 0.02 or 0.01

This maybe?

=IF(ABS(A1)<=0.02,"DUMP",IF(ABS(ROUND(A1,0)-A1)<=0.02,"KEEP","DUMP"))
 
Upvote 0
Re: Filter whole numbers with + - 0.02 or 0.01

Aladin Akyurek

Please type in Excel
0.01
0.02
0.01
0.02
apply Joe4's formula, then refer to my problem!!

thanks
 
Upvote 0
Re: Filter whole numbers with + - 0.02 or 0.01

See my solution in post #7. ;)
 
Last edited:
Upvote 0
Re: Filter whole numbers with + - 0.02 or 0.01

AliGW

I saw your post & formula: havent tested it yet BUT if it returns DUMP for;
0.01
0.02
0.01
0.02 in Excel, GREAT!!

Regards
Patrick
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,331
Members
452,636
Latest member
laura12345

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