+ Reply to Thread
Results 1 to 5 of 5

If then statement using range

  1. #1
    Registered User
    Join Date
    02-07-2013
    Location
    Houston, TX
    MS-Off Ver
    Excel 2003
    Posts
    1

    If then statement using range

    This is my first post, and I feel like an idiot that I can't figure this out. But, honestly, I'm gonna have to start drinking if I don't automate this process. I'm trying to get a cell to autofill based on the response in a previous cell. Here's what's up:

    SAMPLE DATA SET
    A, B
    1 Walter Hobbs, 198398
    2 Santa Claus, 298737
    3 Julie Lemon, 783749
    4 Sandy Desert, 783722
    /END SAMPLE DATA SET

    97 Name | Badge

    98 Walter Hobbs | ?


    Let's say these are my columns, Name and Badge number. All data is on the same sheet. If the Entry in the A98 "Name" cell equals any one of the entries from the ranged sample data set (remember, on the same sheet) then Badge= corresponding value from sample data set column B.

    I hope this makes sense. Thanks for you help, in advance.

  2. #2
    Forum Contributor thameem127's Avatar
    Join Date
    04-06-2012
    Location
    Jeddah,Saudi Arabia
    MS-Off Ver
    Excel 2003,Excel 2007
    Posts
    321

    Re: If then statement using range

    Upload file and mentioned your question clearly.

    Thanks

    Thameem

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

    Re: If then statement using range

    Try

    Please Login or Register  to view this content.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: If then statement using range

    Try

    =INDEX(B1:B50,MATCH(A98;A1:A50,0))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

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

    Re: If then statement using range

    Try

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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