Calgarypuck Forums - The Unofficial Calgary Flames Fan Community

Go Back   Calgarypuck Forums - The Unofficial Calgary Flames Fan Community > Main Forums > The Off Topic Forum
Register Forum Rules FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 05-01-2012, 08:44 PM   #1
bluejays
Franchise Player
 
Join Date: Sep 2005
Location: Toronto, Ontario
Exp:
Default Excel Help

Okay, so I have a quick question. I have a file at work which basically has a column which logs some activity. Anyway, as an example, let's say the sentence says, "Contacted the client 02042012, client responded to e-mail at 22:14."

My question is, I want to find every time "client responded", and find the date that was in the string prior to the words "client responded", was pulled? It's slightly complicated I think, so help would be appreciated. Thanks.
bluejays is offline   Reply With Quote
Old 05-01-2012, 08:47 PM   #2
Ace
First Line Centre
 
Ace's Avatar
 
Join Date: Oct 2002
Exp:
Default

Ctrl F , 'client responded' ?
__________________
Ace is offline   Reply With Quote
Old 05-01-2012, 08:53 PM   #3
bluejays
Franchise Player
 
Join Date: Sep 2005
Location: Toronto, Ontario
Exp:
Default

^ nope. It's not just one I have to look up. I need to pick it out for hundreds of columns, so I have to use the same formula and drag it.
bluejays is offline   Reply With Quote
Old 05-01-2012, 09:00 PM   #4
Ace
First Line Centre
 
Ace's Avatar
 
Join Date: Oct 2002
Exp:
Default

You could try splitting the cells using space delimited. Before you do this do a replace of 'Client Responded' to 'ClientResponded' In which case each word should get it's own column, from there you should get ClientResponded in it's own column, and then you can sort from there and start reformatting.

It's not going to be perfect at first because some ClientResponded will be in column 'C'. And some in 'D', etc. but this shouldn't take long to sort and delete the unnecessary data to get it formatted correctly...
__________________
Ace is offline   Reply With Quote
Old 05-01-2012, 09:04 PM   #5
Ace
First Line Centre
 
Ace's Avatar
 
Join Date: Oct 2002
Exp:
Default

Quote:
Originally Posted by fleury View Post
^ nope. It's not just one I have to look up. I need to pick it out for hundreds of columns, so I have to use the same formula and drag it.
You originally said you had 'a' column that had this info in it, is that the case or is it all over the place?
__________________
Ace is offline   Reply With Quote
Old 05-01-2012, 09:19 PM   #6
bluejays
Franchise Player
 
Join Date: Sep 2005
Location: Toronto, Ontario
Exp:
Default

Sorry guys, maybe I wasn't clear. I have a column full of sentences (basically logs), not following the same standard conventions. However, anytime something like "client responded" is mentioned, a date will be listed before that. I want a formula to basically scan the cell, and identify if the cell contains "client responded", and return the date in there. I'll need to drag the formula downwards as there are many cells with this structure.
bluejays is offline   Reply With Quote
Old 05-01-2012, 09:26 PM   #7
Torture
Loves Teh Chat!
 
Torture's Avatar
 
Join Date: Jul 2006
Exp:
Default

Something like this would do the trick:
=LEFT(A1,FIND("Client Responded",A1)-1)

Where A1 is the cell that has all your text. That will give you everything before "Client Responded".
IE If A1 was "Contacted Client on 020412 Client responded on insert date" it would return "Contacted Client on 020412" and then you could drag it down the sheet.

You'd have to make sure all the "Client Responded" are the same case but you could just do a find/replace to change all "client responded" to "Client Responded"

Ace's space deliminated way would probably do the trick as well.

Last edited by Torture; 05-01-2012 at 09:31 PM.
Torture is offline   Reply With Quote
Old 05-01-2012, 09:29 PM   #8
trew
Crash and Bang Winger
 
trew's Avatar
 
Join Date: Aug 2004
Exp:
Default

Quote:
Originally Posted by fleury View Post
Sorry guys, maybe I wasn't clear. I have a column full of sentences (basically logs), not following the same standard conventions. However, anytime something like "client responded" is mentioned, a date will be listed before that. I want a formula to basically scan the cell, and identify if the cell contains "client responded", and return the date in there. I'll need to drag the formula downwards as there are many cells with this structure.
Try something like this formula: =MID(A1,FIND("client responded",A1) -10,10)

(Where A1 is the cell reference for the item containing the text).

This will find the term "client responded" and will print the previous 10 characters.
trew is offline   Reply With Quote
Old 05-01-2012, 09:45 PM   #9
Shawnski
CP's Resident DJ
 
Shawnski's Avatar
 
Join Date: Jul 2003
Location: In the Gin Bin
Exp:
Default

I would do an if statement to find candidates:

Put this value into an open column to the right of your data (and propogate downwards accordingly)

=IF(ISERROR(SEARCH("client responded",X3)),0,1) where "X3" is the field you are searching.

This will return a "1" if the item is found, otherwise a "0" if it is not. Filter/sort accordingly.

You can use just the Search function, but if a value isn't found it returns an error.
Shawnski is offline   Reply With Quote
Old 05-01-2012, 10:00 PM   #10
Shawnski
CP's Resident DJ
 
Shawnski's Avatar
 
Join Date: Jul 2003
Location: In the Gin Bin
Exp:
Default

Oh, and BTW if the "client responded" has been manually keyed in, you better hope there isn't a typo within it as those won't be picked up.

Excel is a calculator, Access is a database. You can only do so much with Excel before it becomes a data nightmare.
Shawnski is offline   Reply With Quote
Old 05-01-2012, 10:25 PM   #11
Nage Waza
Offered up a bag of cans for a custom user title
 
Nage Waza's Avatar
 
Join Date: Oct 2008
Location: Westside
Exp:
Default

Once you isolate the 'client responded' cells, you can then remove any letters and be left with the numbers. Besides the formulas, you can perform a go to search and copy all the cells at once with the value you are looking for. There are many ways to do this, but they are all hack jobs since the source of the data is basically organized very poorly.

As other people mentioned, free form text fields are bad. It is better to create three columns: Client Responded (Y/N), Contacted Client (ddmmyyyy), Client Responded (hh24:mm).
Nage Waza is offline   Reply With Quote
Old 05-02-2012, 06:11 AM   #12
bluejays
Franchise Player
 
Join Date: Sep 2005
Location: Toronto, Ontario
Exp:
Default

Hey guys, thanks for your help. I'll test them all out and see what's best. I'm pretty good with excel, but for the most part never deal with strings of qualitative data, and so working with non-numerical is new to me. Fotze, it drives me nuts too, but in this case I'm helping out a co-worker where this stuff was another program generating a log in an Excel format. Thanks guys!
bluejays is offline   Reply With Quote
Old 05-06-2012, 12:07 AM   #13
nickerjones
Franchise Player
 
nickerjones's Avatar
 
Join Date: Dec 2007
Location: Oklahoma - Where they call a puck a ball...
Exp:
Default

edit..
__________________
Beer League Players Association - Home of the adult "athlete"
nickerjones is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 03:34 PM.

Calgary Flames
2024-25




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright Calgarypuck 2021 | See Our Privacy Policy