+ Reply to Thread
Results 1 to 2 of 2

Multiple "IF" problems

  1. #1
    Registered User
    Join Date
    02-19-2007
    Posts
    11

    Question Multiple "IF" problems

    I am trying to create a formula that will allow 2 different results. (Formula in F3)

    =IF(F5="E-1565",'LNL ROSTER'!C43) <------ it works just fine this way. but I want to also have it include this: =IF(F5="E-2504",'LNL ROSTER'!C44)

    (Basically if the operator types in the badge # of "E-2504" in cell F5 I want it to put the guys name (which comes from the "LNL Roster" sheet) in cell F3.)

    =IF(F5="E-1565",'LNL ROSTER'!C43)=IF(F5="E-2504",'LNL ROSTER'!C44)

    Should I even be using "IF" for multiple possible answers based on multiple possible badge numbers? I only have two different badge numbers right now.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Multiple "IF" problems

    Probably Vlookup would be best suited...

    =Vlookup(F5,'LNL ROSTER'!$B$43:$C$44,2,FALSE)

    where 'LNL ROSTER'!B43:C44 contains a list of badges and associated names...

    adjust ranges to suit.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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