@ tigeravatar
I couldn't get your code to work tiger, when I ran it... I ended with some cells that had #VALUE! in them. I ended up using Artik's code and then cut and paste into column B. The excel file is done but I'm curious to see if I can get this to work with tiger's code.
From what I can understand:
This is dictating which column in the range. Count the rows in B? End(xlUp) - Does this mean going up from the end of counted rows?
With Range("B2", Cells(Rows.Count, "B").End(xlUp))
If Range.Row is less than 2, exit routine right? If the rows counted in the range, which starts from B2, is less than 2... then exit.
If .Row < 2 Then Exit Sub 'No data
Not sure about this next one at all.
Range.Value = Evaluate the Index starting from the left? and the Range.Address? (Tried googling Address, don't know what this is), and FIND the cell border line "|".
Substitute whatever Range.Address is with (","" "", <---- Not sure what is this. Spaces?) and "|" cell border line, Length of characters in Cell Column B .Row MINUS Length of ... uh I don't know.. Whatever that was Substituted and the .Address and spaces MINUS 1 space at the end.
.Value = Evaluate("Index(Left(" & .Address & ",FIND(""|"",SUBSTITUTE(" & .Address & ","" "",""|"",LEN(B" & .Row & ")-LEN(SUBSTITUTE(" & .Address & ","" "",""""))))-1),)")
End With
I kind of get it, but as you can see... not really. Heh. I'd like to be able to dissect and completely understand it so I can try to write some code myself.
Any insight would be greatly appreciated
Bookmarks