Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default How do I make a report listing Names and corresponding programs?

I have a workbook with several worksheets. Each worksheet is divided by the
software they have access to. There's overlapping names in each worksheet as
some names have access to more than one software. How can I make this into a
report listing the names on the left column, the names of the software listed
across the top row, and a mark below each column if that person has access to
that software.

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default How do I make a report listing Names and corresponding programs?

How are the individual sheets laid out? Just a list of names down column A?

HTH,
Bernie
MS Excel MVP


"NeedExcelHelp07" wrote in message
...
I have a workbook with several worksheets. Each worksheet is divided by the
software they have access to. There's overlapping names in each worksheet as
some names have access to more than one software. How can I make this into a
report listing the names on the left column, the names of the software listed
across the top row, and a mark below each column if that person has access to
that software.

Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default How do I make a report listing Names and corresponding program

Yes, the names are listed down column A. Each sheet is labeled after the
Software (Software A, Software B, etc.)

"Bernie Deitrick" wrote:

How are the individual sheets laid out? Just a list of names down column A?

HTH,
Bernie
MS Excel MVP


"NeedExcelHelp07" wrote in message
...
I have a workbook with several worksheets. Each worksheet is divided by the
software they have access to. There's overlapping names in each worksheet as
some names have access to more than one software. How can I make this into a
report listing the names on the left column, the names of the software listed
across the top row, and a mark below each column if that person has access to
that software.

Thanks!




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default How do I make a report listing Names and corresponding program

Run the macro below. Change the "Yes" to the mark that you want: an "X", or perhaps a wingding font
checkmark.... You may need to apply formatting to the cells (either manually or with the macro) if
you use the wingding....

HTH,
Bernie
MS Excel MVP


Sub Macro1()
Dim mySht As Worksheet
Dim mySumSheet As Worksheet
Dim myCell As Range
Dim myDest As Range
Dim myRow As Long

On Error Resume Next
Application.DisplayAlerts = False
Worksheets("Summary").Delete
Application.DisplayAlerts = True

ActiveSheet.Copy Befo=Sheets(1)
Set mySumSheet = ActiveSheet
mySumSheet.Name = "Summary"

For Each mySht In ActiveWorkbook.Worksheets
If mySht.Name = "Summary" Then GoTo SkipMe:
Set myDest = mySumSheet.Cells(1, 256).End(xlToLeft)(1, 2)
myDest.Value = mySht.Name
Set myDest = myDest.EntireColumn

For Each myCell In mySht.Range("A1").CurrentRegion.Columns(1).Cells
If myCell.Row < 1 Then
If Not IsError(Application.Match(myCell.Value, mySumSheet.Range("A:A"), False)) Then
myDest.Cells(Application.Match(myCell.Value, mySumSheet.Range("A:A"), False)).Value =
"Yes"
Else
myRow = mySumSheet.Cells(Rows.Count, 1).End(xlUp)(2).Row
mySumSheet.Cells(myRow, 1).Value = myCell.Value
myDest.Cells(myRow).Value = "Yes"

End If
End If
Next myCell
SkipMe:
Next mySht

End Sub



"NeedExcelHelp07" wrote in message
...
Yes, the names are listed down column A. Each sheet is labeled after the
Software (Software A, Software B, etc.)

"Bernie Deitrick" wrote:

How are the individual sheets laid out? Just a list of names down column A?

HTH,
Bernie
MS Excel MVP


"NeedExcelHelp07" wrote in message
...
I have a workbook with several worksheets. Each worksheet is divided by the
software they have access to. There's overlapping names in each worksheet as
some names have access to more than one software. How can I make this into a
report listing the names on the left column, the names of the software listed
across the top row, and a mark below each column if that person has access to
that software.

Thanks!






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default How do I make a report listing Names and corresponding program

Thanks a lot! How can I run this Macro if in each sheet there's a login ID
down Column A, and in some instances there's a secondary ID down Column B,
then the names in Column C. Each sheet represents a different software as
mentioned previously. So same macro but there's two more columns of
information.
"Bernie Deitrick" wrote:

Run the macro below. Change the "Yes" to the mark that you want: an "X", or perhaps a wingding font
checkmark.... You may need to apply formatting to the cells (either manually or with the macro) if
you use the wingding....

