+ Reply to Thread
Results 1 to 3 of 3

multiple if statement

  1. #1
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    multiple if statement

    Hi guys - please see attached. This is a small cut (100 records) of a dataset of 8,000 records.

    I am looking for a formula to be entered in M2 which does the following:

    Looks at L2

    if L2 contains a numeric value on the end then say "SNN"
    if L2 contains a string which is all text values then say "CC"
    if L2 says WEBCONNECT then say "WEB"

    The third criteria "Webconnect" is a text value so I am unusure how to distinguish this from the second criteria which is someones first initial and surname.

    Background.

    Col L is a "booking Cancelled by field" - Webconnect mean a booking was canx via web, three letters and a numeric value means canx on site and the rest are contact centre agents inital and surname.

    I have been using =SUM(SUMIF(C2:C11,"???"&{1,2,3},D2:D11)) and countif blah blah webconnect previously to get figures but I now need col m to say SNN, CC or WEB.

    Thanks for looking.
    Attached Files Attached Files
    Last edited by Blake 7; 09-14-2011 at 08:51 AM.
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: multiple if statement

    this should do it
    =IF(ISNUMBER(--RIGHT(L2)),"snn",IF(L2="webconnect","web","cc"))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: multiple if statement

    nice one martin - doh ! isnumber !! silly me - thanks mate

+ 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