Get characters in active cell string and name them?

Posted on 2014-08-06
Last Modified: 2014-08-06
I have a active cell, that I need to return whatever is in the character position 4, 5, and 6 from the left and name it: CH_SurfFinGrp   so I can use it later in a procedure.

How do I tell Excel that I only want these three character position values and put that in a name?
Question by:RWayneH
    LVL 27

    Accepted Solution

    In VBA:
    CH_SurfFinGrp = MID(ActiveCell.Value,4,3)


    Author Closing Comment

    Good!!  EXCELent!!

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Suggested Solutions

    Sometimes we don't want to show zeros in our Excel spreadsheets. This is sometimes most evident in our charts. Look at the chart below, all the zero values are visible. I think that all will agree with the fact that zero values are not looking nice …
    INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
    The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
    This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now