• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Insert Rows based on cell value

jholbrook

New Member
HI,

Im looking for a macro to insert cells based on values in certain cells. I have a list of unit #'s that contains an A, B, C, D or E in the text string and I'm looking for a macro to insert a certain number of rows based on what is in that cell.

For example in cell A6 the value is 3120-101-A

The amount of rows entered below A6 would need to be:
A=2
B=3
C=4
D=5
E=6

I would need this to go searching column A until no more data is found.

Thanks,

Jonathan
__________________________________________________________________
Mod edit : thread moved to appropriate forum !
 
Attached is the example. I need to add a certain number of rows under column A (bldg-unit) based on what letter is at the end of the text string.
 

Attachments

  • Rent Roll Example.xlsx
    49.2 KB · Views: 2
Thanks Narayank! Almost perfect, I need one more row added per letter.

A=2 rows below unit #
B=3 rows below unit #
C=4 rows below unit #
D=5 rows below unit #
 
Back
Top