+ Reply to Thread
Results 1 to 5 of 5

Separating names from numbers and searching for key words - help

  1. #1
    Registered User
    Join Date
    07-26-2011
    Location
    New Zealand
    MS-Off Ver
    Excel 2007
    Posts
    43

    Separating names from numbers and searching for key words - help

    I need to be able to create a report that tracks the total outstanding sales for each employee in the business minus any outstandings they have fixed. The database that I extract this information from spits it out in a very difficult format, as you can see in the attachment.

    The name and total figure is in the same cell and reads like this:
    Employee B (4 Outstanding)

    I need to be able to separate the figure into another cell with corresponding name.

    I also need to determine if any of the outstandings have been fixed this is done by searching the comments and either finding the word "fix" or having a URL at the start of the comments (not at the end). These fixes need to be deducted from the total figure under the corresponding name.

    If anyone can help I would greatly appreciate it.
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Separating names from numbers and searching for key words - help

    First part... in B3 and copied down:

    =MID(INDEX(G:G, MATCH(A3&"*",G:G, 0)), LEN(A3)+3,2)+0
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Separating names from numbers and searching for key words - help

    Second part, a monster... in C3, then copied down:

    =CEILING(SUMPRODUCT(((LEFT(OFFSET(INDEX(G:G,MATCH($A3&"*",G:G,0)),2,3,$B3,),4)="http")+ISNUMBER(SEARCH("fix",OFFSET(INDEX(G:G,MATCH($A3&"*",G:G,0)),2,3,$B3,))))/2),1)

  4. #4
    Registered User
    Join Date
    07-26-2011
    Location
    New Zealand
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Separating names from numbers and searching for key words - help

    Thanks heaps! That is a great help!

    (I need to spread more rep around)

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Separating names from numbers and searching for key words - help

    If that takes care of your need, please click Thread Tools above your first post and mark this thread as SOLVED.

+ 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