+ Reply to Thread
Results 1 to 4 of 4

Obtaining values from a reference cell in a different column and row

  1. #1
    Registered User
    Join Date
    07-31-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    23

    Obtaining values from a reference cell in a different column and row

    Thanks for any help in advance.

    I have a large spreadsheet that has a lot of junk in it. There are X amount of occurances of the phrase "Page 6". For each occurance of page 6, I must gather data from cells located above it, and in columns to the left of it. For Example:

    If "Page 6" is located in position (r,c), I need data from (r-3,c-2) and (r-2,c-1)...with r for row and c for column. The actual values for rows and columns I need are slightly different, but that's a small change. I have provided an example to illustrate my point,it should be pretty easy to just glance at.

    Key assumptions:
    "Page 6" Always occurs in the same column, such as column D.
    The necessary values are always in the same position relative to the phrase "Page 6".
    There will always be at least one "Page 6" per sheet, so no need for error checking.
    There is NO set relationship between different "Page 6"'s...which is why this task is a bit difficult for me.

    I feel like this would be pretty easy with for loops, a counter based on the number of Page 6's, and some cell reference manipulation. However, I can't seem to put it all together.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Obtaining values from a reference cell in a different column and row

    Hi

    See how this goes

    Please Login or Register  to view this content.
    rylo

  3. #3
    Registered User
    Join Date
    07-31-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Obtaining values from a reference cell in a different column and row

    Thanks a lot Rylo, that's pretty much exactly what I needed. I need to change a couple of things for the actual application, but they should be quick changes which I can change myself off your code. You have no idea how much time you saved me.

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Obtaining values from a reference cell in a different column and row

    @ soxcrates

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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