Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Advance Filter critera range

When using the CriteriaRange do you have to point to a range or can you have
a variable with the correct format?

From the examples it looks you need to point to a range. Either a column
name, value combination or a range formula.

What I'm trying to do is take a spreadsheet that has four distinct values in
column 3 and filtercopy on each value into a new sheet. The data range is
105 columns and many rows with now headings. I create a tmp sheet with
unique values from column 3 and then try to create a range formula, =c1="F".
It seems silly that I can't use this in the criteriaRange:=. I'm sure I'm
doing something wrong.

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Advance Filter critera range

The criteria must be a range.

--
Regards,
Tom Ogilvy

"Dwight Trumbower" wrote in message
...
When using the CriteriaRange do you have to point to a range or can you

have
a variable with the correct format?

From the examples it looks you need to point to a range. Either a column
name, value combination or a range formula.

What I'm trying to do is take a spreadsheet that has four distinct values

in
column 3 and filtercopy on each value into a new sheet. The data range is
105 columns and many rows with now headings. I create a tmp sheet with
unique values from column 3 and then try to create a range formula,

=c1="F".
It seems silly that I can't use this in the criteriaRange:=. I'm sure I'm
doing something wrong.

Thanks




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Advance Filter critera range

When do the following: tmpSheet.Range("B1").Value = "=C9" & Chr(34) & "=" &
myCell.Value & Chr(34)
I get false for the value instead of =C9="F". myCell.Value = F


Dwight

"Tom Ogilvy" wrote in message
...
The criteria must be a range.

--
Regards,
Tom Ogilvy

"Dwight Trumbower" wrote in message
...
When using the CriteriaRange do you have to point to a range or can you

have
a variable with the correct format?

From the examples it looks you need to point to a range. Either a column
name, value combination or a range formula.

What I'm trying to do is take a spreadsheet that has four distinct

values
in
column 3 and filtercopy on each value into a new sheet. The data range

is
105 columns and many rows with now headings. I create a tmp sheet with
unique values from column 3 and then try to create a range formula,

=c1="F".
It seems silly that I can't use this in the criteriaRange:=. I'm sure

I'm
doing something wrong.

Thanks






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
Advanced Filter Critera using formula not working KKPeters Excel Worksheet Functions 5 April 17th 08 10:45 PM
pivot table and critera range filter Conrad Gotzmann Excel Discussion (Misc queries) 1 September 9th 07 04:44 AM
SUMIF when using a range with critera Kristopher Excel Discussion (Misc queries) 2 March 28th 07 02:58 AM
SUMIF when using a range with critera Toppers Excel Discussion (Misc queries) 1 March 28th 07 01:56 AM
SUMIF when using a range with critera John Excel Discussion (Misc queries) 0 March 28th 07 12:57 AM


All times are GMT +1. The time now is 12:31 AM.

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

About Us

"It's about Microsoft Excel"