using a macro to move values in cells if they are a negaive value

  • Thread starter neil_fairweather101
  • Start date
N

neil_fairweather101

I have a list of numbers in a column
Some are negative, some are positive.
How can I move all the negative (or positive) values to
another column without doing it manually
Do I use the macro function ?
 
D

Don Guillett

Try this. Adjust to suit. It moves negatives from col C to column F

sub moveem()
for each c in [c2:c200]
if c<1 then c.cut c.offset(,3)
next
end sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top