+ Reply to Thread
Results 1 to 6 of 6

MISSION IMPOSSIBLE: Delimitor? Left Right Function??

  1. #1
    Registered User
    Join Date
    11-26-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2007
    Posts
    18

    MISSION IMPOSSIBLE: Delimitor? Left Right Function??

    Hey Guys,

    Any help on this would be much appreciated. I have a report which has 10,000 campaigns that need to have their Type identified. Campaign Types are either 1. ABC or 2. Network

    Campaign names look like this:
    Example A: 1-80601-BTR Test campaign Feb 2012-ROE-Various-Feb12-ABC (28877)
    OR/
    Example B: 2-15737-AHS - R & Rabc KM Campaign-ROE-Various-Feb_Mar12 (2625557)

    If the campaign ends with "-ABC" (before unique ID numbers) then the Type is "ABC". If it doesn't end with "-ABC" then the type is "Network". I'm looking for a function that I can just drag down to populate the entire Type column so I don't have to do all 10,000 one by one. I attached an excel as an example that makes it clearer. Any help would be much appreciated!! This forum has never let me down!! Thanks!!!!Example Excel.xlsx

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: MISSION IMPOSSIBLE: Delimitor? Left Right Function??

    With data in column A, in B1 enter:

    =IF(LEN(A1)=LEN(SUBSTITUTE(A1,"-ABC ","")),"Network","ABC")
    Gary's Student

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

    Re: MISSION IMPOSSIBLE: Delimitor? Left Right Function??

    Maybe..

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

  4. #4
    Registered User
    Join Date
    11-26-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: MISSION IMPOSSIBLE: Delimitor? Left Right Function??

    Wow thank you so much to the both of you - both functions worked!! If you don't mind, can you explain the logic behind the functions you've provided - I'm trying to understand and learn this so I can improve my excel skills for the future.

    Much appreciation and gratitude!

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

    Re: MISSION IMPOSSIBLE: Delimitor? Left Right Function??

    The SEARCH function simply searches for text "ABC (*)" and if it finds it it returns a number. The * represents wildcard charcatres
    In case of a match, the ISNUMBER turns TRUE and hence the result is "ABC", else it is "Network"

  6. #6
    Registered User
    Join Date
    11-26-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: MISSION IMPOSSIBLE: Delimitor? Left Right Function??

    AWESOME, thank you : )

+ 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