Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Finding and combining data between two sheets

I have a worksheet (S1) that I want to, from a separate sheet (S2) (same
workbook) search a colum in S1 and find each case where "P" occurs and return
all of the data from that "P" row. Furthermore, I want to omit the rows in
S2 where the "P" does not occur so that it will generate a compact report.
Any thoughts?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Finding and combining data between two sheets

One simple set-up using non-array formulas that delivers ..

Assume source data in sheet: S1, cols A to E, data from row2 down
where the key col = col E (that's the col to monitor for the "P" values)

In sheet: S2,
In A2: =IF('S1'!E2="P",ROW(),"")
Leave A1 empty. This is the criteria col.

In B2:
=IF(ROWS($1:1)COUNT($A:$A),"",INDEX('S1'!A:A,SMAL L($A:$A,ROWS($1:1))))
Copy B2 across by 5 cols to F2. Select A2:F2, copy down to cover the max
expected extent of source data in S1. Minimize/hide col A. Cols B to F will
return only the source lines where col E = "P", with all lines compactly
bunched at the top.

Voila? Click the YES button below.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:25,000 Files:300 Subscribers:70
xdemechanik
---
"Hummel Guy" wrote:
I have a worksheet (S1) that I want to, from a separate sheet (S2) (same
workbook) search a colum in S1 and find each case where "P" occurs and return
all of the data from that "P" row. Furthermore, I want to omit the rows in
S2 where the "P" does not occur so that it will generate a compact report.
Any thoughts?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Finding and combining data between two sheets

Awesome reply. You nailed it and I apreciate your help!

"Max" wrote:

One simple set-up using non-array formulas that delivers ..

Assume source data in sheet: S1, cols A to E, data from row2 down
where the key col = col E (that's the col to monitor for the "P" values)

In sheet: S2,
In A2: =IF('S1'!E2="P",ROW(),"")
Leave A1 empty. This is the criteria col.

In B2:
=IF(ROWS($1:1)COUNT($A:$A),"",INDEX('S1'!A:A,SMAL L($A:$A,ROWS($1:1))))
Copy B2 across by 5 cols to F2. Select A2:F2, copy down to cover the max
expected extent of source data in S1. Minimize/hide col A. Cols B to F will
return only the source lines where col E = "P", with all lines compactly
bunched at the top.

Voila? Click the YES button below.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:25,000 Files:300 Subscribers:70
xdemechanik
---
"Hummel Guy" wrote:
I have a worksheet (S1) that I want to, from a separate sheet (S2) (same
workbook) search a colum in S1 and find each case where "P" occurs and return
all of the data from that "P" row. Furthermore, I want to omit the rows in
S2 where the "P" does not occur so that it will generate a compact report.
Any thoughts?

  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Finding and combining data between two sheets

Welcome. Could you spare a moment to click the YES button in that response?
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:25,000 Files:300 Subscribers:70
xdemechanik
---
"Hummel Guy" wrote:
Awesome reply. You nailed it and I apreciate your 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
Combining data from 2 sheets - advanced help please Mark[_7_] Excel Worksheet Functions 2 July 24th 08 05:36 AM
combining data from 2 sheets Sri New Users to Excel 11 June 24th 08 02:21 PM
Combining data from various Sheets Raja Excel Worksheet Functions 2 February 15th 08 05:16 PM
Combining data from different sheets in one viktor New Users to Excel 3 July 7th 05 10:47 AM
Combining data from multiple sheets Ron Vetter Excel Discussion (Misc queries) 1 April 29th 05 08:02 PM


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