HTH,
Bernie
MS Excel MVP


Sub Macro1()
Dim mySht As Worksheet
Dim mySumSheet As Worksheet
Dim myCell As Range
Dim myDest As Range
Dim myRow As Long

On Error Resume Next
Application.DisplayAlerts = False
Worksheets("Summary").Delete
Application.DisplayAlerts = True

ActiveSheet.Copy Befo=Sheets(1)
Set mySumSheet = ActiveSheet
mySumSheet.Name = "Summary"

For Each mySht In ActiveWorkbook.Worksheets
If mySht.Name = "Summary" Then GoTo SkipMe:
Set myDest = mySumSheet.Cells(1, 256).End(xlToLeft)(1, 2)
myDest.Value = mySht.Name
Set myDest = myDest.EntireColumn

For Each myCell In mySht.Range("A1").CurrentRegion.Columns(1).Cells
If myCell.Row < 1 Then
If Not IsError(Application.Match(myCell.Value, mySumSheet.Range("A:A"), False)) Then
myDest.Cells(Application.Match(myCell.Value, mySumSheet.Range("A:A"), False)).Value =
"Yes"
Else
myRow = mySumSheet.Cells(Rows.Count, 1).End(xlUp)(2).Row
mySumSheet.Cells(myRow, 1).Value = myCell.Value
myDest.Cells(myRow).Value = "Yes"

End If
End If
Next myCell
SkipMe:
Next mySht

End Sub



"NeedExcelHelp07" wrote in message
...
Yes, the names are listed down column A. Each sheet is labeled after the
Software (Software A, Software B, etc.)

"Bernie Deitrick" wrote:

How are the individual sheets laid out? Just a list of names down column A?

HTH,
Bernie
MS Excel MVP


"NeedExcelHelp07" wrote in message
...
I have a workbook with several worksheets. Each worksheet is divided by the
software they have access to. There's overlapping names in each worksheet as
some names have access to more than one software. How can I make this into a
report listing the names on the left column, the names of the software listed
across the top row, and a mark below each column if that person has access to
that software.

Thanks!








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default How do I make a report listing Names and corresponding program

What information do you want to extract from each sheet? Just the name, or
do you need to get the login information as well when the name is new?

Bernie

"NeedExcelHelp07" wrote in
message ...
Thanks a lot! How can I run this Macro if in each sheet there's a login ID
down Column A, and in some instances there's a secondary ID down Column B,
then the names in Column C. Each sheet represents a different software as
mentioned previously. So same macro but there's two more columns of
information.
"Bernie Deitrick" wrote:

Run the macro below. Change the "Yes" to the mark that you want: an "X",
or perhaps a wingding font
checkmark.... You may need to apply formatting to the cells (either
manually or with the macro) if
you use the wingding....

HTH,
Bernie
MS Excel MVP


Sub Macro1()
Dim mySht As Worksheet
Dim mySumSheet As Worksheet
Dim myCell As Range
Dim myDest As Range
Dim myRow As Long

On Error Resume Next
Application.DisplayAlerts = False
Worksheets("Summary").Delete
Application.DisplayAlerts = True

ActiveSheet.Copy Befo=Sheets(1)
Set mySumSheet = ActiveSheet
mySumSheet.Name = "Summary"

For Each mySht In ActiveWorkbook.Worksheets
If mySht.Name = "Summary" Then GoTo SkipMe:
Set myDest = mySumSheet.Cells(1, 256).End(xlToLeft)(1, 2)
myDest.Value = mySht.Name
Set myDest = myDest.EntireColumn

For Each myCell In mySht.Range("A1").CurrentRegion.Columns(1).Cells
If myCell.Row < 1 Then
If Not IsError(Application.Match(myCell.Value,
mySumSheet.Range("A:A"), False)) Then
myDest.Cells(Application.Match(myCell.Value,
mySumSheet.Range("A:A"), False)).Value =
"Yes"
Else
myRow = mySumSheet.Cells(Rows.Count, 1).End(xlUp)(2).Row
mySumSheet.Cells(myRow, 1).Value = myCell.Value
myDest.Cells(myRow).Value = "Yes"

