Originally Posted by
alekos7
This is brilliant! I tried setting it up as a loop (my actual data set is exponentially larger), but I'm getting a subscript out of range error. I need this to run 68 times across the set of 2 columns & output in the 3rd column each time (columns are all next to each other). Is there any way to set it up to run a loop through those instead of defining each specific range?
Set r = .Range("b2:D" & lr)
Set r = .Range("e2:G" & lr)
Set r = .Range("h2:J" & lr)
.
.
.
Set r = .Range("gu2:GW" & lr)
You just add range array
Or if your range is have sama space with other you can loop
Bookmarks