Adrian_Thompson
Adrian_Thompson SuperDork
9/19/12 9:31 a.m.

Excel help.

I’m feeling dumb today, I know I can and have done this many times. I want to cut characters off the end of text.

It’s easy using the left or right function to keep a certain number of characters, but what I want to keep is what’s changing, I want to cut off a certain # of charaters.

Example:
=LEFT(A1, 13) will keep the left 13 characters so:

‘Control panel (c/o, min, new)’
Would become
‘Control panel’

But: ‘Control (c/o, min, new)’
Would be cut to ‘Control (c/o,’

But I always want to cut off the last 15 characters so I would be left with:
‘control panel’
And ‘Control’

Adrian_Thompson
Adrian_Thompson SuperDork
9/19/12 9:32 a.m.

Super dumb as I was trying to type 'Excel help needed' but managed only 'E' in the title before somehow hitting post. Very very dumb today.

GameboyRMH
GameboyRMH PowerDork
9/19/12 9:44 a.m.

You're really off, I think I found a solution on Yahoo Answers

http://answers.yahoo.com/question/index?qid=20071128170757AA9WAqL

Adrian_Thompson
Adrian_Thompson SuperDork
9/19/12 9:47 a.m.

Thanks, now mercifuly (I hope!!) this thread can sink down the page order never to be seen again.

DoctorBlade
DoctorBlade SuperDork
9/19/12 10:21 a.m.

F?

aircooled
aircooled PowerDork
9/19/12 10:33 a.m.

Not F. E

N Sperlo
N Sperlo PowerDork
9/19/12 10:48 a.m.

=Mc^2

EastCoastMojo
EastCoastMojo UberDork
9/19/12 10:53 a.m.
szeis4cookie
szeis4cookie Reader
9/19/12 10:57 a.m.
Adrian_Thompson wrote: Excel help. I’m feeling dumb today, I know I can and have done this many times. I want to cut characters off the end of text. It’s easy using the left or right function to keep a certain number of characters, but what I want to keep is what’s changing, I want to cut off a certain # of charaters. Example: =LEFT(A1, 13) will keep the left 13 characters so: ‘Control panel (c/o, min, new)’ Would become ‘Control panel’ But: ‘Control (c/o, min, new)’ Would be cut to ‘Control (c/o,’ But I always want to cut off the last 15 characters so I would be left with: ‘control panel’ And ‘Control’

=LEFT(A1, LEN(A1)-15)

Will get you there. The LEN() function returns the length of the contents of the cell.

Curmudgeon
Curmudgeon MegaDork
9/19/12 11:03 a.m.

G (spot). Dunno if this will help with your Excel question, but in other matters... http://en.wikipedia.org/wiki/G-Spot

You'll need to log in to post.

Our Preferred Partners
Ga1hCjgx3Q0bDNlHjYlx2Qu3obtsS5sEu39nwjbaoK0eArjTsckvXbEMpWR7WiUC