End If
End If
Next myCell
SkipMe:
Next mySht

End Sub



"NeedExcelHelp07" wrote in
message
...
Yes, the names are listed down column A. Each sheet is labeled after
the
Software (Software A, Software B, etc.)

"Bernie Deitrick" wrote:

How are the individual sheets laid out? Just a list of names down
column A?

HTH,
Bernie
MS Excel MVP


"NeedExcelHelp07" wrote in
message
...
I have a workbook with several worksheets. Each worksheet is divided
by the
software they have access to. There's overlapping names in each
worksheet as
some names have access to more than one software. How can I make
this into a
report listing the names on the left column, the names of the
software listed
across the top row, and a mark below each column if that person has
access to
that software.

Thanks!








  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default How do I make a report listing Names and corresponding program

I want to extract the name and the login and then if there's a secondary ID,
that information as well.

"Bernie Deitrick" wrote:

What information do you want to extract from each sheet? Just the name, or
do you need to get the login information as well when the name is new?

Bernie

"NeedExcelHelp07" wrote in
message ...
Thanks a lot! How can I run this Macro if in each sheet there's a login ID
down Column A, and in some instances there's a secondary ID down Column B,
then the names in Column C. Each sheet represents a different software as
mentioned previously. So same macro but there's two more columns of
information.
"Bernie Deitrick" wrote:

Run the macro below. Change the "Yes" to the mark that you want: an "X",
or perhaps a wingding font
checkmark.... You may need to apply formatting to the cells (either
manually or with the macro) if
you use the wingding....

HTH,
Bernie
MS Excel MVP


Sub Macro1()
Dim mySht As Worksheet
Dim mySumSheet As Worksheet
Dim myCell As Range
Dim myDest As Range
Dim myRow As Long

On Error Resume Next
Application.DisplayAlerts = False
Worksheets("Summary").Delete
Application.DisplayAlerts = True

ActiveSheet.Copy Befo=Sheets(1)
Set mySumSheet = ActiveSheet
mySumSheet.Name = "Summary"

For Each mySht In ActiveWorkbook.Worksheets
If mySht.Name = "Summary" Then GoTo SkipMe:
Set myDest = mySumSheet.Cells(1, 256).End(xlToLeft)(1, 2)
myDest.Value = mySht.Name
Set myDest = myDest.EntireColumn

For Each myCell In mySht.Range("A1").CurrentRegion.Columns(1).Cells
If myCell.Row < 1 Then
If Not IsError(Application.Match(myCell.Value,
mySumSheet.Range("A:A"), False)) Then
myDest.Cells(Application.Match(myCell.Value,
mySumSheet.Range("A:A"), False)).Value =
"Yes"
Else
myRow = mySumSheet.Cells(Rows.Count, 1).End(xlUp)(2).Row
mySumSheet.Cells(myRow, 1).Value = myCell.Value
myDest.Cells(myRow).Value = "Yes"

End If
End If
Next myCell
SkipMe:
Next mySht

End Sub



"NeedExcelHelp07" wrote in
message
...
Yes, the names are listed down column A. Each sheet is labeled after
the
Software (Software A, Software B, etc.)

"Bernie Deitrick" wrote:

How are the individual sheets laid out? Just a list of names down
column A?

HTH,
Bernie
MS Excel MVP


"NeedExcelHelp07" wrote in
message
...
I have a workbook with several worksheets. Each worksheet is divided
by the
software they have access to. There's overlapping names in each
worksheet as
some names have access to more than one software. How can I make
this into a
report listing the names on the left column, the names of the
software listed
across the top row, and a mark below each column if that person has
access to
that software.

Thanks!









  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default How do I make a report listing Names and corresponding program

Try this version, below.

HTH,
Bernie
MS Excel MVP

Sub MakeSummarySheetV2()
Dim mySht As Worksheet
Dim mySumSheet As Worksheet
Dim myCell As Range
Dim myDest As Range
Dim myRow As Long

On Error Resume Next
Application.DisplayAlerts = False
Worksheets("Summary").Delete
Application.DisplayAlerts = True

ActiveSheet.Copy Befo=Sheets(1)
Set mySumSheet = ActiveSheet
mySumSheet.Name = "Summary"

