+ Reply to Thread
Results 1 to 6 of 6

Returning a value to a cell based off location in a table

  1. #1
    Registered User
    Join Date
    01-09-2016
    Location
    Iowa, USA
    MS-Off Ver
    Office 365 (2016)
    Posts
    2

    Returning a value to a cell based off location in a table

    Hi all,

    I need some help with a formula that does the following: (see attached excel file)

    I want to search the table in Sheet 1 and place the row header (S1,S2,S3, etc) that matches the respectful number in Column A on sheet StudentRooms in Column E.

    Then I want to do the same type of function in Column F but returning the respectful time in sheet1.

    I can't figure out how to make this happen.

    Any help would be appreciated.

    Thanks!

    Lance
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    01-09-2016
    Location
    Los Angeles, USA
    MS-Off Ver
    16
    Posts
    2

    Re: Returning a value to a cell based off location in a table

    When you say "respectful", do you mean "corresponding"?

  3. #3
    Registered User
    Join Date
    01-09-2016
    Location
    Los Angeles, USA
    MS-Off Ver
    16
    Posts
    2

    Re: Returning a value to a cell based off location in a table

    Why did you put all the headers in the first cell? You should put one header for every column. That would be the topmost cell of each column. That's why it's called "header", it's heading the column.

  4. #4
    Registered User
    Join Date
    01-09-2016
    Location
    Iowa, USA
    MS-Off Ver
    Office 365 (2016)
    Posts
    2
    Quote Originally Posted by Carmandol View Post
    Why did you put all the headers in the first cell? You should put one header for every column. That would be the topmost cell of each column. That's why it's called "header", it's heading the column.
    For the program i extract this into...i cant have headers. Also, respectful is corresponding...sorry about that lol

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Returning a value to a cell based off location in a table

    I am very confused as to what you want here Can you give some sample answers and explain how you got them?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Valued Forum Contributor
    Join Date
    12-28-2014
    Location
    NSW, Australia
    MS-Off Ver
    MS365
    Posts
    604

    Re: Returning a value to a cell based off location in a table

    Hi Lance, try these:-

    Cell E3: =INDEX(Sheet1!$B$1:$J$1,SMALL(IF(COUNTIF(A3,Sheet1!$B$2:$J$21)>0,COLUMN(Sheet1!$B$2:$J$21)-1),1))
    Cell F3: =INDEX(Sheet1!$A$2:$A$21,SMALL(IF(COUNTIF(A3,Sheet1!$B$2:$J$21)>0,ROW(Sheet1!$B$2:$J$21)-1),1))

    These are array formulas, therefore after you paste these in the cell you need to press F2 and then hold down Ctrl+Shift while pressing enter.

+ 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. Moving chart location based on pivot table
    By greynolds80 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 06-01-2015, 11:00 AM
  2. [SOLVED] Returning text based on max value in a table
    By BWellman in forum Excel General
    Replies: 3
    Last Post: 07-24-2014, 01:00 PM
  3. Returning text based on max value in a table
    By BWellman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-14-2014, 11:41 AM
  4. Replies: 6
    Last Post: 12-10-2013, 05:34 PM
  5. Returning data in one table based on the values from another table
    By excelignorant in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-24-2013, 04:12 AM
  6. [SOLVED] How to populate a table based on the cell location of given datas?
    By EllenS in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-22-2013, 09:49 PM
  7. Replies: 2
    Last Post: 02-27-2009, 02:01 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