copy selection to another sheet

cayang002

New Member
Joined
Mar 17, 2009
Messages
9
Hi, All,

Thanks for all the help.

I have a five column data with unknown rows. I want to select certain records and copy them into another sheet, my selection cretieria are: column A="A", AND column D="B" or "C", or "#N/A" since it based on a formula. if selection creteria for column D is ""#N/A", just ignore this creteria.

Please help me with this simple question(to you).
Thanks!
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
in a blank cell put this formula
=IF(AND(A1="A",OR(D1="B",D1="C")),1,0)
then copy down, filter for the 1
but I don't understand about your #N/A ignore comment.
 
Upvote 0
Thanks for the reply. I've thought the same formula and it works fine except the "#N/A" part. the creteria for column D is come from another range, say, H1:H6, based on different input, any cell in the range can be "#N/A". What I want is if cell is "#N/A", just ignore this cell and select based on next cell in the range.

The selection creteris is as follows:

for Column A for Column D
A D
#N/A"
C

Thanks!
 
Upvote 0
Maybe:
=IF(OR(ISNA(D2),A2="A"),1,IF(OR(D2="C",D2="D"),1,0))

?
Alex
 
Upvote 0

Forum statistics

Threads
1,214,990
Messages
6,122,626
Members
449,094
Latest member
bsb1122

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