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

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -