Autcopy selected details to another worksheet, without blank rows between items

Michael Jones

New Member
Joined
Jul 15, 2014
Messages
19
I have data as in the example below:


[TABLE="width: 359"]
<tbody>[TR]
[TD]Investment
[/TD]
[TD]Value
[/TD]
[TD]Advice required?
[/TD]
[/TR]
[TR]
[TD]Barclays
[/TD]
[TD]£100,000.00
[/TD]
[TD]Yes
[/TD]
[/TR]
[TR]
[TD]Ist National
[/TD]
[TD]£50,000.00
[/TD]
[TD]No
[/TD]
[/TR]
[TR]
[TD]Buy-to-Let Property
[/TD]
[TD]£325,000.00
[/TD]
[TD]Yes
[/TD]
[/TR]
[TR]
[TD]Sky TV Shares
[/TD]
[TD]£1,000.00
[/TD]
[TD]Yes
[/TD]
[/TR]
[TR]
[TD]ING Investment Bond
[/TD]
[TD]£50,000.00
[/TD]
[TD]No
[/TD]
[/TR]
[TR]
[TD]ICI Shares
[/TD]
[TD]£30,000.00
[/TD]
[TD]No
[/TD]
[/TR]
[TR]
[TD]MG Investment Bond
[/TD]
[TD]£30,000.00
[/TD]
[TD]Yes
[/TD]
[/TR]
[TR]
[TD]Prudential Savings Bond 1
[/TD]
[TD]£30,000.00
[/TD]
[TD]No
[/TD]
[/TR]
[TR]
[TD]Prudential Bond 2
[/TD]
[TD]£100,000.00
[/TD]
[TD]Yes
[/TD]
[/TR]
[TR]
[TD]Total
[/TD]
[TD]£716,000.00
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Where the answer in column C has been answered "Yes" I want to have this autocopied to another worksheet to produce the following, without any blank rows:


[TABLE="width: 359"]
<tbody>[TR]
[TD]Investment
[/TD]
[TD]Value
[/TD]
[TD]Advice required?
[/TD]
[/TR]
[TR]
[TD]Barclays
[/TD]
[TD]£100,000.00
[/TD]
[TD]Yes
[/TD]
[/TR]
[TR]
[TD]Ist National
[/TD]
[TD]£50,000.00
[/TD]
[TD]No
[/TD]
[/TR]
[TR]
[TD]Buy-to-Let Property
[/TD]
[TD]£325,000.00
[/TD]
[TD]Yes
[/TD]
[/TR]
[TR]
[TD]Sky TV Shares
[/TD]
[TD]£1,000.00
[/TD]
[TD]Yes
[/TD]
[/TR]
[TR]
[TD]ING Investment Bond
[/TD]
[TD]£50,000.00
[/TD]
[TD]No
[/TD]
[/TR]
[TR]
[TD]ICI Shares
[/TD]
[TD]£30,000.00
[/TD]
[TD]No
[/TD]
[/TR]
[TR]
[TD]MG Investment Bond
[/TD]
[TD]£30,000.00
[/TD]
[TD]Yes
[/TD]
[/TR]
[TR]
[TD]Prudential Savings Bond 1
[/TD]
[TD]£30,000.00
[/TD]
[TD]No
[/TD]
[/TR]
[TR]
[TD]Prudential Bond 2
[/TD]
[TD]£100,000.00
[/TD]
[TD]Yes
[/TD]
[/TR]
[TR]
[TD]Total
[/TD]
[TD]£716,000.00
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Can anyone solve my problem? Many thanks in advance

Kind regards

Michael
 
Last edited:

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Array enter this and copy across and down:

Code:
[TABLE="width: 64"]
<tbody>[TR]
  [TD="width: 64"]=IFERROR(INDEX($A$2:$C$1000,SMALL(IF($C$2:$C$1000="Yes",ROW($C$2:$C$1000)-1),ROW($A1)),COLUMN(A$1)),"")[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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