Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Combining data from 2 sheets - advanced help please | Excel Worksheet Functions | |||
combining data from 2 sheets | New Users to Excel | |||
Combining data from various Sheets | Excel Worksheet Functions | |||
Combining data from different sheets in one | New Users to Excel | |||
Combining data from multiple sheets | Excel Discussion (Misc queries) |