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

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Re: Filter whole numbers with + - 0.02 or 0.01

They are all "Dump" as they are less than or equal to 0.02 (before any rounding has been applied). The OP seems to want to reject these first before performing the calculation. That's what I've built into my solution.
 
Upvote 0
Re: Filter whole numbers with + - 0.02 or 0.01

AliGW.
Great.

For Aladin Akyurek, please follow AliGW thread!!

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

Hi Mrexcel

Can I "complicate" matters to the above formula?

Suppose I also need to also extract all numbers ending in .25, .50 and .75 & need to incorporate it in the above formula: something like this?????

=IF(MOD(A1,1)=0.25,A1,"") =IF(MOD(A1,1)=0.50,A1,"") =IF(MOD(A1,1)=0.75,A1,"")

NOT SURE HOW TO!!

Regards
Patrick
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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