Tilted Forum Project Discussion Community  

Go Back   Tilted Forum Project Discussion Community > Interests > Tilted Technology


 
 
LinkBack Thread Tools
Old 11-09-2010, 05:41 PM   #1 (permalink)
I'm calmer than you are, dude
 
Walt's Avatar
 
Location: North Carolina
Need help with Excel

I was hoping someone here could help me out. I am trying to organize a course list for a friend. I have about 800 courses that are listed like so in column A:

ANT 1210 Introduction to Anthropology.

I would like to separate the course abbreviation and number (the first 8 characters) in to column A and the course title in to column B for all 800. Is there a quick formula I can plug in to do this for me or am I stuck doing it manually?

Thanks.
__________________
Calmer than you are...
Walt is offline  
Old 11-09-2010, 06:41 PM   #2 (permalink)
Crazy
 
Nepenthes's Avatar
 
Location: New England, USA
Yes, there are a couple ways about it.

You can get the eight left characters in a cell by using the formula =left(cell with data,8).


You can also go to Data, Text-to-Columns to split the text into two columns using the fixed-width option.
Nepenthes is offline  
Old 11-09-2010, 06:56 PM   #3 (permalink)
Currently sour but formerly Dlishs
 
dlish's Avatar
 
Super Moderator
Location: Australia/UAE
thanks a pretty cool trick Nep!

theres a guy online called The Excel Addict who send out weekly newsletters to his subscribers with free tips for excel. You may want to consider joining his list if you want to brush up on your excel skills. Ive been a part of it for about a year now and ive picked up many cool tricks.
__________________
An injustice anywhere, is an injustice everywhere

I always sign my facebook comments with ()()===========(}. Does that make me gay?
- Filthy
dlish is offline  
Old 11-09-2010, 06:57 PM   #4 (permalink)
I'm calmer than you are, dude
 
Walt's Avatar
 
Location: North Carolina
Quote:
Originally Posted by Nepenthes View Post
Yes, there are a couple ways about it.

You can get the eight left characters in a cell by using the formula =left(cell with data,8).

You can also go to Data, Text-to-Columns to split the text into two columns using the fixed-width option.
Awesome! Thanks much!

Quote:
Originally Posted by dlish View Post
thanks a pretty cool trick Nep!

theres a guy online called The Excel Addict who send out weekly newsletters to his subscribers with free tips for excel. You may want to consider joining his list if you want to brush up on your excel skills. Ive been a part of it for about a year now and ive picked up many cool tricks.
I will definitely check that out. Thanks!
__________________
Calmer than you are...
Walt is offline  
Old 11-09-2010, 07:19 PM   #5 (permalink)
Drifting
 
amonkie's Avatar
 
Administrator
Location: Windy City
I didn't know about the Excel Addict but I'm in excel every day for my job.

I usually prefer the Text to Columns approach as I export large amounts of raw data from our database, and sometimes the formatting is different each time. So rather than try to set up formulas, I can set the parameters to catch either by comma, or fixed width. These seem to work for 95% of the data formatting.
__________________
Calling from deep in the heart, from where the eyes can't see and the ears can't hear, from where the mountain trails end and only love can go... ~~~ Three Rivers Hare Krishna
amonkie is offline  
Old 11-10-2010, 12:14 AM   #6 (permalink)
Evil Priest: The Devil Made Me Do It!
 
Daniel_'s Avatar
 
Location: Southern England
Quote:
Originally Posted by amonkie View Post
I didn't know about the Excel Addict but I'm in excel every day for my job.

I usually prefer the Text to Columns approach as I export large amounts of raw data from our database, and sometimes the formatting is different each time. So rather than try to set up formulas, I can set the parameters to catch either by comma, or fixed width. These seem to work for 95% of the data formatting.
I tend to go the other way - because you can add new data and drag the formulae to extend the aproach. Most of my excel work is about solving problems that will come round again, and I have been bitten in the arse before by solving a problem the "quick" way today, only to have the same query come back later. I tend to find that (quick * 2) > (slow).
__________________
╔═════════════════════════════════════════╗
Overhead, the Albatross hangs motionless upon the air,
And deep beneath the rolling waves,
In labyrinths of Coral Caves,
The Echo of a distant time
Comes willowing across the sand;
And everthing is Green and Submarine