For Each mySht In ActiveWorkbook.Worksheets
If mySht.Name = "Summary" Then GoTo SkipMe:
Set myDest = mySumSheet.Cells(1, 256).End(xlToLeft)(1, 2)
myDest.Value = mySht.Name
Set myDest = myDest.EntireColumn

For Each myCell In mySht.Range("C1").CurrentRegion.Columns(3).Cells
If myCell.Row < 1 Then
If Not IsError(Application.Match(myCell.Value, _
mySumSheet.Range("C:C"), False)) Then
myDest.Cells(Application.Match(myCell.Value, _
mySumSheet.Range("C:C"), False)).Value = "Yes"
Else
myRow = mySumSheet.Cells(Rows.Count, 1).End(xlUp)(2).Row
mySumSheet.Cells(myRow, 1).Value = myCell.Offset(0, -2).Value
mySumSheet.Cells(myRow, 2).Value = myCell.Offset(0, -1).Value
mySumSheet.Cells(myRow, 3).Value = myCell.Value
myDest.Cells(myRow).Value = "Yes"
End If
End If
Next myCell
SkipMe:
Next mySht

End Sub



"NeedExcelHelp07" wrote in message
...
I want to extract the name and the login and then if there's a secondary ID,
that information as well.

"Bernie Deitrick" wrote:

What information do you want to extract from each sheet? Just the name, or
do you need to get the login information as well when the name is new?

Bernie

"NeedExcelHelp07" wrote in
message ...
Thanks a lot! How can I run this Macro if in each sheet there's a login ID
down Column A, and in some instances there's a secondary ID down Column B,
then the names in Column C. Each sheet represents a different software as
mentioned previously. So same macro but there's two more columns of
information.
"Bernie Deitrick" wrote:

Run the macro below. Change the "Yes" to the mark that you want: an "X",
or perhaps a wingding font
checkmark.... You may need to apply formatting to the cells (either
manually or with the macro) if
you use the wingding....

HTH,
Bernie
MS Excel MVP


Sub Macro1()
Dim mySht As Worksheet
Dim mySumSheet As Worksheet
Dim myCell As Range
Dim myDest As Range
Dim myRow As Long

On Error Resume Next
Application.DisplayAlerts = False
Worksheets("Summary").Delete
Application.DisplayAlerts = True

ActiveSheet.Copy Befo=Sheets(1)
Set mySumSheet = ActiveSheet
mySumSheet.Name = "Summary"

For Each mySht In ActiveWorkbook.Worksheets
If mySht.Name = "Summary" Then GoTo SkipMe:
Set myDest = mySumSheet.Cells(1, 256).End(xlToLeft)(1, 2)
myDest.Value = mySht.Name
Set myDest = myDest.EntireColumn

For Each myCell In mySht.Range("A1").CurrentRegion.Columns(1).Cells
If myCell.Row < 1 Then
If Not IsError(Application.Match(myCell.Value,
mySumSheet.Range("A:A"), False)) Then
myDest.Cells(Application.Match(myCell.Value,
mySumSheet.Range("A:A"), False)).Value =
"Yes"
Else
myRow = mySumSheet.Cells(Rows.Count, 1).End(xlUp)(2).Row
mySumSheet.Cells(myRow, 1).Value = myCell.Value
myDest.Cells(myRow).Value = "Yes"

End If
End If
Next myCell
SkipMe:
Next mySht

End Sub



"NeedExcelHelp07" wrote in
message
...
Yes, the names are listed down column A. Each sheet is labeled after
the
Software (Software A, Software B, etc.)

"Bernie Deitrick" wrote:

How are the individual sheets laid out? Just a list of names down
column A?

HTH,
Bernie
MS Excel MVP


"NeedExcelHelp07" wrote in
message
...
I have a workbook with several worksheets. Each worksheet is divided
by the
software they have access to. There's overlapping names in each
worksheet as
some names have access to more than one software. How can I make
this into a
report listing the names on the left column, the names of the
software listed
across the top row, and a mark below each column if that person has
access to
that software.

Thanks!











  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default How do I make a report listing Names and corresponding program

