excel - vba repeating numbers next to each other -


okay have variable sized array in excel. using vba i'd find if there repeating values, values next each other same, not in whole column.

i know in excel use if statement, how spread out whole sheet using loops.

im extremely novice vba. first attempt, didn't work though , don't know how continue.

total value entered in user

ok = true j = 2 24     l =1 total         if activecell.offset(j, l).select = activecell.offset(j + 5, l)         , activecell.offset(j + 4, l) , activecell.offset(j + 3, l)          , activecell.offset(j + 2, l) , activecell.offset(j + 1, l)             ok = false         end if     next next 

if want flag rows repeat, check value in row above see if it's same. if so, flag column. example:

with range("b2:b24")     .formula = "=if(a2=a1,""x"","""")"     .value = .value end 

this how appear following dataset:

╔════════╦═══════╗ ║ col  ║ col b ║ ╠════════╬═══════╣ ║     17 ║       ║ ║     44 ║       ║ ║     44 ║ x     ║ ║     44 ║ x     ║ ║     15 ║       ║ ║     93 ║       ║ ║     93 ║ x     ║ ║     16 ║       ║ ╚════════╩═══════╝ 

Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -