+ Reply to Thread
Results 1 to 2 of 2

Extracting cell or cells from a table

  1. #1
    Registered User
    Join Date
    01-25-2017
    Location
    UK
    MS-Off Ver
    2010
    Posts
    5

    Extracting cell or cells from a table

    Hi guys,

    I have a table with headers.

    I want to pull out cells from this table and use them in another worksheet.

    Because the table's ordering of headers may change, I want to look up cells by header value (column) and then by row.

    To find the column is easy, I can do for example, "MATCH("symbol",george[#Headers],0)". My table is called "george" and the column header is "symbol", and that will return the relative column number of "symbol" inside a table called "george".

    But now I also need the row. I want to get all the rows. So I want the column "symbol" and the rows 1, 2, 3, 4, 5 until all the rows of the table. So I can type this:

    =INDEX(george[#All],2,MATCH("symbol",george[#Headers],0))

    That will give me the first row (past the headers) inside "george", at the column "symbol".

    This is great, but I have hardcoded "2" the row number.

    When I copy this cell below, it does not automatically increase the "2" to "3" as it would do when you copy a cell below to other cells.

    Can someone please help me?

    Many thanks

  2. #2
    Registered User
    Join Date
    01-20-2017
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    199

    Re: Extracting cell or cells from a table

    I think you need dollar signs in your code to lock the column or cell numbers.

+ 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. [SOLVED] extracting data in one cell and making it in to two cells
    By bbhockey in forum Excel General
    Replies: 4
    Last Post: 07-10-2015, 11:43 AM
  2. Extracting Unique cell value from a table containing 2 rows and 2 columns
    By amitnbhatia in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-30-2013, 01:13 AM
  3. [SOLVED] Extracting certain text from One cell and pasting it to other cells
    By cwwazy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-24-2013, 03:20 PM
  4. Extracting VAT from a cell or group of cells
    By Duckyb in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-24-2013, 06:22 AM
  5. Extracting information from various cells into one cell
    By FTorres in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-05-2010, 02:49 PM
  6. Repost - Extracting a table from a cell
    By Foss in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-28-2005, 08: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