+ Reply to Thread
Results 1 to 6 of 6

Loop through Whole column A

  1. #1
    Forum Contributor
    Join Date
    02-23-2015
    Location
    Sweden
    MS-Off Ver
    2013
    Posts
    109

    Loop through Whole column A

    Hello people!

    I got a file that contains loads of numbers in always Column A in always sheetname"test"

    I want to loop through all rows in column A, and for all instances I need to know how many instances there are of each.

    I will use the result for each instance to make later conditions.

    Could someone help me?

    Thank you in advance

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Loop through Whole column A

    Try:-
    Results Start "C1"
    Please Login or Register  to view this content.
    Regards Mick

  3. #3
    Forum Contributor
    Join Date
    02-23-2015
    Location
    Sweden
    MS-Off Ver
    2013
    Posts
    109

    Re: Loop through Whole column A

    Quote Originally Posted by MickG View Post
    Try:-
    Results Start "C1"
    Please Login or Register  to view this content.
    Regards Mick
    doens't work.

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Loop through Whole column A

    Maybe:

    Please Login or Register  to view this content.
    Results go in Columns B and C.

  5. #5
    Forum Contributor
    Join Date
    02-23-2015
    Location
    Sweden
    MS-Off Ver
    2013
    Posts
    109

    Re: Loop through Whole column A

    Hello guys

    I found out this code

    its almost what I want

    See code

    Please Login or Register  to view this content.
    the code generate this result

    pjtIkGl.png


    but I want to get this result instead see below


    1JqZdR7.png



    Could someone help me to modify the code?

    Thank you in advance
    Last edited by elmnas; 05-26-2015 at 04:42 AM.

  6. #6
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Loop through Whole column A

    This should do what you want.
    Please Login or Register  to view this content.
    Regards Mick

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Copy dynamically changing column and Paste using VBA Loop (Loop within Loop)
    By nixon72 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-12-2013, 12:46 PM
  2. [SOLVED] Loop till end of the sheet and loop back to first column again
    By smlim7 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-29-2012, 10:03 AM
  3. Replies: 1
    Last Post: 05-06-2011, 03:08 AM
  4. Loop a column on Sheet1 and loop a row on Sheet2 to find a match
    By johnnywinter in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-13-2009, 02:09 PM
  5. Loop through column headers to search from column name and get cell range
    By Pie in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-28-2005, 08:20 PM

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