+ Reply to Thread
Results 1 to 4 of 4

How do I check a cell 2 columns to the left of my current cell?

  1. #1
    Registered User
    Join Date
    09-01-2011
    Location
    Redmond, WA
    MS-Off Ver
    Excel 2010
    Posts
    13

    How do I check a cell 2 columns to the left of my current cell?

    It seems like
    =OFFSET(CELL("Address"),0,2,1,1)
    Would work perfectly, but it gives me an error. I'm always coming up with scenarios where checking the cell (X,Y) of current position would be useful.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: How do I check a cell 2 columns to the left of my current cell?

    Does this work for you?
    =INDEX($1:$1048576,ROW(),COLUMN()-2)

    or this...If D3 contains the formula:
    =OFFSET(D3,,-2)
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    09-01-2011
    Location
    Redmond, WA
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: How do I check a cell 2 columns to the left of my current cell?

    =INDEX($1:$1048576,ROW(),COLUMN()-2) computes, but does not give the desired result.
    =OFFSET(D3,,-2) checks the right criteria, but isn't dynamic with regard to the cell reference.

    Thank you for looking into it though.

  4. #4
    Registered User
    Join Date
    09-01-2011
    Location
    Redmond, WA
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: How do I check a cell 2 columns to the left of my current cell?

    I'm an idiot, I meant to say "to the right of the current cell". Therefor, =INDEX($1:$1048576,ROW(),COLUMN()+2) works perfectly. Thank you so much!

+ 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