+ Reply to Thread
Results 1 to 3 of 3

cell reference, relative rows, absolute column

  1. #1
    Registered User
    Join Date
    10-27-2015
    Location
    Georgia
    MS-Off Ver
    2008
    Posts
    11

    Question cell reference, relative rows, absolute column

    my code is:

    Please Login or Register  to view this content.

    I want to test the value of the cell in column in the row where the current active cell is. for example if a2 is the active cell then test the value of a1, and when the active cell changes to B2 the value of a2 is tested. the row needs to be able to change without the column changing. the data set i am working with is 7,000 + records so it would be to much to out right program for designating each cell by hand. also i cant always know what column the active cell is going to be in so a relative reference to the wanted column could prove to be problematic. what is the syntax to do this?


    lconner

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: cell reference, relative rows, absolute column

    maybe with ActiveCell.Row or Activecell.Column ?

    Please Login or Register  to view this content.
    Kind regards
    Leo

  3. #3
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: cell reference, relative rows, absolute column

    Its not clear to me at all what you are trying to do with the x and r variables.

    If you are interested in a particular column of the rows that holds the ActiveCell, you could use code like (which returns the value from column C of the active cell's row)

    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

+ 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. Replies: 5
    Last Post: 09-21-2012, 02:08 PM
  2. Replies: 4
    Last Post: 08-01-2012, 01:34 PM
  3. Absolute and relative cell reference?
    By newbiegirl in forum Excel General
    Replies: 1
    Last Post: 06-23-2011, 03:57 PM
  4. Replies: 2
    Last Post: 05-26-2009, 05:55 PM
  5. changing from relative to absolute cell reference in multiple form
    By JAaron in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-22-2006, 03:15 AM
  6. [SOLVED] Copying a work sheet cell reference as relative not absolute?
    By Velson in forum Excel General
    Replies: 4
    Last Post: 01-07-2006, 09:50 AM
  7. [SOLVED] How do I change a cell from absolute reference to relative referen
    By simonsez in forum Excel General
    Replies: 1
    Last Post: 05-17-2005, 04:06 PM
  8. [SOLVED] Explanation Relative/Absolute Cell Reference
    By Cath in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-06-2005, 01:06 AM

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