+ Reply to Thread
Results 1 to 3 of 3

IF Function - Multiple Conditions

  1. #1
    Registered User
    Join Date
    12-07-2007
    Posts
    1

    IF Function - Multiple Conditions

    Hi,

    I have a column of numbers (N2:N351) and I need to indicate in the next column what department these numbers belong to. I have three "types" of numbers, they are grouped into number strands that start with 3,4 and 5. So therefore, if for example, the number is 34558363, it needs to display PS in the cell beside it in column O. I wanted to know if anyone can tell me how to use a wildcard and also use multiple conditions so that if the number is 3* then PS, if it's 4* then COS, and if it's 5* then AB. Any help would be appreciated.

    Josh

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    =Try this formula in O2 copied down

    =LOOKUP(LEFT(N2)+0,{3,4,5;"PS","COS","AB"})

  3. #3
    Forum Contributor snasui's Avatar
    Join Date
    07-15-2007
    Location
    Songkhla, Thailand
    MS-Off Ver
    2010, 365
    Posts
    167
    Another,

    O2

    =Choose(Left(N2)-2,"PS","COS","AB")

    Enter and copy down.

    Hope this helps.

+ 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