Ok this macro works. Now the only problem is how do I merge the information
of all the duplicates? There are 30,000 plus users so I can't go one by one.
In coumn A is the Id which is unique to the user. There's an X marked which
indicates they have access to that software. Is there a way to merge the
information from the duplicates?
Thanks!

"Bernie Deitrick" wrote:

Try this version, below.

HTH,
Bernie
MS Excel MVP

Sub MakeSummarySheetV2()
Dim mySht As Worksheet
Dim mySumSheet As Worksheet
Dim myCell As Range
Dim myDest As Range
Dim myRow As Long

On Error Resume Next
Application.DisplayAlerts = False
Worksheets("Summary").Delete
Application.DisplayAlerts = True

ActiveSheet.Copy Befo=Sheets(1)
Set mySumSheet = ActiveSheet
mySumSheet.Name = "Summary"

For Each mySht In ActiveWorkbook.Worksheets
If mySht.Name = "Summary" Then GoTo SkipMe:
Set myDest = mySumSheet.Cells(1, 256).End(xlToLeft)(1, 2)
myDest.Value = mySht.Name
Set myDest = myDest.EntireColumn

For Each myCell In mySht.Range("C1").CurrentRegion.Columns(3).Cells
If myCell.Row < 1 Then
If Not IsError(Application.Match(myCell.Value, _
mySumSheet.Range("C:C"), False)) Then
myDest.Cells(Application.Match(myCell.Value, _
mySumSheet.Range("C:C"), False)).Value = "Yes"
Else
myRow = mySumSheet.Cells(Rows.Count, 1).End(xlUp)(2).Row
mySumSheet.Cells(myRow, 1).Value = myCell.Offset(0, -2).Value
mySumSheet.Cells(myRow, 2).Value = myCell.Offset(0, -1).Value
mySumSheet.Cells(myRow, 3).Value = myCell.Value
myDest.Cells(myRow).Value = "Yes"
End If
End If
Next myCell
SkipMe:
Next mySht

End Sub



"NeedExcelHelp07" wrote in message
...
I want to extract the name and the login and then if there's a secondary ID,
that information as well.

"Bernie Deitrick" wrote:

What information do you want to extract from each sheet? Just the name, or
do you need to get the login information as well when the name is new?

Bernie

"NeedExcelHelp07" wrote in
message ...
Thanks a lot! How can I run this Macro if in each sheet there's a login ID
down Column A, and in some instances there's a secondary ID down Column B,
then the names in Column C. Each sheet represents a different software as
mentioned previously. So same macro but there's two more columns of
information.
"Bernie Deitrick" wrote:

Run the macro below. Change the "Yes" to the mark that you want: an "X",
or perhaps a wingding font
checkmark.... You may need to apply formatting to the cells (either
manually or with the macro) if
you use the wingding....

HTH,
Bernie
MS Excel MVP


Sub Macro1()
Dim mySht As Worksheet
Dim mySumSheet As Worksheet
Dim myCell As Range
Dim myDest As Range
Dim myRow As Long

On Error Resume Next
Application.DisplayAlerts = False
Worksheets("Summary").Delete
Application.DisplayAlerts = True

ActiveSheet.Copy Befo=Sheets(1)
Set mySumSheet = ActiveSheet
mySumSheet.Name = "Summary"

For Each mySht In ActiveWorkbook.Worksheets
If mySht.Name = "Summary" Then GoTo SkipMe:
Set myDest = mySumSheet.Cells(1, 256).End(xlToLeft)(1, 2)
myDest.Value = mySht.Name
Set myDest = myDest.EntireColumn

For Each myCell In mySht.Range("A1").CurrentRegion.Columns(1).Cells
If myCell.Row < 1 Then
If Not IsError(Application.Match(myCell.Value,
mySumSheet.Range("A:A"), False)) Then
myDest.Cells(Application.Match(myCell.Value,
mySumSheet.Range("A:A"), False)).Value =
"Yes"
Else
myRow = mySumSheet.Cells(Rows.Count, 1).End(xlUp)(2).Row
mySumSheet.Cells(myRow, 1).Value = myCell.Value
myDest.Cells(myRow).Value = "Yes"

End If
End If
Next myCell
SkipMe:
Next mySht

