copy all rows with a certain value in one of the columns

emmerdales

New Member
Joined
Aug 15, 2017
Messages
1
Hi,

I run my companies sales tracker on Excel, and I am trying to populate a list of people with zero sales for the week etc.

[TABLE="width: 500"]
<tbody>[TR]
[TD]employee[/TD]
[TD]target[/TD]
[TD]actual[/TD]
[TD]vstgt[/TD]
[/TR]
[TR]
[TD]ben[/TD]
[TD]2[/TD]
[TD]0[/TD]
[TD]0%[/TD]
[/TR]
[TR]
[TD]julie[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD]33%[/TD]
[/TR]
[TR]
[TD]sarah[/TD]
[TD]2[/TD]
[TD]0[/TD]
[TD]0%[/TD]
[/TR]
</tbody>[/TABLE]

and it auto fill a section of zero sellers, so populate a list of names with a 0% in the vstgt column.

so I want:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Zero Sellers[/TD]
[/TR]
[TR]
[TD]Ben[/TD]
[/TR]
[TR]
[TD]Sarah[/TD]
[/TR]
[TR]
[TD]and auto add more here as the figures change[/TD]
[/TR]
</tbody>[/TABLE]


I will try and upload a sample file.

If anyone would be able to assist I would be very grateful.

thanks
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Hi,

I run my companies sales tracker on Excel, and I am trying to populate a list of people with zero sales for the week etc.

[TABLE="width: 500"]
<tbody>[TR]
[TD]employee[/TD]
[TD]target[/TD]
[TD]actual[/TD]
[TD]vstgt[/TD]
[/TR]
[TR]
[TD]ben[/TD]
[TD]2[/TD]
[TD]0[/TD]
[TD]0%[/TD]
[/TR]
[TR]
[TD]julie[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD]33%[/TD]
[/TR]
[TR]
[TD]sarah[/TD]
[TD]2[/TD]
[TD]0[/TD]
[TD]0%[/TD]
[/TR]
</tbody>[/TABLE]

and it auto fill a section of zero sellers, so populate a list of names with a 0% in the vstgt column.

so I want:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Zero Sellers[/TD]
[/TR]
[TR]
[TD]Ben[/TD]
[/TR]
[TR]
[TD]Sarah[/TD]
[/TR]
[TR]
[TD]and auto add more here as the figures change[/TD]
[/TR]
</tbody>[/TABLE]


I will try and upload a sample file.

If anyone would be able to assist I would be very grateful.

thanks

assuming table1 is in Sheet1 and table2 is in Sheet2:

A2 = IFERROR(INDEX(Sheet1!$A$2:$A$100,SMALL(IF(Sheet1!$D$2:$D$100=0,ROW(Sheet1!$D$2:$D$100),""),ROW()-1)-1),"") press CTRL+SHIFT+ENTER
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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