Formula that only imports checked rows

twl2009

Board Regular
Joined
Jan 7, 2016
Messages
247
Hi,

I have a workbook with 2 sheets. Sheet 2 brings certain values across from sheet 1 using a lot of different formulas. At the moment all of the rows from sheet 1 are imported across as the formulas all look for the same cell on sheet 1.

What I would really like to do is have sheet 2 only bring across the row if it has an "X" in column A and ignore all rows that dont, so that if I only "X" one row sheet 2 only has one row not all of them.

Does this make sense, is it possible?

Thanks
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Something like...


Book1
ABC
1CheckSomething 1Something 2
2x3735
3x6928
4x10385
Sheet2
Cell Formulas
RangeFormula
A2{=IF(ROW(A1)>COUNTIF(Sheet1!$A:$A,"x"),"",INDEX(Sheet1!A:A,SMALL(IF(Sheet1!$A:$A="x",ROW(Sheet1!A:A)),ROWS($A$1:A1))))}
Press CTRL+SHIFT+ENTER to enter array formulas.


You can them copy down as far as you need and across the same.
 
Upvote 0
This looks like exactly what I need, except for some reason it wont go in properly. I am using Control Shift Enter.
 
Upvote 0
Copy the bit in between the {} curly braces...

=IF(ROW(A1)>COUNTIF(Sheet1!$A:$A,"x"),"",INDEX(Sheet1!A:A,SMALL(IF(Sheet1!$A:$A="x",ROW(Sheet1!A:A)),ROWS($A$1:A1))))

Use ctrl+shift+enter not just enter.

I should have posted the sheet1 data in my first reply, it looks like


Book1
ABC
1CheckSomething 1Something 2
21456
32713
4x3735
54616
65749
7x6928
87831
98363
109345
11x10385
Sheet1
 
Upvote 0

Forum statistics

Threads
1,215,948
Messages
6,127,871
Members
449,410
Latest member
adunn_23

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top