End Sub



"NeedExcelHelp07" wrote in
message
...
Yes, the names are listed down column A. Each sheet is labeled after
the
Software (Software A, Software B, etc.)

"Bernie Deitrick" wrote:

How are the individual sheets laid out? Just a list of names down
column A?

HTH,
Bernie
MS Excel MVP


"NeedExcelHelp07" wrote in
message
...
I have a workbook with several worksheets. Each worksheet is divided
by the
software they have access to. There's overlapping names in each
worksheet as
some names have access to more than one software. How can I make
this into a
report listing the names on the left column, the names of the
software listed
across the top row, and a mark below each column if that person has
access to
that software.

Thanks!












  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default How do I make a report listing Names and corresponding program

I thought that was what we were doing, based on column C's values (the
names). There should be no duplicated values in column C after the macro is
run.... Do you want to do the table based on column A instead? I'm a bit
confused, so let me know.

It would help if you created two very small text table examples of before,
and then after the merge, to show exactly what you want.

Bernie



"NeedExcelHelp07" wrote in
message ...
Ok this macro works. Now the only problem is how do I merge the
information
of all the duplicates? There are 30,000 plus users so I can't go one by
one.
In coumn A is the Id which is unique to the user. There's an X marked
which
indicates they have access to that software. Is there a way to merge the
information from the duplicates?
Thanks!

"Bernie Deitrick" wrote:

Try this version, below.

HTH,
Bernie
MS Excel MVP

Sub MakeSummarySheetV2()
Dim mySht As Worksheet
Dim mySumSheet As Worksheet
Dim myCell As Range
Dim myDest As Range
Dim myRow As Long

On Error Resume Next
Application.DisplayAlerts = False
Worksheets("Summary").Delete
Application.DisplayAlerts = True

ActiveSheet.Copy Befo=Sheets(1)
Set mySumSheet = ActiveSheet
mySumSheet.Name = "Summary"

For Each mySht In ActiveWorkbook.Worksheets
If mySht.Name = "Summary" Then GoTo SkipMe:
Set myDest = mySumSheet.Cells(1, 256).End(xlToLeft)(1, 2)
myDest.Value = mySht.Name
Set myDest = myDest.EntireColumn

For Each myCell In mySht.Range("C1").CurrentRegion.Columns(3).Cells
If myCell.Row < 1 Then
If Not IsError(Application.Match(myCell.Value, _
mySumSheet.Range("C:C"), False)) Then
myDest.Cells(Application.Match(myCell.Value, _
mySumSheet.Range("C:C"), False)).Value = "Yes"
Else
myRow = mySumSheet.Cells(Rows.Count, 1).End(xlUp)(2).Row
mySumSheet.Cells(myRow, 1).Value = myCell.Offset(0, -2).Value
mySumSheet.Cells(myRow, 2).Value = myCell.Offset(0, -1).Value
mySumSheet.Cells(myRow, 3).Value = myCell.Value
myDest.Cells(myRow).Value = "Yes"
End If
End If
Next myCell
SkipMe:
Next mySht

End Sub



"NeedExcelHelp07" wrote in
message
...
I want to extract the name and the login and then if there's a secondary
ID,
that information as well.

"Bernie Deitrick" wrote:

What information do you want to extract from each sheet? Just the
name, or
do you need to get the login information as well when the name is new?

Bernie

"NeedExcelHelp07" wrote in
message ...
Thanks a lot! How can I run this Macro if in each sheet there's a
login ID
down Column A, and in some instances there's a secondary ID down
Column B,
then the names in Column C. Each sheet represents a different
software as
mentioned previously. So same macro but there's two more columns of
information.
"Bernie Deitrick" wrote:

Run the macro below. Change the "Yes" to the mark that you want:
an "X",
or perhaps a wingding font
checkmark.... You may need to apply formatting to the cells (either
manually or with the macro) if
you use the wingding....

HTH,
Bernie
MS Excel MVP


Sub Macro1()
Dim mySht As Worksheet
Dim mySumSheet As Worksheet
Dim myCell As Range
Dim myDest As Range
Dim myRow As Long

On Error Resume Next
Application.DisplayAlerts = False
Worksheets("Summary").Delete
Application.DisplayAlerts = True

