+ Reply to Thread
Results 1 to 44 of 44

Concatenate VARIABLE ranges of Character Strings

Hybrid View

  1. #1
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Concatenate VARIABLE ranges of Character Strings

    Pl see attached file with UDF "ConcatenateTillBlank" for column I result .
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    05-21-2014
    Posts
    59

    Re: Concatenate VARIABLE ranges of Character Strings

    Kvsrinivasamurthy:

    Thanks very much for this--I clicked and dragged it down as long as I had values in the right column and it worked.

    NOW: the problem is that the field that I really need to work--UNIQUE--is working, but the problem is that there are 0s being put in front of the first digit in the pattern of values, so that I am getting the wrong string. I also can't seem to get a label for the the group (based on this string), and because of that I can't get a Count for the label for the group.



    For example: I have 3 1 2 1 2 3 in a series, and I can run your Formula fine in the UDF field, but in the Unique field, I am getting 00312123. The main reason for that is because in the formula in the Unique field, the character string has "00000000" as a default value, but it doesn't change if I have a string that is based on what I have--it should be "000000" instead. The set of values right before it had a similar situation--the character string was "00000000" but the pattern of characters was "0000". (I had to MANUALLY change the string and the number of cell references that it was concatenating together.)

    What I need to know is this:

    Because my several THOUSAND-record dataset is going to have a wide variety of record sets with different values--3 records to 2 to 2 to 3 to 4 to 2 to 2--how can I get the formula in the Unique field to be DYNAMIC enough to have the IDs in your UDF field and the Unique field to change? (As well as the Cell references?)

    SO: instead of "000000" the whole way, I would need something like "000000" switching to "0000" and then "000000" and then "00000000" and then "0000" ....

    Click on I4 to see what I am talking about.

    The other big question I have is how do I get the Pattern2 values to recognize the different Pattern of Values field information so that the Count can be based on this?
    The string of characters in the Unique field create a label in Pattern2, and in the Pattern of Values field, and once these happen, the Count field updates for each Pattern2 value.

    If htis is too much to take on, I can roll with it, but if you can give me any help, that would be great. If you could also write out the steps you took to get there that would be a help too.

    Thanks again,

    Dan

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Convert ASCII Character strings into HEX Strings
    By Chris Mathers in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-13-2010, 12:25 PM
  2. matching character strings
    By andymac63 in forum Excel General
    Replies: 2
    Last Post: 04-16-2007, 04:29 PM
  3. Character Locations in Strings
    By Pflugs in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-07-2006, 07:30 PM
  4. [SOLVED] Counting variable ranges and auto-summing variable ranges
    By Father Guido in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-28-2006, 11:10 PM
  5. [SOLVED] concatenate strings
    By Gary''s Student in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-15-2005, 01:05 PM

Tags for this Thread

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