Tilted Forum Project Discussion Community

Tilted Forum Project Discussion Community (https://thetfp.com/tfp/)
-   Tilted Technology (https://thetfp.com/tfp/tilted-technology/)
-   -   Need help with Excel (https://thetfp.com/tfp/tilted-technology/157944-need-help-excel.html)

Walt 11-09-2010 05:41 PM

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.

Nepenthes 11-09-2010 06:41 PM

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.

dlish 11-09-2010 06:56 PM

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.

Walt 11-09-2010 06:57 PM

Quote:

Originally Posted by Nepenthes (Post 2840138)
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 (Post 2840160)
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!

amonkie 11-09-2010 07:19 PM

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.

Daniel_ 11-10-2010 12:14 AM

Quote:

Originally Posted by amonkie (Post 2840169)
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).

GreyWolf 11-10-2010 09:17 AM

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).

Xazy 11-12-2010 05:48 AM

A very good forum that offers excel help for free, is Excel Help Forum

Jinn 11-12-2010 08:54 AM

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.

Strange Famous 11-13-2010 02:42 AM

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))

_

Daniel_ 11-13-2010 03:23 AM

I never understood why there is a CONCATENATE and "&". Anyone know? They work the same way as far as I can see.


All times are GMT -8. The time now is 02:24 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, 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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360