+ Reply to Thread
Results 1 to 6 of 6

repeat if/then for multiple rows

  1. #1
    Registered User
    Join Date
    10-09-2009
    Location
    Denver, CO
    MS-Off Ver
    Excel 2007
    Posts
    3

    repeat if/then for multiple rows

    Hello everybody, here is a brain teaser for you:

    I am trying to repeat the same if/then conditional statement about 1000 times, each time using a different row. I would like to know if I have to manually enter each instance of the conditional statement or if there is a shortcut. The only difference is the rows that it is reading from and writing to. Here is the statement:

    Please Login or Register  to view this content.
    Basically, each cell referred to would be one row down for each instance. For example, if I was to type it manually it would look like:

    Please Login or Register  to view this content.
    As you can see, each number just increases by one. Is there a shortcut to typing each one out?

    Many thanks in advance!

  2. #2
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    Re: repeat if/then for multiple rows

    hello yayfalcor
    Please Login or Register  to view this content.
    you can use a for loop.
    The code there is just a emaple that goes from sheet raw cells m1-10 and + 8 for the output range.
    \
    hopw this helps

    this is untested

  3. #3
    Registered User
    Join Date
    10-09-2009
    Location
    Denver, CO
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: repeat if/then for multiple rows

    D_Rennie,

    Very much appreciated sir or ma'am. I have the feeling this will do the trick. My only regret is that I cannot buy you a beer.

    I'll try it out and let you know how it goes.

  4. #4
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    Re: repeat if/then for multiple rows

    paypay accepts $100 bills.

    glad i could help.

  5. #5
    Registered User
    Join Date
    10-09-2009
    Location
    Denver, CO
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: repeat if/then for multiple rows

    It worked beautifully.

    Here is what I ended up with:

    Please Login or Register  to view this content.
    You saved me about two days of work! And the knowledge is priceless.

  6. #6
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    Re: repeat if/then for multiple rows

    the amount ive picked up form this forum is incredible.
    Just happy to be able to help.

    Can you mark the post solved. Go to the 1st post click edit click advanced., There is a dropdown menu choose solved. save it.

    Cheers again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1