Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 304
Default Lookup for multie tabs

Hello all,
Workbook has multiple tabs (4-25+). All the tabs are setup in the same
format and layout. User will put an X in column N, O or P as a data
indicator. I need to have a tab that will give me information from column G
if N, O or P has an X in the column. I would like to have one tab show me all
the data from the tabs that are in the workbook and be able to add more tabs
if need.

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Lookup for multie tabs

Creayte a new worksheet called summary. The macro will look at all
worksheets except Summary and copy the data from column G into this worksheet.

Sub Summary()

With Sheets("Summary")
.Cells.clearcontenets
SumRow = 1
End With
For Each Sht In Sheets
If Sht.Name < "Summary" Then
With Sht
LastRow = .Range("G" & Rows.Count).End(xlUp).Row
For RowCount = 1 To LastRow
If UCase(.Range("N" & RowCount)) = "X" Or _
UCase(.Range("O" & RowCount)) = "X" Or _
UCase(.Range("P" & RowCount)) = "X" Then

Sheets("Summary").Range("A" & SumRow) = _
.Range("G" & RowCount)
SumRow = SumRow + 1
End If
Next RowCount
End With
End If

Next Sht

End Sub


"pgarcia" wrote:

Hello all,
Workbook has multiple tabs (4-25+). All the tabs are setup in the same
format and layout. User will put an X in column N, O or P as a data
indicator. I need to have a tab that will give me information from column G
if N, O or P has an X in the column. I would like to have one tab show me all
the data from the tabs that are in the workbook and be able to add more tabs
if need.

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
Does a formula exist that will lookup on ALL tabs, not just one. JLS Excel Discussion (Misc queries) 5 April 10th 10 07:28 AM
V lookup in separate TABS! Bob Phillips Excel Discussion (Misc queries) 1 September 25th 06 09:12 PM
Lookup mulitple tabs jillteresa Excel Worksheet Functions 5 July 17th 06 09:37 PM
search all tabs for tab name specified & lookup reference? BMW Excel Worksheet Functions 5 November 4th 05 04:16 PM
Compare tabs using Double Lookup, in VB code Ricky Pang Excel Programming 1 October 7th 03 12:06 PM


All times are GMT +1. The time now is 08:39 PM.

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"