+ Reply to Thread
Results 1 to 5 of 5

Match offset or lookup

  1. #1
    Registered User
    Join Date
    08-22-2008
    Location
    UK
    Posts
    3

    Match offset or lookup

    Hi

    I have created a 12 column spreadsheet with January to December headings on row1. Under these on row 2 are numbers in each cell.

    In a row 3 cell, what formula should I use to take data from any row 2 cell in columns to the left of that particular cell - e.g. I want to enter under December on row 3, data say from October row2, ie 2 months back but make this a formula which I could easily change to take data from row 2 say 4/5/6months back etc.

    Thought It might be an offset formula but can't get it to work
    Any ideas would be very welcome.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Did you write your offset function something like this?

    =OFFSET(L2,0,-2)

    where L2 is the number under December... and you are entering the formula in L3

    A less volatile way could be:

    =INDEX($A$2:$L$2,COLUMN()-2)

    where A2:L2 contain the numbers for Jan to Dec and again formula is in L3.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    08-22-2008
    Location
    UK
    Posts
    3
    excellent, that works - thanks!

  4. #4
    Registered User
    Join Date
    08-22-2008
    Location
    UK
    Posts
    3
    one further question I have just thought of...

    where you have ' -2 ' in your formula after the word 'column', could this be replaced somehow with a cell reference (so you could have the '-2' on a different sheet such as a model assumptions page?

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Yes you can replace it with a cell reference from another page..

+ 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. lookup or match - Return nearest match
    By devouk in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-05-2012, 06:11 AM
  2. Replies: 4
    Last Post: 03-31-2008, 12:28 PM
  3. returning offset results with a lookup formula
    By z2xm in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-19-2007, 12:02 PM
  4. Dynamic Form in Excel
    By lisa6538 in forum Excel General
    Replies: 15
    Last Post: 01-11-2007, 03:57 PM
  5. MATCH, LOOKUP, OFFSET, INDEX,...or what??
    By HuskerBronco in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-06-2006, 09:40 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