╚═════════════════════════════════════════╝
Daniel_ is offline  
Old 11-10-2010, 09:17 AM   #7 (permalink)
Sober
 
GreyWolf's Avatar
 
Location: Eastern Canada
A more generic solution, if you're still looking for one is to use the FIND function in conjunction the LEN, RIGHT, and LEFT functions.

The formula LEFT(cell,(FIND(" ",cell)-1)) will give you all the characters to the left of the first space in a cell (note the space in quotations).

The formula RIGHT(cell,(LEN(cell)-FIND(" ",cell))) will give you all the characters to the right of the first space in a cell.

While more complicated, these will work if the original list is not a fixed length (Subject codes may have different numbers of letters, or the course numbers may have more or fewer digits).
__________________
The secret to great marksmanship is deciding what the target was AFTER you've shot.
GreyWolf is offline  
Old 11-12-2010, 05:48 AM   #8 (permalink)
People in masks cannot be trusted
 
Xazy's Avatar
 
Location: NYC
A very good forum that offers excel help for free, is Excel Help Forum
__________________
Now, a clever man would put the poison into his own goblet, because he would know that only a great fool would reach for what he was given. I am not a great fool, so I can clearly not choose the wine in front of you. But you must have known I was not a great fool, you would have counted on it, so I can clearly not choose the wine in front of me.
Xazy is offline  
Old 11-12-2010, 08:54 AM   #9 (permalink)
Lover - Protector - Teacher
 
Jinn's Avatar
 
Location: Seattle, WA
For anything that requires sophisticated parsing that I know the rules for, I'll paste the raw data into TextPad and then use regular expression Search and Replace to move it around. Then I'll just replace \w or empty space or number or whatever I need to with a delimiter (like comma) and save it as a csv. Then it opens in Excel NP. It's largely a carryover from 2003, where they didn't have Text to Column. 2007+'s T2C is awesome.
__________________
"I'm typing on a computer of science, which is being sent by science wires to a little science server where you can access it. I'm not typing on a computer of philosophy or religion or whatever other thing you think can be used to understand the universe because they're a poor substitute in the role of understanding the universe which exists independent from ourselves." - Willravel
Jinn is offline  
Old 11-13-2010, 02:42 AM   #10 (permalink)
follower of the child's crusade?
 
or else just use:

=left(A1,8)
=mid (A1,9,50)

It basically means:
take the first 8 characters on the left
take the 50 characters in the middle, starting from the 9th one in)

If you have fixed characters, thats sometimes easier than using text to columns, as you can resort if

ie - if you wanted to reverse it so the name was first and the course code last you could go:

=(mid(A1,9.50)) & (left(A1,8))

_
__________________
"Do not tell lies, and do not do what you hate,
for all things are plain in the sight of Heaven. For nothing
hidden will not become manifest, and nothing covered will remain
without being uncovered."

The Gospel of Thomas
Strange Famous is offline  
Old 11-13-2010, 03:23 AM   #11 (permalink)
Evil Priest: The Devil Made Me Do It!
 
Daniel_'s Avatar
 
Location: Southern England
I never understood why there is a CONCATENATE and "&". Anyone know? They work the same way as far as I can see.
__________________
╔═════════════════════════════════════════╗
Overhead, the Albatross hangs motionless upon the air,
And deep beneath the rolling waves,
In labyrinths of Coral Caves,
The Echo of a distant time
Comes willowing across the sand;
And everthing is Green and Submarine

╚═════════════════════════════════════════╝
Daniel_ is offline  
 

Tags
excel


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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 06:01 AM.

Tilted Forum Project

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54