ActiveSheet.Copy Befo=Sheets(1)
Set mySumSheet = ActiveSheet
mySumSheet.Name = "Summary"

For Each mySht In ActiveWorkbook.Worksheets
If mySht.Name = "Summary" Then GoTo SkipMe:
Set myDest = mySumSheet.Cells(1, 256).End(xlToLeft)(1, 2)
myDest.Value = mySht.Name
Set myDest = myDest.EntireColumn

For Each myCell In
mySht.Range("A1").CurrentRegion.Columns(1).Cells
If myCell.Row < 1 Then
If Not IsError(Application.Match(myCell.Value,
mySumSheet.Range("A:A"), False)) Then
myDest.Cells(Application.Match(myCell.Value,
mySumSheet.Range("A:A"), False)).Value =
"Yes"
Else
myRow = mySumSheet.Cells(Rows.Count,
1).End(xlUp)(2).Row
mySumSheet.Cells(myRow, 1).Value = myCell.Value
myDest.Cells(myRow).Value = "Yes"

End If
End If
Next myCell
SkipMe:
Next mySht

End Sub



"NeedExcelHelp07" wrote
in
message
...
Yes, the names are listed down column A. Each sheet is labeled
after
the
Software (Software A, Software B, etc.)

"Bernie Deitrick" wrote:

How are the individual sheets laid out? Just a list of names
down
column A?

HTH,
Bernie
MS Excel MVP


"NeedExcelHelp07"
wrote in
message
...
I have a workbook with several worksheets. Each worksheet is
divided
by the
software they have access to. There's overlapping names in
each
worksheet as
some names have access to more than one software. How can I
make
this into a
report listing the names on the left column, the names of the
software listed
across the top row, and a mark below each column if that
person has
access to
that software.

Thanks!
















  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default How do I make a report listing Names and corresponding program

What I'm getting:

PRIMARY SECONDARY ID NAME Software A Software B Software C
Software d....
BZ0T23 Jeanne Doe X
BZ0T23 Doe JEANNE X
X
BZ0T23 Doe JEANNE
X

Ok the above is what I'm getting after running the Macro.

So I'm asking how to merge them to make it look like below:
PRIMARY SECONDARY ID NAME Software A Software B Software C
Software d....
BZ0T23 Jeanne Doe X X
X X

Other than this, the Macro works well.

Thanks alot for the help.
  #12   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default How do I make a report listing Names and corresponding program

Then try the version below, which acts on column A... As far as choosing
between Jeanne Doe
and
Doe JEANNE
whichever is found first will be used.

HTH,
Bernie
MS Excel MVP


Sub MakeSummarySheetV3()
Dim mySht As Worksheet
Dim mySumSheet As Worksheet
Dim myCell As Range
Dim myDest As Range
Dim myRow As Long

On Error Resume Next
Application.DisplayAlerts = False
Worksheets("Summary").Delete
Application.DisplayAlerts = True

ActiveSheet.Copy Befo=Sheets(1)
Set mySumSheet = ActiveSheet
mySumSheet.Name = "Summary"

For Each mySht In ActiveWorkbook.Worksheets
If mySht.Name = "Summary" Then GoTo SkipMe:
Set myDest = mySumSheet.Cells(1, 256).End(xlToLeft)(1, 2)
myDest.Value = mySht.Name
Set myDest = myDest.EntireColumn

For Each myCell In mySht.Range("A1").CurrentRegion.Columns(1).Cells
If myCell.Row < 1 Then
If Not IsError(Application.Match(myCell.Value, _
mySumSheet.Range("A:A"), False)) Then
myDest.Cells(Application.Match(myCell.Value, _
mySumSheet.Range("A:A"), False)).Value = "X"
Else
myRow = mySumSheet.Cells(Rows.Count, 1).End(xlUp)(2).Row
mySumSheet.Cells(myRow, 1).Value = myCell.Value
mySumSheet.Cells(myRow, 2).Value = myCell.Offset(0, 1).Value
mySumSheet.Cells(myRow, 3).Value = myCell.Offset(0, 2).Value
myDest.Cells(myRow).Value = "X"
End If
End If
Next myCell
SkipMe:
Next mySht

