Technology Get the latest on technology, electronics and software…

Who out there considers themselves as an excel pro?

Thread Tools
 
Old Feb 2, 2007 | 10:00 AM
  #1  
poohlikeshunny's Avatar
Thread Starter
Money is funny.
 
Joined: Jan 2004
Posts: 4,166
Likes: 0
From: King of Prussia, PA
Who out there considers themselves as an excel pro?

I have work to do in excel and need help. I just KNOW there is a formula that does this.

I have 2 spreadsheets at work that I am merging into word to print names and addresses onto envelopes. My first spreadsheet works fine b/c i have names in column a, address in column b, zip code in column c and so forth. So when I merge into word, it is easy to have word recognize info in certain columns and align them accordingly to designated spots on my envelope template.

In my second spreadsheet, the bishes who put it together were lazy and threw everything into column a. Is there a formula that can split up the data according to how much space is between each word and then put it into apprpropriate columns?

I'm looking for it to read first words separated by one space as one set of info to be placed in column a; ex. if spaces >=5 then next info in cell B, if 2 caps followed by 5#and or 5#-4# then 2 caps in cell E and # in cell F...

I got this assignment yesterday and it is due today at 9pm! Excel gurus please help!
Reply
Old Feb 2, 2007 | 10:05 AM
  #2  
FiftyFive's Avatar
Moderator Alumnus
 
Joined: Aug 2004
Posts: 10,823
Likes: 52
From: SW Connecticut
How many entries are there?
Reply
Old Feb 2, 2007 | 10:05 AM
  #3  
fdl's Avatar
fdl
Senior Moderator
 
Joined: Jul 2003
Posts: 21,672
Likes: 1
From: Toronto
Start typing now.
Reply
Old Feb 2, 2007 | 10:06 AM
  #4  
studville's Avatar
Doesn't Rice His Car
 
Joined: Jul 2006
Posts: 1,053
Likes: 2
From: Kansas City Area
I'm no pro, but I'm sure there's someone here that can help you on this. I believe the term you're looking for is delimiters???
Reply
Old Feb 2, 2007 | 10:12 AM
  #5  
poohlikeshunny's Avatar
Thread Starter
Money is funny.
 
Joined: Jan 2004
Posts: 4,166
Likes: 0
From: King of Prussia, PA
what is a delimiter?

there are about 1400 entries and it takes me about an hour per 50. So do the math and i have enough time to manually do 500 before it is due...big trouble for me!

I was really hoping a formula could do this so I wouldn't have to do it by hand, b/c there';s no way I can finish in time anyway!
Reply
Old Feb 2, 2007 | 10:27 AM
  #6  
NSXNEXT's Avatar
Senior Moderator
25 Year Member
Liked
Loved
Community Favorite
iTrader: (2)
 
Joined: May 2000
Posts: 27,921
Likes: 1,080
From: where the weather suits my clothes
Assume name is "John Smith"

To get first name: =LEFT(A1,IF(ISERROR(FIND(" ",A1,1)),LEN(A1),FIND(" ",A1,1)-1))

To get last name: =TRIM(IF(ISERROR(FIND(" ",A1,1)),A1,MID(A1,FIND(" ",A1,1)+1,
IF(ISERROR(FIND(" ",A1,FIND(",",A1,1)+2)),LEN(A1),
FIND(" ",A1,FIND(" ",A1,1)+2))-FIND(" ",A1,1))))

The second formula will only work if it's just first and last name (no middle initials)
Reply
Old Feb 2, 2007 | 10:30 AM
  #7  
AdamNJ's Avatar
Make MyTL Great Again
 
Joined: Nov 2004
Posts: 1,686
Likes: 5
From: Dunellen, NJ
try 'text to columns' under the data menu...allows you to break a column up similar to your options when opening a text file
Reply
Old Feb 2, 2007 | 10:30 AM
  #8  
bl^5's Avatar
Got da Internet Goin Nutz
 
