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

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
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,223,911
Messages
6,175,333
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