Results 1 to 5 of 5

String combining column names. Extract values from these columns.

Threaded View

  1. #1
    Registered User
    Join Date
    05-29-2015
    Location
    Germany
    MS-Off Ver
    2010
    Posts
    27

    String combining column names. Extract values from these columns.

    Hi, I have 40 columns named 001,..., 040. They consist of up to 200 hundred NATURAL numbers. I need to create a macro that will copy values only from certain columns based on the strings I have to process (e.g. 002-040-017-023 or 009-008 or 006 etc.).
    Example:
    IN
    001	002	003	004
    1	2	3	0
    2	4	7	1
    3	6	9	2
    4	8		
    5	10		
    
    OUT
    001-004-002	004-003
    0	0
    1	1
    2	2
    3	3
    4	7
    5	9
    6	
    7	
    8	
    9	
    10
    Any idea? I was thinking about selecting values based on prefix from a column where I would store all column values (with prefixes representing column names). Then the macro would remove prefixes, blanks, duplicates and sort it out values. I am able to produce everything except for the function selection column values.
    Last edited by 6StringJazzer; 11-03-2015 at 10:08 AM. Reason: added code tags to provide correct spacing for example

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 07-14-2015, 06:46 AM
  2. Trying to extract First and Last Names from a string
    By Philalawyer in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-01-2014, 06:50 PM
  3. Replies: 8
    Last Post: 09-12-2013, 09:17 AM
  4. Replies: 1
    Last Post: 02-14-2013, 02:32 PM
  5. Replies: 5
    Last Post: 11-08-2012, 03:38 PM
  6. How to extract names from a text string?
    By Bandini in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-16-2012, 09:51 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1