Joined: Oct 2001
Posts: 1,997
Likes: 3
From: The Land of Sugar, TEXAS
NSXNEXT,

you sir, are THE SHIT! HOT DAMN!
Reply
Old Feb 2, 2007 | 10:30 AM
  #9  
NSXNEXT's Avatar
Senior Moderator
25 Year Member
Liked
Loved
Community Favorite
iTrader: (2)
 
Joined: May 2000
Posts: 27,921
Likes: 1,080
From: where the weather suits my clothes
If you have commas between the first and last name just replace the " " throughout the forumula.
Reply
Old Feb 2, 2007 | 10:31 AM
  #10  
AdamNJ's Avatar
Make MyTL Great Again
 
Joined: Nov 2004
Posts: 1,686
Likes: 5
From: Dunellen, NJ
also I hope when it comes to word you are just doing a mail merge for envelopes/labels and using the Excel spreadsheet as the data source. Otherwise you are doing too much work.
Reply
Old Feb 2, 2007 | 10:32 AM
  #11  
NSXNEXT's Avatar
Senior Moderator
25 Year Member
Liked
Loved
Community Favorite
iTrader: (2)
 
Joined: May 2000
Posts: 27,921
Likes: 1,080
From: where the weather suits my clothes
Originally Posted by bl^5
NSXNEXT,

you sir, are THE SHIT! HOT DAMN!

Nice edit.
Reply
Old Feb 2, 2007 | 10:32 AM
  #12  
poohlikeshunny's Avatar
Thread Starter
Money is funny.
 
Joined: Jan 2004
Posts: 4,166
Likes: 0
From: King of Prussia, PA
Originally Posted by NSXNEXT
Assume name is "John Smith"

To get first name: =LEFT(A1,IF(ISERROR(FIND(" ",A1,1)),LEN(A1),FIND(" ",A1,1)-1))

To get last name: =TRIM(IF(ISERROR(FIND(" ",A1,1)),A1,MID(A1,FIND(" ",A1,1)+1,
IF(ISERROR(FIND(" ",A1,FIND(",",A1,1)+2)),LEN(A1),
FIND(" ",A1,FIND(" ",A1,1)+2))-FIND(" ",A1,1))))

The second formula will only work if it's just first and last name (no middle initials)
Wow man...impressive...I'm gonna give that a shot and see what happens.

Middle initials are not necessary, so if they are in there, will it just omit them? Also can these formulas be applied to the street address and the city state and zip separately?

I should probably know a little more about how the formulas work if I want to alter them, huh? what is iserror? what does excel look for with that term?

Thanx so much for posting so quickly...I really appreciate you guys saving my ass at work!!

adamnj, is there another way to do it that would create more work?

Last edited by poohlikeshunny; Feb 2, 2007 at 10:35 AM.
Reply
Old Feb 2, 2007 | 10:37 AM
  #13  
poohlikeshunny's Avatar
Thread Starter
Money is funny.
 
Joined: Jan 2004
Posts: 4,166
Likes: 0
From: King of Prussia, PA
Originally Posted by bl^5
NSXNEXT,

you sir, are THE SHIT! HOT DAMN!
This I would have to wholeheartedly agree...I didn't expect such a precise comment so soon!
Reply
Old Feb 2, 2007 | 10:37 AM
  #14  
bl^5's Avatar
Got da Internet Goin Nutz
 
Joined: Oct 2001
Posts: 1,997
Likes: 3
From: The Land of Sugar, TEXAS
I think I would have copied it into word. Replaced all spaces with a common and a space or with a tab and then imported it into excel with common or tab delineated columns...
Reply
Old Feb 2, 2007 | 10:38 AM
  #15  
NSXNEXT's Avatar
Senior Moderator
25 Year Member
Liked
Loved
Community Favorite
iTrader: (2)
 
Joined: May 2000
Posts: 27,921
Likes: 1,080
From: where the weather suits my clothes
I use Excel ALL THE TIME so I've kept a nice list of formulas to refer to.
Reply
Old Feb 2, 2007 | 10:43 AM
  #16  
