Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Filtering on Formulas (makes messy sheets)

P.S. Advanced Filtering and formulas such as '=X2<=V2'

Is there any way, inside Excel, via a macro, or via an add-on, that I can
do filtering on such formulas (you can see I'm just comparing two values in
different columns) WITHOUT having to place the formula first into a cell in
the spreadsheet itself.

Alternatively, if someone can offer general advice about where to best place
such formulas so as to reduce the likelyhood of messing up the spreadsheet
now or in the future, I'd appreciate that advice.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Filtering on Formulas (makes messy sheets)

for the critiera range, put in a dummy header, like Dummy (shouldn't match
any of your real header names)

below the dummy header put in your formula

Dummy
=X2<V2

where the range references refer to the row below the header row.

Worked for me.

so a macro:
Sub CopyData()
Range("AC1") = "Dummy"
Range("AC2").Formula = "=X2<V2"
Range("AE1:AG1").Value = Array("Header1", "Header22", "Header24")
Range("A1:Z50").AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Range("AC1:AC2"), _
CopyToRange:=Range("AE1:AG1"), Unique:=False

End Sub






Regards,
Tom Ogilvy


"Progster" wrote in message
...
P.S. Advanced Filtering and formulas such as '=X2<=V2'

Is there any way, inside Excel, via a macro, or via an add-on, that I can
do filtering on such formulas (you can see I'm just comparing two values

in
different columns) WITHOUT having to place the formula first into a cell

in
the spreadsheet itself.

Alternatively, if someone can offer general advice about where to best

place
such formulas so as to reduce the likelyhood of messing up the spreadsheet
now or in the future, I'd appreciate that advice.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Messy Formula needs clean up help! Danny Boy Excel Worksheet Functions 7 March 19th 10 03:24 PM
VBA not working - Messy. NPell Excel Worksheet Functions 1 February 9th 09 02:46 PM
Messy tab characters Gargoyl Excel Discussion (Misc queries) 2 April 19th 06 11:09 PM
Messy Text to Columns sweeneysmsm Excel Discussion (Misc queries) 3 November 8th 05 01:08 AM
Filtering for multiple sheets JVDM Excel Discussion (Misc queries) 1 October 11th 05 10:50 PM


All times are GMT +1. The time now is 06:30 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"