ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   filter a column from other sheet. (https://www.excelbanter.com/excel-discussion-misc-queries/193877-filter-column-other-sheet.html)

Nader

filter a column from other sheet.
 
Is it possible i can type a value in a cell and excel filter in specified
sheet&column by this value?

kind regards

thanks

Gary Brown[_4_]

filter a column from other sheet.
 
Yes but you'd need a very specific macro.
--
Hope this helps.
Gary Brown


"nader" wrote:

Is it possible i can type a value in a cell and excel filter in specified
sheet&column by this value?

kind regards

thanks


Nader

filter a column from other sheet.
 
hi Gary Brown
thank you for reply and helps.
How can i getting specific macro for following example:

i type a date in "sheet2;A1"and a date in "sheet2;A2" then i want filtering
in sheet1;column F by custom: greater than or equal to"sheet2;A1" And less
than or equal to "sheet2;A2".

sorry; new in english.

many thanks.

"Gary Brown" wrote:

Yes but you'd need a very specific macro.
--
Hope this helps.
Gary Brown


"nader" wrote:

Is it possible i can type a value in a cell and excel filter in specified
sheet&column by this value?

kind regards

thanks


Gary Brown[_4_]

filter a column from other sheet.
 
Here's a macro that would work....

Sub FilterMe()
On Error Resume Next

Selection.AutoFilter Field:=6, _
Criteria1:="=" & Range("Sheet2!A1").Value, _
Operator:=xlAnd, _
Criteria2:="<=" & Range("Sheet2!A2").Value

End Sub

--
Hope this helps.
If this post was helpfull, please remember to click on the ''''YES''''
button at the bottom of the screen.
Thanks,
Gary Brown


"nader" wrote:

hi Gary Brown
thank you for reply and helps.
How can i getting specific macro for following example:

i type a date in "sheet2;A1"and a date in "sheet2;A2" then i want filtering
in sheet1;column F by custom: greater than or equal to"sheet2;A1" And less
than or equal to "sheet2;A2".

sorry; new in english.

many thanks.

"Gary Brown" wrote:

Yes but you'd need a very specific macro.
--
Hope this helps.
Gary Brown


"nader" wrote:

Is it possible i can type a value in a cell and excel filter in specified
sheet&column by this value?

kind regards

thanks


Nader

filter a column from other sheet.
 
Dear Gary
thank you very much; i'm glad to communicate you.

it works successfully but there is a small difficulty;"custom" adjusted by
criteria range (specified value) currently but doesn't filter by this
adjusting and return 00/01/00 date every time. i see format cell in 'date'
but it doesn't work too.


"Gary Brown" wrote:

Here's a macro that would work....

Sub FilterMe()
On Error Resume Next

Selection.AutoFilter Field:=6, _
Criteria1:="=" & Range("Sheet2!A1").Value, _
Operator:=xlAnd, _
Criteria2:="<=" & Range("Sheet2!A2").Value

End Sub

--
Hope this helps.
If this post was helpfull, please remember to click on the ''''YES''''
button at the bottom of the screen.
Thanks,
Gary Brown


"nader" wrote:

hi Gary Brown
thank you for reply and helps.
How can i getting specific macro for following example:

i type a date in "sheet2;A1"and a date in "sheet2;A2" then i want filtering
in sheet1;column F by custom: greater than or equal to"sheet2;A1" And less
than or equal to "sheet2;A2".

sorry; new in english.

many thanks.

"Gary Brown" wrote:

Yes but you'd need a very specific macro.
--
Hope this helps.
Gary Brown


"nader" wrote:

Is it possible i can type a value in a cell and excel filter in specified
sheet&column by this value?

kind regards

thanks



All times are GMT +1. The time now is 09:04 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com