vba - How to edit text in columns? -
the data in column listed have stated below.
a b 1 n 2 n 3 n 4 y 5 y 6 n 7 n 8 y 9 y 10 y 11 y 12 y 13 n 14 n
i want automate , list first n , no other n till y appears , list first y till next n appears. :
a b 1 n 2 3 4 y 5 6 n 7 8 y 9 10 11 12 13 n 14
any apreciated.
unless there's tricky way not aware of, you'll need write macro loops through rows in column, checking value change. pseudocode:
set compare variable null loop through cells in column read cell if cell value != compare variable compare = new value - leave cell value there else if cell = compare cell value = null end loop
let know come with.
Comments
Post a Comment