Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default take some data column into next column ie ABC-DEF-GHI i want DEF

i want to copy the mid section of the data in a column into the next column.
each row has a cell with this "ABC-DEF-GHI" configuration of date. i only
want "DEF" (the middle section)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default take some data column into next column ie ABC-DEF-GHI i want DEF

One of these should work:

If always that exact structu
=MID(A2,5,3)

If structure varies, but middle is always 3 characters:
=MID(A2,FIND("-",A2)+1),3)

If structure varies and middle is not always 3 characters:
=MID(A2,FIND("-",A2)+1,FIND("-",MID(A2,FIND("-",A2)+1,999))-1)
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Bernard" wrote:

i want to copy the mid section of the data in a column into the next column.
each row has a cell with this "ABC-DEF-GHI" configuration of date. i only
want "DEF" (the middle section)

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,533
Default take some data column into next column ie ABC-DEF-GHI i want DEF

Hi

TextToColumns function on the data menu is what you need.

Use the wizard, dash as delimiter skip first and last column, and set
destination to next column.

Hopes this helps.
....
Per

"Bernard" skrev i meddelelsen
...
i want to copy the mid section of the data in a column into the next
column.
each row has a cell with this "ABC-DEF-GHI" configuration of date. i only
want "DEF" (the middle section)


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 896
Default take some data column into next column ie ABC-DEF-GHI i want DEF

one way:

=MID(A1,FIND("-",A1)+1,3)

On 10 Lis, 14:51, Bernard wrote:
i want to copy the mid section of the data in a column into the next column.
each row has a cell with this "ABC-DEF-GHI" configuration of date. i only
want "DEF" (the middle section)


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default take some data column into next column ie ABC-DEF-GHI i want DEF

For a formula solution, use FIND within a MID formula. Or use a macro with
INSTR and INSTRREV

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Bernard" wrote in message
...
i want to copy the mid section of the data in a column into the next
column.
each row has a cell with this "ABC-DEF-GHI" configuration of date. i only
want "DEF" (the middle section)




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default take some data column into next column ie ABC-DEF-GHI i want DEF

Try
=MID(TRIM(LEFT(SUBSTITUTE(A1,"-",REPT(" ",255),2),255)),FIND("-",A1)+1,255)

If this post helps click Yes
---------------
Jacob Skaria


"Bernard" wrote:

i want to copy the mid section of the data in a column into the next column.
each row has a cell with this "ABC-DEF-GHI" configuration of date. i only
want "DEF" (the middle section)

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default take some data column into next column ie ABC-DEF-GHI i want DEF

Per

You think like I do.

Why use formulas when you don't have to.


Gord Dibben MS Excel MVP

On Tue, 10 Nov 2009 14:57:38 +0100, "Per Jessen" wrote:

Hi

TextToColumns function on the data menu is what you need.

Use the wizard, dash as delimiter skip first and last column, and set
destination to next column.

Hopes this helps.
...
Per

"Bernard" skrev i meddelelsen
...
i want to copy the mid section of the data in a column into the next
column.
each row has a cell with this "ABC-DEF-GHI" configuration of date. i only
want "DEF" (the middle section)


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
Plotting multiple Y column data versus single X column in Excel 20 RossM Charts and Charting in Excel 3 June 28th 09 01:39 AM
Count cells w/values in column if the data in column a matches cri mdcgpw Excel Worksheet Functions 4 January 12th 09 11:55 PM
Based on a condition in one column, search for a year in another column, and display data from another column in the same row look [email protected] Excel Discussion (Misc queries) 1 December 27th 06 05:47 PM
If data in one column, take date, add 2 days, and turn the entire column a color... [email protected] Excel Discussion (Misc queries) 6 August 24th 06 03:58 AM
Matching one column against another column of data to show the same amount of data. dodat Excel Worksheet Functions 0 December 30th 05 06:19 PM


All times are GMT +1. The time now is 09:29 PM.

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

About Us

"It's about Microsoft Excel"