How to conditionally extract rows from one sheet and display them on the next sheet.

jduzz

New Member
Joined
Jun 18, 2011
Messages
19
I have just started using excel and have a simple question:
I have a substantial sheet with rows that include a status field (sheet1.status).

I have to extract rows according to two separate conditions:
a) where sheet1.status = ‘X’
b) where sheet1.status = ‘Y’

I want to copy these two datasets into the next sheet, and display them one after the other.
I do not want empty rows within each dataset, and the datasets should be automatically updated whenever I change anything in the first sheet..

How can I do this?

I tried the autofilter option, but this does not seem to work properly.
Any help is very much appreciated!
:eeek:
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
The AutoFilter is absolutely the right function for this. It not only hides the rows, the resulting filtered data *can* be copied to another sheet, though with an AutoFilter the secondary sheet is often found to no longer be necessary. You can filter the data, deal with the filtered results in place, including copying/printing, etc, then turn off the filter to reveal the full data set when needed.

The only caveat to remember is that the Autofilter expects that EVERY row will have a value in at least one cell, thus the "data set" is contiguous all the way to the bottom in at least that one column. All the others can be blank, but at least one must be filled.
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,292
Members
452,902
Latest member
Knuddeluff

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