Office & Productivity Software forum

General discussion

excel filter in xp

by username_10billion / November 20, 2004 12:07 AM PST

I need to filter my results in a excel worksheet. I have a row of values representing profit in

Discussion is locked
You are posting a reply to: excel filter in xp
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: excel filter in xp
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
Re: excel filter in xp
by swisse / November 22, 2004 6:36 AM PST
In reply to: excel filter in xp

Hello username,
if you know a little bit of macro writing in Excel then copy this code and place it in a procedure:

Option Base 1
Sub ShowGreaterHideLesser()
Application.ScreenUpdating = False
Dim tmp As Long
tmp = 0
a = Array("A", "B", "C", "D", "E", "F", "G")
For ctr = 1 To 7
Range(a(ctr) & 10).Select
If ActiveCell.Value > 3 Then
tmp = ActiveCell.Value
ActiveCell.Offset(2, 0).Select
ActiveCell.Value = tmp
tmp = 0
End If
Application.ScreenUpdating = True
End Sub

The Option Base 1 declaration should be put in the declarations area. Make a button and assign it the name ShowGreaterHideLesser along with the code. The Array contains the columns A to G for example, and it starts at row 10 also as an example. You could change these ones later to suit your needs.
If you have questions don't be ashamed to ask. I might not be able to answer immediately if I'm at work. Hope this helps a bit.


Collapse -
Re: excel filter in xp
by Kees Bakker / November 22, 2004 7:17 AM PST
In reply to: excel filter in xp

How about an if-function? No need for a macro, in my opinion.


To make it more general, put the 3.00 in another cell, say b7 and make the formula


Hope this helps.


Popular Forums
Computer Help 51,912 discussions
Computer Newbies 10,498 discussions
Laptops 20,411 discussions
Security 30,882 discussions
TVs & Home Theaters 21,253 discussions
Windows 10 1,672 discussions
Phones 16,494 discussions
Windows 7 7,855 discussions
Networking & Wireless 15,504 discussions


Meet the drop-resistant Moto Z2 Force

The Moto Z2 Force is really thin, with a fast processor and great battery life. It can survive drops without shattering.