Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default How do I truncate something like this?

I have a column with text like

BRAND X - version 1
BRAND X - version 2.4
BRAND Y - version 3D
BRAND Y - version 8C
BRAND Y - version 3.5.6
BRAND Z - version 5X

and so on. It's very long spreadsheet. I'd like to chop off the
version info (which is of varying length) and group everything
together by just the brand name. How do I do this?

Thanks for any input.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default How do I truncate something like this?

Assuming that the divider between the Brand name and the version number is
always " - " (and that " - " doesn't show up in a brand name), then a formula
like this will work. Assumes first entry is in A1, so in B1 you could put:
=Left(A1,Find(" - ",A1)-1)

If you want to then be able to do away with the combined Brand - Version
information in the original column, Copy and Paste Special | Values the
Brand-only information. That will convert them to true values, not the
results of a formula and you will no longer need the source data in column A.

"ckeys" wrote:

I have a column with text like

BRAND X - version 1
BRAND X - version 2.4
BRAND Y - version 3D
BRAND Y - version 8C
BRAND Y - version 3.5.6
BRAND Z - version 5X

and so on. It's very long spreadsheet. I'd like to chop off the
version info (which is of varying length) and group everything
together by just the brand name. How do I do this?

Thanks for any input.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default How do I truncate something like this?

Maybe you can select the range
edit|replace
what: _-* (spacebar, hyphen, asterisk)
with: (leave blank)
replace all

Then you could use a pivottable or sort your data and use data|subtotals.

ckeys wrote:

I have a column with text like

BRAND X - version 1
BRAND X - version 2.4
BRAND Y - version 3D
BRAND Y - version 8C
BRAND Y - version 3.5.6
BRAND Z - version 5X

and so on. It's very long spreadsheet. I'd like to chop off the
version info (which is of varying length) and group everything
together by just the brand name. How do I do this?

Thanks for any input.


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default How do I truncate something like this?

On Sat, 30 Dec 2006 10:12:37 -0600, Dave Peterson
wrote:

Maybe you can select the range
edit|replace
what: _-* (spacebar, hyphen, asterisk)
with: (leave blank)
replace all


Thanks for a great and simple solution. I had no idea that I could use
wildcards in Excel searches... (Must be a fine print in my Excel
books)

Thanks to all others for wonderful suggestions. I've learned a lot
from this group.
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default How do I truncate something like this?

You could try DataText to ColumnsDelimited by "-"


Gord Dibben MS Excel MVP

On Sat, 30 Dec 2006 09:20:50 -0600, ckeys wrote:

I have a column with text like

BRAND X - version 1
BRAND X - version 2.4
BRAND Y - version 3D
BRAND Y - version 8C
BRAND Y - version 3.5.6
BRAND Z - version 5X

and so on. It's very long spreadsheet. I'd like to chop off the
version info (which is of varying length) and group everything
together by just the brand name. How do I do this?

Thanks for any input.




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 620
Default How do I truncate something like this?

Data/ Text to Columns/ Delimited/ Other: select hyphen as delimiter.
--
David Biddulph

"ckeys" wrote in message
...
I have a column with text like

BRAND X - version 1
BRAND X - version 2.4
BRAND Y - version 3D
BRAND Y - version 8C
BRAND Y - version 3.5.6
BRAND Z - version 5X

and so on. It's very long spreadsheet. I'd like to chop off the
version info (which is of varying length) and group everything
together by just the brand name. How do I do this?

Thanks for any input.



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default How do I truncate something like this?

You can try TTC (Text To Columns).

Select your column of data, then:
<Data <Text To Columns <Delimited <Next,

Click in "Other" and enter the dash " - ", then <Next.

In the "Data Preview" window, click in the second column containing the
versions to select it.

Then click on "Do Not Import Column".
That column header changes to "Skip".

Click <Finish, and you've eliminated all the versions data.
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"ckeys" wrote in message
...
I have a column with text like

BRAND X - version 1
BRAND X - version 2.4
BRAND Y - version 3D
BRAND Y - version 8C
BRAND Y - version 3.5.6
BRAND Z - version 5X

and so on. It's very long spreadsheet. I'd like to chop off the
version info (which is of varying length) and group everything
together by just the brand name. How do I do this?

Thanks for any input.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to truncate or separate the first 3 characters/digits of co Jim Excel Discussion (Misc queries) 4 January 13th 06 01:51 PM
truncate tamar Excel Worksheet Functions 1 July 19th 05 10:32 PM
truncate ssn to first four digits DonJackson Excel Discussion (Misc queries) 2 June 1st 05 12:30 AM
I WANT to truncate my leading zeros [email protected] Excel Discussion (Misc queries) 5 April 21st 05 02:19 AM
Truncate scientific notation Topher Excel Worksheet Functions 1 March 21st 05 10:28 PM


All times are GMT +1. The time now is 11:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"