+ Reply to Thread
Results 1 to 5 of 5

Help with Lookup Formula

  1. #1
    Registered User
    Join Date
    03-28-2025
    Location
    USA, USA
    MS-Off Ver
    Office 365
    Posts
    6

    Help with Lookup Formula

    Hello,

    I'm working on a spreadsheet for movies. I'm trying to create a formula that pulls data from a specified row number and populates the fields with the data from that specific row.

    Any ideas? Thanks!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,396

    Re: Help with Lookup Formula

    An INDEX() function seems perfect for this, if I understand what you are doing.

    1) To make copying easier, enter the desired row numbers above each column in "Lookups" (if you don't like this helper row, you can embed the values inside of the INDEX() function in step 2). In A6 I enter 5, B6 is 6, C6 is 7, D6 is 1 -- corresponding to the columns in "acadamy awards data"
    2) In A9, I enter a simple INDEX() function =INDEX('Acadamy Awards Data'!$A$1:$H$100,$B$7,A$6). Note the mix of relative and absolute references and copy/paste/fill into B9:D9

    Now you can enter whatever row you want in B7, and the corresponding data from the database will be returned.

    Did I understand what you wanted well enough?

    INDEX() function help file: https://support.microsoft.com/en-us/...2-b56b061328bd
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    3,198

    Re: Help with Lookup Formula

    Depending on how you are going to use it and what flexibility you might want, here's another option (in A9 and copied across):

    =INDEX('Acadamy Awards Data'!$A$2:$H$332,$B$7,MATCH(A8,'Acadamy Awards Data'!$A$1:$H$1,0))
    (I noticed your headers on LOOKUPS was the same as the other sheet, which would be a requirement for this to work)

    In fact, you could do it with one formula in cell A9 to get all columns:

    =INDEX('Acadamy Awards Data'!A2:H332,B7,MATCH(A8:D8,'Acadamy Awards Data'!A1:H1,0))

    (You don't need to worry about relative/absolute position with this one as no need to copy down or across, although it's probably good practice to add the absolutes so you could copy the formula anywhere and it would still work)

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,325

    Re: Help with Lookup Formula

    Hi,

    The newer spill functions can also do this problem with formulas like..
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    See the attached.

    I've created a Named Range called "dnrData" to use it in the formula.

    I should have named my file "Drop ChooseCols Take Lookup" but the file will work..
    Attached Files Attached Files
    Last edited by MarvinP; 04-02-2025 at 09:53 PM.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Registered User
    Join Date
    03-28-2025
    Location
    USA, USA
    MS-Off Ver
    Office 365
    Posts
    6

    Re: Help with Lookup Formula

    Quote Originally Posted by MarvinP View Post
    Hi,

    The newer spill functions can also do this problem with formulas like..
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    See the attached.

    I've created a Named Range called "dnrData" to use it in the formula.

    I should have named my file "Drop ChooseCols Take Lookup" but the file will work..
    Wow excellent! Did not know about the spill functions but this is exactly what I needed. Other responses are extremely helpful as well. Thank you all

+ 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] how to lookup the words which is inside the sentence and using lookup formula to get data?
    By sagarkarki69 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-22-2021, 08:52 AM
  2. Help with adjusting Index lookup formula to include additional lookup criteria
    By kingofcamden in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-14-2018, 01:04 PM
  3. Replies: 3
    Last Post: 08-23-2017, 07:04 PM
  4. [SOLVED] Modified LOOKUP Formula for Excluding Missing Lookup Values
    By aaochsner in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-23-2017, 07:29 PM
  5. Replies: 4
    Last Post: 05-19-2015, 08:42 PM
  6. [SOLVED] Can lookup formula ignore blank cells until the lookup value has been entered?
    By Ju1cy in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-13-2014, 01:32 PM
  7. Replies: 5
    Last Post: 02-24-2011, 11:26 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