#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 96
Default Match not sure

I have a spread sheet that has 65 columns with modules (security) and 1500
rows of employees. If an employee has access to a module there is a Y, if
not a N.
How can I pull out everyone that has a Y in all the same columns? I want to
group the employees that have the same module access. I'm not sure if a
match formula will work. I would like to group them in a seperate worksheet.
Thanks,
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Match not sure

Why not just use AutoFilter on those columns with a Y value?

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Pammy" wrote in message
...
I have a spread sheet that has 65 columns with modules (security) and 1500
rows of employees. If an employee has access to a module there is a Y, if
not a N.
How can I pull out everyone that has a Y in all the same columns? I want
to
group the employees that have the same module access. I'm not sure if a
match formula will work. I would like to group them in a seperate
worksheet.
Thanks,



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 96
Default Match not sure

Because there are two many columns and I want to pull them out onto another
worksheet without having to copy and paste on each filter.

"Bob Phillips" wrote:

Why not just use AutoFilter on those columns with a Y value?

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Pammy" wrote in message
...
I have a spread sheet that has 65 columns with modules (security) and 1500
rows of employees. If an employee has access to a module there is a Y, if
not a N.
How can I pull out everyone that has a Y in all the same columns? I want
to
group the employees that have the same module access. I'm not sure if a
match formula will work. I would like to group them in a seperate
worksheet.
Thanks,




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Match not sure

TRy this then, essentially what I suggested, in code

Public Sub ProcessData()
Const TEST_COLUMN As String = "A" '<=== change to suit
Dim i As Long
Dim iLastRow As Long
Dim iLastCol As Long
Dim rng As Range
Dim sh As Worksheet

With ActiveSheet

iLastRow = .Cells(.Rows.Count, "A").End(xlUp).Row
iLastCol = .Cells(1, .Columns.Count).End(xlToLeft).Column
.Columns(2).Insert
.Range("B1").Value = "Temp"
.Range("B2").FormulaR1C1 = "=COUNTIF(RC[1]:RC[" & iLastCol + 1 &
"],""Y"")"
.Range("B2").AutoFill Destination:=.Range("B2").Resize(iLastRow -
1), Type:=xlFillDefault
.Columns("B:B").AutoFilter
.Columns("B:B").AutoFilter Field:=1, Criteria1:="=" & iLastCol - 1,
Operator:=xlAnd
Set rng = .Range("A2").Resize(iLastRow -
1).SpecialCells(xlCellTypeVisible)
rng.Copy Destination:=Worksheets("Sheet3").Range("A1")
.Columns(2).Delete
End With

End Sub



--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Pammy" wrote in message
...
Because there are two many columns and I want to pull them out onto
another
worksheet without having to copy and paste on each filter.

"Bob Phillips" wrote:

Why not just use AutoFilter on those columns with a Y value?

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"Pammy" wrote in message
...
I have a spread sheet that has 65 columns with modules (security) and
1500
rows of employees. If an employee has access to a module there is a Y,
if
not a N.
How can I pull out everyone that has a Y in all the same columns? I
want
to
group the employees that have the same module access. I'm not sure if
a
match formula will work. I would like to group them in a seperate
worksheet.
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
index match array function-returning only first match, need last. Julie Olsen Excel Worksheet Functions 3 December 29th 06 12:50 AM
Lookup? Match? pulling rows from one spreadsheet to match a text f cjax Excel Worksheet Functions 3 July 21st 06 02:51 PM
Any way for 2 column vlookups. i.e match last name then match firs CraigS Excel Worksheet Functions 5 March 7th 06 12:30 AM
How do I display more than one match in a Index/Match formula? Trish Excel Worksheet Functions 0 September 26th 05 10:21 PM
index,match,match on un-sorted data Brisbane Rob Excel Worksheet Functions 3 September 24th 05 10:04 PM


All times are GMT +1. The time now is 09:14 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"