End Sub

"NeedExcelHelp07" wrote in
message ...
What I'm getting:

PRIMARY SECONDARY ID NAME Software A Software B Software C
Software d....
BZ0T23 Jeanne Doe X
BZ0T23 Doe JEANNE X
X
BZ0T23 Doe JEANNE
X

Ok the above is what I'm getting after running the Macro.

So I'm asking how to merge them to make it look like below:
PRIMARY SECONDARY ID NAME Software A Software B Software C
Software d....
BZ0T23 Jeanne Doe X X
X X

Other than this, the Macro works well.

Thanks alot for the help.



  #13   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default How do I make a report listing Names and corresponding program

Awhile ago I had help with the below macro. I'm running it again, but I have
9 columns now. How can I modify this macro so that the data in column c that
is in Sheet B but not in sheet A is displayed? I still need the rest of the
functions of the macro to work.

Example of what is happening:
In Sheet A:
ID NAME Location

ABCDK2 Hank Doe

In Sheet B
ID NAME Location
ABCDK2 Hank Doe California

When I run the macro, California is not being displayed in the Summary,that
field is blank because in Sheet A, it is blank and that is what is read first.

Thanks!


"Bernie Deitrick" wrote:

Then try the version below, which acts on column A... As far as choosing
between Jeanne Doe
and
Doe JEANNE
whichever is found first will be used.

HTH,
Bernie
MS Excel MVP


Sub MakeSummarySheetV3()
Dim mySht As Worksheet
Dim mySumSheet As Worksheet
Dim myCell As Range
Dim myDest As Range
Dim myRow As Long

On Error Resume Next
Application.DisplayAlerts = False
Worksheets("Summary").Delete
Application.DisplayAlerts = True

ActiveSheet.Copy Befo=Sheets(1)
Set mySumSheet = ActiveSheet
mySumSheet.Name = "Summary"

For Each mySht In ActiveWorkbook.Worksheets
If mySht.Name = "Summary" Then GoTo SkipMe:
Set myDest = mySumSheet.Cells(1, 256).End(xlToLeft)(1, 2)
myDest.Value = mySht.Name
Set myDest = myDest.EntireColumn

For Each myCell In mySht.Range("A1").CurrentRegion.Columns(1).Cells
If myCell.Row < 1 Then
If Not IsError(Application.Match(myCell.Value, _
mySumSheet.Range("A:A"), False)) Then
myDest.Cells(Application.Match(myCell.Value, _
mySumSheet.Range("A:A"), False)).Value = "X"
Else
myRow = mySumSheet.Cells(Rows.Count, 1).End(xlUp)(2).Row
mySumSheet.Cells(myRow, 1).Value = myCell.Value
mySumSheet.Cells(myRow, 2).Value = myCell.Offset(0, 1).Value
mySumSheet.Cells(myRow, 3).Value = myCell.Offset(0, 2).Value
myDest.Cells(myRow).Value = "X"
End If
End If
Next myCell
SkipMe:
Next mySht

End Sub

"NeedExcelHelp07" wrote in
message ...
What I'm getting:

PRIMARY SECONDARY ID NAME Software A Software B Software C
Software d....
BZ0T23 Jeanne Doe X
BZ0T23 Doe JEANNE X
X
BZ0T23 Doe JEANNE
X

Ok the above is what I'm getting after running the Macro.

So I'm asking how to merge them to make it look like below:
PRIMARY SECONDARY ID NAME Software A Software B Software C
Software d....
BZ0T23 Jeanne Doe X X
X X

Other than this, the Macro works well.

Thanks alot for the help.




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
I'd like to make a report card . TN_Twister New Users to Excel 1 December 28th 06 11:53 PM
Listing variable names for 3 greatest values in a column? Lindsay Excel Worksheet Functions 3 July 24th 06 09:30 PM
Listing the names of your worksheets gunslinger Excel Discussion (Misc queries) 3 May 30th 06 11:12 PM
listing all names in a worksheet tthe Excel Discussion (Misc queries) 4 January 20th 06 02:19 PM
Listing of Sheet names Will Fleenor Excel Worksheet Functions 1 November 17th 04 05:19 PM


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