+ Reply to Thread
Results 1 to 10 of 10

Get series of values from a range of values

  1. #1
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,149

    Get series of values from a range of values

    Namaskar Experts
    I am trying to create and extract a series from the huge number of rows of data. With the help of a code, I am trying to get the result in column F from the values in column D as shown in the workbook. I hope someone can help me with a code to solve this.
    TYIA
    Attached Files Attached Files
    Last edited by RAJESH SHAH; 06-24-2023 at 05:31 AM. Reason: #Solved by Jindon
    "Where there is a will there is a way".

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,427

    Re: Get series of values from a range of values

    Must it be code or is formula also acceptable?
    Dave

  3. #3
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,149

    Re: Get series of values from a range of values

    Quote Originally Posted by FlameRetired View Post
    Must it be code or is formula also acceptable?
    FlameRetired. I require a code, but if you are able to write a formula and if you get it right, then I hope someone can convert the same into VBA code.

  4. #4
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,149

    Re: Get series of values from a range of values

    Please Login or Register  to view this content.
    If either of the first 2 characters is an alphabet, it will loops through each character of the value and get only the alphabets to the extracted value. (In case of 2T, 2 is a number T is an alphabet so it should take 2T1 Left D2,3) It should stop appending characters once a number is encountered in the first 2 characters, it should set the extracted value Left D2,8
    Last edited by RAJESH SHAH; 06-24-2023 at 12:12 AM.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,667

    Re: Get series of values from a range of values

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,149

    Re: Get series of values from a range of values

    Thank You Jindon. Run Time Error 9. Subscription out of range at this line
    If x(0) Like "[!0-9][!0-9]*" Then
    The code is displaying the correct results but with an error message. How do I avoid that message.?

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,667

    Re: Get series of values from a range of values

    Can not replicate such error.

    Upload the workbook that you got error with the code that you are using.

  8. #8
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,149

    Re: Get series of values from a range of values

    This is the code you shared. I repeat that the result is correct but facing an error message box in the end.
    Attached Files Attached Files

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,667

    Re: Get series of values from a range of values

    No error and it should not raise such error.

  10. #10
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,149

    Re: Get series of values from a range of values

    I wonder why it displayed the error message the last time I checked. Now it is not showing. It is alright now. Thanks Jindon.

+ 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. [SOLVED] Error trying to use a named range to define series x values
    By Paul Newton in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-19-2022, 11:47 AM
  2. Comparing 1 Series Of Values To Multiple Series Of Values To Find It's Best Match
    By appletree943 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-09-2021, 01:52 PM
  3. [SOLVED] Finding a range in a series of values
    By zroach in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-14-2014, 05:04 PM
  4. Defining series values range from a single cell
    By stegngas in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-29-2014, 12:36 PM
  5. Looking up a series of values over a date range?
    By Kitsan in forum Excel General
    Replies: 6
    Last Post: 10-10-2012, 08:17 AM
  6. how to return a series of values in a given range
    By globulous in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-26-2009, 01:44 AM
  7. Manually Enter X-Y Range Data to Series Values
    By ebahr in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 12-23-2008, 01:34 PM

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