+ Reply to Thread
Results 1 to 5 of 5

Lookup function in row not functioning

  1. #1
    Registered User
    Join Date
    06-22-2009
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2007
    Posts
    38

    Lookup function in row not functioning

    Hi!

    I've been trying to figure this out all day and I'm pretty sure it's not a difficult formula, but I just can't seem to get it right.

    What I would like to do is to look at a cell value (A1) and see if it is located in a row. So cell A1 contains the value, which can be changed as it is a drop-down list. And what I want is to search each row, and if the value in A1 is found in that row, then I want the "Student Name (col B)" to populate in column A of that row. If it doesn't appear, then leave blank.

    I attached a sample workbook with information, including a formula I used that seemed to work but not well.

    Thanks in advance!

    - Santana
    Attached Files Attached Files
    Last edited by PowerSchoolDude; 09-21-2010 at 04:31 PM. Reason: Because everyone was awesome and helped me very quickly. :)

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Lookup function in row not functioning

    Try this formula in A2 copied down

    =IF(COUNTIF(B2:AI2,A$1),A$1,"")
    Audere est facere

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Lookup function in row not functioning

    DDL's typo, should be (based on your post)

    =IF(COUNTIF(B2:AI2,A$1),$B2,"")
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Lookup function in row not functioning

    Ah, yes, that's more like it ChemistB, thank you

  5. #5
    Registered User
    Join Date
    06-22-2009
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: Lookup function in row not functioning

    I knew it was something really simple! I was going crazy over it. >< Thanks so much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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