+ Reply to Thread
Results 1 to 4 of 4

Using Offset in a loop

  1. #1
    Forum Contributor
    Join Date
    01-21-2012
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2010
    Posts
    102

    Using Offset in a loop

    Hey everyone,

    I'm using the loop below to check column R for specific values. What I'd also like to be able to do in this same loop is check column G for some of these same values using offset. Any suggestion on how to achieve this?


    Please Login or Register  to view this content.

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,616

    Re: Using Offset in a loop

    Nope, you can't use offset, since you are doing operation in array and you've only filled single column.

    If you want to do operation in array, you can simply change it like.
    Please Login or Register  to view this content.
    Since column G is first column in array. You can check it like... If dataIn(i, 1) <> "" Then ....
    “Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.”
    ― Robert A. Heinlein

  3. #3
    Forum Contributor
    Join Date
    01-21-2012
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2010
    Posts
    102

    Re: Using Offset in a loop

    Awesome!!! CK76, that's just what I was looking for. Thank you so much! SOLVED!

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,616

    Re: Using Offset in a loop

    You are welcome If this solved your question. Please mark the thread as solved by using thread tool found at top of your initial post.

+ 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. Loop to offset down a worksheet
    By rlh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-19-2017, 08:55 PM
  2. Using offset to loop?
    By MeggieDoodles in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-22-2015, 03:29 PM
  3. [SOLVED] For..Next, offset, nested loop
    By Gingin8639 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-05-2012, 10:23 AM
  4. VBA Loop & Offset Syntax
    By bgintheusa in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-23-2010, 09:06 PM
  5. Using offset with in a loop
    By hoffey in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-30-2009, 05:49 PM
  6. [SOLVED] Need offset range for loop
    By Joe Fish in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-16-2005, 09:05 PM
  7. VBA help for DO LOOP and Offset
    By NKeller in forum Excel General
    Replies: 1
    Last Post: 07-04-2005, 08:05 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