Excel macro, to copy and paste a cell value based on another cell value?

Posted by Keziah Dorman on Stack Overflow See other posts from Stack Overflow or by Keziah Dorman
Published on 2010-03-25T16:40:23Z Indexed on 2010/03/25 16:43 UTC
Read the original article Hit count: 162

Filed under:
|

Hi I shall try to explain clearly what I need to be able to do, here goes:

I have an Excel spread sheet 1 with postcodes in column a and a number in column b. I need to create a macro/formula so that it will see the number (i.e 4) and copy and paste the postcode that number of times into sheet 2 column a underneath each other. I need to do this for the next row down etc until it comes to a blank.

Sheet 1

A,B

DE43PP,3

DE43PQ,8

Sheet 2

A,B

DE43PP,

DE43PP,

DE43PP,

Thanks

© Stack Overflow or respective owner

Related posts about excel

Related posts about macro