Find cells with specific value -> select row and copy some cells into another workbook

HePeoR

New Member
Joined
Jan 16, 2018
Messages
1
Hi,

i have tried to pull this out with partial codes, but without success.

My file has in one column named "Diff", this cells have a formula inside. This formula gives me values. I'm searching for Zero values (there will be always several of those). If I identify a 0, than I need to copy 4 cells from the same row (columns A,V,R and D). In the end I have to copy them to another file.

Thank you for your time and help.
 

Some videos you may like

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

sgroath

New Member
Joined
Apr 8, 2014
Messages
31
In each of the cells that you are potentially copying data to, make it an if statement. For example, assuming your Diff is column W...
your target for the A column data in cell row 2 would be =IF(W2=0,A2,"")
your target for the D column data in cell row 2 would be =IF(W2=0,D2,"")
your target for the R column data in cell row 2 would be =IF(W2=0,R2,"")
your target for the V column data in cell row 2 would be =IF(W2=0,V2,"")

copy the formulas down the rows
 

Watch MrExcel Video

Forum statistics

Threads
1,122,464
Messages
5,596,288
Members
414,052
Latest member
Dual Showman

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
Top