Copy/Paste used range

gtd526

Well-known Member
Joined
Jul 30, 2013
Messages
708
Office Version
  1. 2019
Platform
  1. Windows
Hello,
Looking to copy/pasteSV where formulas have a result, not a blank formula. I want to leave the empty formulas active.
The range is AE5:AL12. Only AE5:AE12 should be copy/pasted.
thank you.

Cell Formulas
RangeFormula
AE5:AE8AE5=$E28
AF5AF5=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="East")/(Game=1)/(Team=$AE$5),WL),"")
AG5AG5=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="East")/(Game=2)/(Team=$AE$5),WL),"")
AH5AH5=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="East")/(Game=3)/(Team=$AE$5),WL),"")
AI5AI5=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="East")/(Game=4)/(Team=$AE$5),WL),"")
AJ5AJ5=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="East")/(Game=5)/(Team=$AE$5),WL),"")
AK5AK5=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="East")/(Game=6)/(Team=$AE$5),WL),"")
AL5AL5=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="East")/(Game=7)/(Team=$AE$5),WL),"")
AF6AF6=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="East")/(Game=1)/(Team=$AE$6),WL),"")
AG6AG6=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="East")/(Game=2)/(Team=$AE$6),WL),"")
AH6AH6=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="East")/(Game=3)/(Team=$AE$6),WL),"")
AI6AI6=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="East")/(Game=4)/(Team=$AE$6),WL),"")
AJ6AJ6=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="East")/(Game=5)/(Team=$AE$6),WL),"")
AK6AK6=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="East")/(Game=6)/(Team=$AE$6),WL),"")
AL6AL6=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="East")/(Game=7)/(Team=$AE$6),WL),"")
AF7AF7=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="East")/(Game=1)/(Team=$AE$7),WL),"")
AG7AG7=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="East")/(Game=2)/(Team=$AE$7),WL),"")
AH7AH7=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="East")/(Game=3)/(Team=$AE$7),WL),"")
AI7AI7=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="East")/(Game=4)/(Team=$AE$7),WL),"")
AJ7AJ7=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="East")/(Game=5)/(Team=$AE$7),WL),"")
AK7AK7=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="East")/(Game=6)/(Team=$AE$7),WL),"")
AL7AL7=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="East")/(Game=7)/(Team=$AE$7),WL),"")
AF8AF8=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="East")/(Game=1)/(Team=$AE$8),WL),"")
AG8AG8=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="East")/(Game=2)/(Team=$AE$8),WL),"")
AH8AH8=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="East")/(Game=3)/(Team=$AE$8),WL),"")
AI8AI8=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="East")/(Game=4)/(Team=$AE$8),WL),"")
AJ8AJ8=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="East")/(Game=5)/(Team=$AE$8),WL),"")
AK8AK8=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="East")/(Game=6)/(Team=$AE$8),WL),"")
AL8AL8=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="East")/(Game=7)/(Team=$AE$8),WL),"")
AE9:AE12AE9=$E36
AF9AF9=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="West")/(Game=1)/(Team=$AE$9),WL),"")
AG9AG9=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="West")/(Game=2)/(Team=$AE$9),WL),"")
AH9AH9=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="West")/(Game=3)/(Team=$AE$9),WL),"")
AI9AI9=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="West")/(Game=4)/(Team=$AE$9),WL),"")
AJ9AJ9=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="West")/(Game=5)/(Team=$AE$9),WL),"")
AK9AK9=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="West")/(Game=6)/(Team=$AE$9),WL),"")
AL9AL9=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="West")/(Game=7)/(Team=$AE$9),WL),"")
AF10AF10=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="West")/(Game=1)/(Team=$AE$10),WL),"")
AG10AG10=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="West")/(Game=2)/(Team=$AE$10),WL),"")
AH10AH10=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="West")/(Game=3)/(Team=$AE$10),WL),"")
AI10AI10=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="West")/(Game=4)/(Team=$AE$10),WL),"")
AJ10AJ10=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="West")/(Game=5)/(Team=$AE$10),WL),"")
AK10AK10=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="West")/(Game=6)/(Team=$AE$10),WL),"")
AL10AL10=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="West")/(Game=7)/(Team=$AE$10),WL),"")
AF11AF11=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="West")/(Game=1)/(Team=$AE$11),WL),"")
AG11AG11=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="West")/(Game=2)/(Team=$AE$11),WL),"")
AH11AH11=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="West")/(Game=3)/(Team=$AE$11),WL),"")
AI11AI11=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="West")/(Game=4)/(Team=$AE$11),WL),"")
AJ11AJ11=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="West")/(Game=5)/(Team=$AE$11),WL),"")
AK11AK11=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="West")/(Game=6)/(Team=$AE$11),WL),"")
AL11AL11=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="West")/(Game=7)/(Team=$AE$11),WL),"")
AF12AF12=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="West")/(Game=1)/(Team=$AE$12),WL),"")
AG12AG12=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="West")/(Game=2)/(Team=$AE$12),WL),"")
AH12AH12=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="West")/(Game=3)/(Team=$AE$12),WL),"")
AI12AI12=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="West")/(Game=4)/(Team=$AE$12),WL),"")
AJ12AJ12=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="West")/(Game=5)/(Team=$AE$12),WL),"")
AK12AK12=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="West")/(Game=6)/(Team=$AE$12),WL),"")
AL12AL12=IFERROR(LOOKUP(2,1/(Series="Pre")/(Div="West")/(Game=7)/(Team=$AE$12),WL),"")
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Did I misunderstand your requirement?
I don't think so, your range was just limited to AE12 not AL12...I adjusted your Range from AE5:AE12 to AE5:AL62 so it would look at the entire range and convert necessary cells as needed.
Once adjusted, your code works as it did previously, but I wanted to widen the range.
The Fuji code runs much quicker, maybe the []'s make a difference rather than inspecting Each Cell in Range.
I did mention a wider Range in my original post #1.
The range is AE5:AL12. Only AE5:AE12 should be copy/pasted.
 
Upvote 0

Forum statistics

Threads
1,225,138
Messages
6,183,084
Members
453,146
Latest member
Lacey D

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