Copy certain cells dependant on cell value

bigginge

New Member
Joined
Apr 18, 2018
Messages
2
Good afternoon,

Can you please help.

I have a infrastructure fault spreadsheet, which shows all faults in my building. It has 2 tabs one named Fault and one named EWP. Within the fault tab, there is a column W which states if a job is over due "X" or complete "Y". In What I am after is to copy the data in columns A-K dependant if column W is "X".

I would be grateful if anyone can help.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Sorry, usual me forgetting to put in half the info.

I want the data from columns a to k on the faults tab to the same columns on the EWP tab, dependent on fault tab column w. The 2 tabs have the same layout and column headings.

I am not fussed if it is VBA or formula, whatever can do the job.
 
Upvote 0
This may be slow as its an array formula

With data in Faults!A2:K1000

in EWP!A2
=IFERROR(INDEX(Faults!$A$2:$K$1000,SMALL(IF((Faults!$W$2:$W$1000="X"),ROW($A$2:$A$1000)),ROW(A1))-(ROW(A$2)-1),COLUMN()),"")
Array formula, use Ctrl-Shift-Enter
copy across to EWP!K2

Then copy EWP!A2:K2 down for as many rows as you have on the Faults tab
 
Upvote 0

Forum statistics

Threads
1,224,815
Messages
6,181,136
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