poohlikeshunny's Avatar
Thread Starter
Money is funny.
 
Joined: Jan 2004
Posts: 4,166
Likes: 0
From: King of Prussia, PA
Originally Posted by bl^5
I think I would have copied it into word. Replaced all spaces with a common and a space or with a tab and then imported it into excel with common or tab delineated columns...
man u guys really know your excel...other than entering data, this is the most advanced excel work I have ever done. So I hope you don't mind me asking...what is a tab delinieated column?

btw: I posted this at excelforum (which I figure would get some helpful responses...and once again I come back to AZ as this seems to be the only place where there is someone who ha an answer to every question you may have...) this site does rock, and it's because of the members!

NSXNEXT, would it be too much trouble to get a copy of those formulas you have laying around? I'm thinking you may have stuff there that will save my ass next week too!
Reply
Old Feb 2, 2007 | 10:50 AM
  #17  
AdamNJ's Avatar
Make MyTL Great Again
 
Joined: Nov 2004
Posts: 1,686
Likes: 5
From: Dunellen, NJ
If you look through excel help, or the list of forumlas in the formula window (down arrow next to autosum >> more functions), you can discover what you can do.

Delinieated (anything) means that 'something' (in this case a column) contains multiple piece of information which are broken up (delinieated) by something...be it a character like a space or comma. An alternative is 'Fixed Width', meaning you know that even though everything is in one 'something', at character position 10 starts a first name, at character position 35 starts the last name...etc

Both can be handled by 'text to columns' or opening a .txt file (importing).
Reply
Old Feb 2, 2007 | 10:56 AM
  #18  
fdl's Avatar
fdl
Senior Moderator
 
Joined: Jul 2003
Posts: 21,672
Likes: 1
From: Toronto
NSXNEXT just blew my f#$ckn mind
Reply
Old Feb 2, 2007 | 10:57 AM
  #19  
poohlikeshunny's Avatar
Thread Starter
Money is funny.
 
Joined: Jan 2004
Posts: 4,166
Likes: 0
From: King of Prussia, PA
does the formula list have all the formulas? so with fixed width, you can set it up to read a space break of say, 30 spaces between the last name and the address, and then move anything after that 30 spaces into another column? I'm assuming there is a similar formula to the name one that NSXNEXT poste above that will do this by recognizing the amounts of breaks between each piece of info you are trying to move?
Reply
Old Feb 2, 2007 | 11:34 AM
  #20  
AdamNJ's Avatar
Make MyTL Great Again
 
Joined: Nov 2004
Posts: 1,686
Likes: 5
From: Dunellen, NJ
Originally Posted by poohlikeshunny
does the formula list have all the formulas? so with fixed width, you can set it up to read a space break of say, 30 spaces between the last name and the address, and then move anything after that 30 spaces into another column? I'm assuming there is a similar formula to the name one that NSXNEXT poste above that will do this by recognizing the amounts of breaks between each piece of info you are trying to move?

