Copying columns specified by a given set of conditions or criteria

majkh85

New Member
Joined
Jul 17, 2018
Messages
2
Really needing some assistance:-

I have a workbook with multiple sheets but what I am wantingto do is have all columns of one sheet automatically populate onto anothersheet if a certain word shows up in one of the columns.
For example: -


If the word April shows up in column D I want all the othercolumns in line with where april is (i.e. Row 1 and Row 4) to copy over toanother sheet.

COLUMN A COLUMNB COLUMN C COLUMN D

ROW1 Apples Oranges Bananas April
ROW 2 Bananas Apples Lemons February
ROW 3 Apricots Bananas Peaches August
ROW4 Bananas Lemons Apricots April



I know I can filter it and manually copy and paste but Ineed it to automatically populate if possible.

Thanks.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Welcome to the MrExcel board!

If you want to do this with formulas, then have a look through this thread where I suggested a method of doing a very similar thing & see if you can adapt it to your data.
 
Upvote 0
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID
[/TD]
[TD]NAME
[/TD]
[TD]SURNAME
[/TD]
[TD]GENDER
[/TD]
[TD]AGE
[/TD]
[TD]VACANCY
[/TD]
[TD]START DATE
[/TD]
[TD]PERIOD
[/TD]
[TD]AMOUNT
[/TD]
[TD]MONTH
[/TD]
[TD]SHOWING
[/TD]
[/TR]
[TR]
[TD]124
[/TD]
[TD]Jane
[/TD]
[TD]Doe
[/TD]
[TD]F
[/TD]
[TD]30
[/TD]
[TD]2536
[/TD]
[TD]10/10/10
[/TD]
[TD]17
[/TD]
[TD]$2
[/TD]
[TD]August
[/TD]
[TD]Open
[/TD]
[/TR]
[TR]
[TD]588
[/TD]
[TD]John
[/TD]
[TD]Doe
[/TD]
[TD]M
[/TD]
[TD]46
[/TD]
[TD]1579
[/TD]
[TD]13/1/11
[/TD]
[TD]16
[/TD]
[TD]$5
[/TD]
[TD]October
[/TD]
[TD]Open
[/TD]
[/TR]
[TR]
[TD]769
[/TD]
[TD]Bev
[/TD]
[TD]Beverly
[/TD]
[TD]F
[/TD]
[TD]78
[/TD]
[TD]5345
[/TD]
[TD]4/5/18
[/TD]
[TD]20
[/TD]
[TD]$9
[/TD]
[TD]August
[/TD]
[TD]Open
[/TD]
[/TR]
[TR]
[TD]222
[/TD]
[TD]Amanda
[/TD]
[TD]Snow
[/TD]
[TD]F
[/TD]
[TD]32
[/TD]
[TD]4258
[/TD]
[TD]6/8/03
[/TD]
[TD]66
[/TD]
[TD]$6
[/TD]
[TD]August
[/TD]
[TD]Open
[/TD]
[/TR]
</tbody>[/TABLE]
Hi Peter,

I have attempted to adapt it but it for some reason it is not copying over properly,

Above is a table of my sheets, your assistance would be greatly appreciated.

I would like for all columns to be automatically copied over to another sheet if the Month column shows "August"
 
Upvote 0
I have attempted to adapt it but it for some reason it is not copying over properly,
Using the method in that linked thread it could be like this.

M2 copied down

Excel Workbook
ABCDEFGHIJKLM
1IDNAMESURNAMEGENDERAGEVACANCYSTART DATEPERIODAMOUNTMONTHSHOWINGHelper
2124JaneDoeF30253610/10/201017$2AugustOpenAugust|1
3588JohnDoeM46157913/01/201116$5OctoberOpenOctober|1
4769BevBeverlyF7853454/05/201820$9AugustOpenAugust|2
5222AmandaSnowF3242586/08/200366$6AugustOpenAugust|3
All Data




N2 copied down
B2 copied across and down.

Excel Workbook
ABCDEFGHIJKLMN
1MonthIDNAMESURNAMEGENDERAGEVACANCYSTART DATEPERIODAMOUNTMONTHSHOWING
2August124JaneDoeF30253640461172AugustOpen2
3769BevBeverlyF78534543224209AugustOpen4
4222AmandaSnowF32425837839666AugustOpen5
5#N/A
August
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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