+ Reply to Thread
Results 1 to 4 of 4

Create Loop for an if function

  1. #1
    Registered User
    Join Date
    08-06-2012
    Location
    Norwat
    MS-Off Ver
    Excel 2010
    Posts
    8

    Create Loop for an if function

    Hi Everyone!

    I have this excel sheet where I want to be able to extract data from an exact year. The data i wan't to extract is listed in column T and the year in column U. I want to copy the data value to column x

    I have made this macro, and it works. But there must be some kind of loop that can tell the macro to do the same operation for each cell, so I don't have to write each operation manually.


    this is the macro(I have made the operation manually for three cells):

    Please Login or Register  to view this content.
    If anyone knows how to get a "insert box" to specify the value in the if function(In this case it's 11) I would also be veeery happy!

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Create Loop for an if function

    maybe:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-06-2012
    Location
    Norwat
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Create Loop for an if function

    It works just fine! Thank you!!

  4. #4
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Create Loop for an if function

    Great

    Please mark your thread as solved

+ 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