Selected Data Pulled Into a New Sheet in Consecutive Rows

1FJef

New Member
Joined
Aug 4, 2011
Messages
6
Working in two sheets A & B.

SheetA contains ten columns. The important ones for now are "UniqueID" and "Year." "UniqueID" is obviously the column with entirely unique data; "Year" column contains multiple duplicate years.

SheetB needs to contain all the data as SheetA but only for the specific year I choose (ex 1970). It also needs to display the data in consecutive rows.

I could do a simple "if/then", requesting each row that did not contain the year 1970 to say "no", but that would defeat the attempt to have all the 1970 data displayed in consecutive rows. I could do this and then sort SheetB, but SheetA is constantly updated and I’d really like a formula that puts the data into consecutive rows for me, so I don’t have to keep sorting.

Ideas? Thanks tons!
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Jef

Have you considered using a filter? Instead of creating and maintaining two sheets, one of which is just a copy of specific contents from the other try going to the "Data" ribbon, highlighting the row containing your column headers and click "Filter".

Once you apply the filter you will see all of your column headers become drop down boxes. By opening the drop down box in your "Year" column you can choose which years you want to show and which ones you want to hide. You can even sort the filtered list by any criterion you like.

At any time you can also change the filter to show all dates again.

Will this work?
Gino
 
Upvote 0

Forum statistics

Threads
1,224,506
Messages
6,179,159
Members
452,892
Latest member
yadavagiri

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