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

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
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

@panyagak

1.05

0.8

2.01

3

How do you want to evaluate these?
 
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,213,536
Messages
6,114,205
Members
448,554
Latest member
Gleisner2

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