+ Reply to Thread
Results 1 to 3 of 3

Show contents of cell, number of rows away from a specific cell

  1. #1
    Registered User
    Join Date
    02-20-2014
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    10

    Show contents of cell, number of rows away from a specific cell

    Hi,

    I am wanting to be able to specify a cell by typing in the contents and specify how many rows away and excel show me the contents of that cell.

    So for example:

    1. Oranges
    2. Pears
    3. Apples
    4. Plums
    5. Apricots
    6. Dates
    7. Lemons

    ----------------------

    INPUT CELL FRUIT = Pears
    INPUT CELL ROWS AWAY = 3

    ANSWER CELL = Apricots

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Show contents of cell, number of rows away from a specific cell

    With your data in Range A1:A7, B1 as Input cell fruit and C1 as Input cells rows away use

    =index(A1:A7,MATCH(B1,A1:A7,0)+C1)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    02-20-2014
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Show contents of cell, number of rows away from a specific cell

    Excellent! Thanks very much!

+ 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. Move cell contents from rows into specific columns
    By johnnywinter in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-26-2014, 04:58 AM
  2. Insert number of rows based on cell contents
    By Holly.Pittam in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-16-2013, 03:38 AM
  3. [SOLVED] Macro code to show only the rows with specific cell text in a particular column
    By Itachi1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-04-2013, 01:33 PM
  4. Show/Hide Specific set of Rows based on Criteria in one cell
    By mrgillus in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-11-2010, 01:26 PM
  5. Analyzing cell contents, inserting a number of rows, and transposing
    By james_black in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-15-2010, 11:28 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