# Copy a range of cells to another worksheet if criteria is met

#### jfutrell73

##### New Member
Looking for help to copy and paste each cell below when M is true or greater then 0 to a new worksheet called Price Summary. If cell is false or 0, do not copy. I would like the text in N to paste to the first available row in A and copy M as well to the corresponding B. I only need the values of these cells to copy and not the formulas.
Thank you in advance for any help I can get. Been trying to get this to work for a while with no luck.

Excel 2007
MN
17\$0
18\$0
19
20\$0
21\$0
22\$0
23\$0
24\$0
25\$0
26\$0
27\$0
28\$0
29\$0
30\$0
31\$0
32\$0
33\$0
34\$0
250# Vessel Pricing TEST
Cell Formulas
RangeFormula
M17=IF(L17=TRUE,INDEX(_250lb12inlegs,B2),"\$0")
M20=IF(L20=TRUE,INDEX(_250lbStand_Pipe,B2)*C20,"\$0")
M23=IF(L23=TRUE,INDEX(_250lbPerf_Plates,B2)*C23,"\$0")
M24=IF(L24=TRUE,INDEX(_250lbSquare_Plates,B2)*C24,"\$0")
M25=IF(L25=TRUE,INDEX(_250lbRound_Plates,B2)*C25,"\$0")
M27=INDEX(_Vortex_Prices,B27)*C27
M28=INDEX(_VBaffle_Price,B28)*C28
M29=INDEX(_Angle_Bracket_Price,B29)*C29
M31=IF(L31=TRUE,Lifting_Lug_Price*C31,0)
M32=IF(L32=TRUE,Level_Eye_Price*C32,0)
M33=IF(L33=TRUE,CRN_Price,0)
M34=IF(L34=TRUE,Oil_Pot_Heater_Price,0)
N17=IF(L17,"12 in. Legs","")
N18=IF(L18>0,("Additional "&" "&L18&"' Leg Length"),"")
N20=IF(L20,"12 in. Pipe Stand","")
N23=IF(L23,"Perf. Plate","")
N24=IF(L24,"Square Plate","")
N25=IF(L25,"Round Plate","")
N27=IF(M27>0,(L27 &" "&"Vortex Eliminator"),"")
N28=IF(M28>0,(L28 &" "&"Internal V-Baffle"),"")
N29=IF(M29>0,(L29 &" "&"Angle Support Bracket"),"")
N30=IF(M30>0,(L30 &" "&"Weld Pad"),"")
N31=IF(L31,"Lifting Lugs","")
N32=IF(L32,"Level Eyes","")
N33=IF(L33,"CRN","")
N34=IF(L34,"Oil Pot Heater","")
Named Ranges
NameRefers ToCells
_250lb12inlegs=Accessories!\$I\$8:\$I\$16
_250lbPerf_Plates=Accessories!\$N\$8:\$N\$16
_250lbRound_Plates=Accessories!\$P\$8:\$P\$16
_250lbSquare_Plates=Accessories!\$O\$8:\$O\$16
_250lbStand_Pipe=Accessories!\$K\$8:\$K\$16
_Angle_Bracket_Price=Accessories!\$X\$2:\$X\$6
_VBaffle_Price=Accessories!\$V\$2:\$V\$8
_Vortex_Prices=Accessories!\$T\$2:\$T\$13
CRN_Price=Accessories!\$AC\$2
Level_Eye_Price=Accessories!\$AB\$2
Lifting_Lug_Price=Accessories!\$AA\$2

### Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},\$Z\$1:\$Z\$99,\$Y\$1:\$Y\$99),2,False) to lookup Y values to left of Z values.

#### jfutrell73

##### New Member
Thank you. I will check this out and let you know.

#### jfutrell73

##### New Member
I've looked over that info and do not see how that can do what I am trying to accomplish. I am very new at macros.
Any further assistance would be appreciated.

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,164,042
Messages
5,835,086
Members
430,340
Latest member
xoxe1337

### 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?

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