Try it out...
Yes you set the breakpoints (it shows your actual data while you are setting them so it's easy to see what will happen). Each breakpoint causes data after it to be put into a new column. So when you take one column of data, and set 1 breakpoint at position 20, you are going to get one column of data up to #20, and another column with everything else.
Reply
Old Feb 2, 2007 | 11:35 AM
  #21  
pmptx's Avatar
Honda+Blue=My garage
 
Joined: Dec 2003
Posts: 2,564
Likes: 43
From: DFW TX
NSXNEXT's formula is a compound(mega) formula. The beauty of Excel is that you can combine multiple formulas to perform complex functions.

You won't find that one in the formulas menu, except in its individual components.

BTW, nice coding NSXNEXT
Reply
Old Feb 2, 2007 | 11:42 AM
  #22  
poohlikeshunny's Avatar
Thread Starter
Money is funny.
 
Joined: Jan 2004
Posts: 4,166
Likes: 0
From: King of Prussia, PA
Originally Posted by AdamNJ
Try it out...
Yes you set the breakpoints (it shows your actual data while you are setting them so it's easy to see what will happen). Each breakpoint causes data after it to be put into a new column. So when you take one column of data, and set 1 breakpoint at position 20, you are going to get one column of data up to #20, and another column with everything else.
OK...gonna give it a try...how do you set breakpoints? In the formula?

pmptx, so that compound formula he posted is moer than one formula? Is there a rule to follow when putting them together? Any certain characters you have to use to separate the formulas?
Reply
Old Feb 2, 2007 | 11:42 AM
  #23  
docbass's Avatar
Instructor
 
Joined: Mar 2005
Posts: 158
Likes: 0
From: DE
Originally Posted by NSXNEXT
I use Excel ALL THE TIME so I've kept a nice list of formulas to refer to.
Any chance to get a copy of said list? My group uses excel all the time and always looking to add to our knowledge base.
Reply
Old Feb 2, 2007 | 11:47 AM
  #24  
poohlikeshunny's Avatar
Thread Starter
Money is funny.
 
Joined: Jan 2004
Posts: 4,166
Likes: 0
From: King of Prussia, PA
also, what if the spaces between info in the cells are not the same from cell to cell? ex. ater "John Smith" there are 7 spaces until the beginning of the address. But in the cell below there are 12 spaces between "Mary Smith" and her address...Do you have to go in manually and adjust the breaks for the formula to read?
Reply
Old Feb 2, 2007 | 11:58 AM
  #25  
AdamNJ's Avatar
Make MyTL Great Again
 
Joined: Nov 2004
Posts: 1,686
Likes: 5
From: Dunellen, NJ
You will see how to set breakpoints when you open the 'text to columns' command / window. If you pick fixed width (if you data is such), a 'wizard' window shoudl come up, showing your data in a gird type window, the a ruler up top. It will try to automatically insert breakpoints. Breakpoints show up as vertical black lines, and there will be an arrow at the top where it meets the rulter...you can click and drag to move it, or double click to remove/add one.

Originally Posted by NSXNEXT
To get first name: =LEFT(A1,IF(ISERROR(FIND(" ",A1,1)),LEN(A1),FIND(" ",A1,1)-1))
Each time you see xxxxxx( <stuff here - aka operands> ), that is a seperate formula. xxxxxx is the operator aka the command/function, and that operator performs a function (something) on the operands. Each formula is setup to take a certain number of operands and they each tell the code something.

So 'left',' if', 'iserror', 'find', 'len' are all functions. As already mentioned you can put multiple functions together to work on a piece of data. In the formula above, 'if' is operating on ISERROR(FIND(" ",A1,1). Also FYI, when using a function, it doesn't matter the case (uppercase or lowercase) that you use.
Reply
Old Feb 2, 2007 | 12:01 PM
  #26  
bl^5's Avatar
Got da Internet Goin Nutz
 
Joined: Oct 2001
Posts: 1,997
Likes: 3
From: The Land of Sugar, TEXAS
Originally Posted by poohlikeshunny
man u guys really know your excel...other than entering data, this is the most advanced excel work I have ever done. So I hope you don't mind me asking...what is a tab delinieated column?

btw: I posted this at excelforum (which I figure would get some helpful responses...and once again I come back to AZ as this seems to be the only place where there is someone who ha an answer to every question you may have...) this site does rock, and it's because of the members!

NSXNEXT, would it be too much trouble to get a copy of those formulas you have laying around? I'm thinking you may have stuff there that will save my ass next week too!
To be more specific:

1.copy the data into word go to past special and paste as unformatted text
2. Replaced all spaces with a common and a space (ie each field that you want should have a common before it and after it - first name, last name, address, city, state, zip)
3. Save as a .txt file
4. In excel goto Data-Import External Data-Import Data...
5. Find your file and select it
6. A wizard box will come up select the delimited button hit next and then select only common delimited

This should do it....

I've never used the formula, so this of course is just one option...
Reply
Old Feb 2, 2007 | 12:05 PM
  #27  
AdamNJ's Avatar
Make MyTL Great Again
 
Joined: Nov 2004
Posts: 1,686
Likes: 5
From: Dunellen, NJ
Originally Posted by poohlikeshunny
also, what if the spaces between info in the cells are not the same from cell to cell? ex. ater "John Smith" there are 7 spaces until the beginning of the address. But in the cell below there are 12 spaces between "Mary Smith" and her address...Do you have to go in manually and adjust the breaks for the formula to read?

Let's get your words straight first....Formulas are one thing, using 'text to columns' (delimited and fixed width) are not the same thing. When you use 'text to columns' and set a breakpoint, you are setting it for the whole column...it isn't a row by row thing.

I'd really have to see what you are talking about. Can you post a screenshot or something (black out the people's addresses/info though. If every row is not laid out in the same fashion, you probalby don't have fixed width data. And instead you should be using delimited (ie spaces).
Reply
Old Feb 2, 2007 | 12:18 PM
  #28  
poohlikeshunny's Avatar
Thread Starter
Money is funny.
 
Joined: Jan 2004
Posts: 4,166
Likes: 0
From: King of Prussia, PA
yeah, definitely no fixed width data then. I can post an example of a screenshot, but how do Itake a screenshot? I can make an example file and post it, but how would I go about doing that?
Reply
Old Feb 2, 2007 | 12:36 PM
  #29  
cibs's Avatar
Drifting
 
Joined: May 2006
Posts: 2,355
Likes: 1
From: Mississauga, Canada
screen shot = print scrn, then paste in paint or something, and then host it..
Reply
Old Feb 2, 2007 | 12:36 PM
  #30  
cibs's Avatar
Drifting
 
Joined: May 2006
Posts: 2,355
Likes: 1
From: Mississauga, Canada
Originally Posted by bl^5
To be more specific:

1.copy the data into word go to past special and paste as unformatted text
2. Replaced all spaces with a common and a space (ie each field that you want should have a common before it and after it - first name, last name, address, city, state, zip)
3. Save as a .txt file
4. In excel goto Data-Import External Data-Import Data...
5. Find your file and select it
6. A wizard box will come up select the delimited button hit next and then select only common delimited

This should do it....

I've never used the formula, so this of course is just one option...

Reply
Old Feb 2, 2007 | 01:50 PM
  #31  
poohlikeshunny's Avatar
Thread Starter
Money is funny.
 
Joined: Jan 2004
Posts: 4,166
Likes: 0
From: King of Prussia, PA
where can i get the pic hosted? can anyone do this for me?
Reply
Old Feb 2, 2007 | 02:03 PM
  #32  
GIBSON6594's Avatar
My Garage
 
Joined: Nov 2004
Posts: 13,386
Likes: 11
From: NY
imageshack
Reply
Old Feb 2, 2007 | 02:36 PM
  #33  
poohlikeshunny's Avatar
Thread Starter
Money is funny.
 
Joined: Jan 2004
Posts: 4,166
Likes: 0
From: King of Prussia, PA
ok...hopefully i can get that up before time's up
Reply
Old Feb 2, 2007 | 02:39 PM
  #34  
poohlikeshunny's Avatar
Thread Starter
Money is funny.
 
Joined: Jan 2004
Posts: 4,166
Likes: 0
From: King of Prussia, PA
how do i turn it into a gif or jpg from bmp?
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
emailnatec
5G TLX Tires, Wheels & Suspension
29
Sep 28, 2018 04:27 PM
rcs86
Car Parts for Sale
3
Aug 2, 2016 06:52 PM
InFaMouSLink
Car Parts for Sale
6
Oct 27, 2015 06:52 PM
detailersdomain
Wash & Wax
3
Oct 9, 2015 10:13 PM
AcuraKidd
Non-Automotive & Motorcycle Sales
0
Sep 25, 2015 11:18 PM




All times are GMT -5. The time now is 03:59 PM.