Skip to content

Instantly share code, notes, and snippets.

View techenby's full-sized avatar

Andy Newhouse techenby

View GitHub Profile
=IF(ISERROR(VLOOKUP(A1,[Workbook1.xlsx]Sheet1!$A$1:$A$197624, 1, FALSE)),FALSE,TRUE )
Sub SplitInto15CellsPerColumn()
Dim X As Long, LastRow As Long, vArrIn As Variant, vArrOut As Variant
LastRow = Cells(Rows.Count, "A").End(xlUp).Row
vArrIn = Range("A1:A" & LastRow)
ReDim vArrOut(1 To 25000, 1 To Int(LastRow / 25000) + 1)
For X = 0 To LastRow - 1
vArrOut(1 + (X Mod 25000), 1 + Int(X / 25000)) = vArrIn(X + 1, 1)
Next
Range("B1").Resize(25000, UBound(vArrOut, 2)) = vArrOut
End Sub
@techenby
techenby / 0_reuse_code.js
Last active August 29, 2015 14:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console