+ Reply to Thread
Results 1 to 5 of 5

How can I get range strings from cell values

  1. #1
    Registered User
    Join Date
    03-18-2012
    Location
    Damietta, Egypt
    MS-Off Ver
    Excel 2007
    Posts
    2

    How can I get range strings from cell values

    Hi there,
    A B C D E F
    AA AB
    5 15
    20 45
    45 90

    so i need a macro to clear ranges that are seen in the cells above
    range AA5:AA15
    range AA20:AA45
    and so on
    the values will change so i need the code to run ang get the ranges from the values
    Last edited by 6StringJazzer; 11-02-2020 at 02:42 PM. Reason: title; moved from Excel General

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,912

    Re: How can I get range strings from cell values

    If you meant AA5:AB15 instead of AA5:AA15, then

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: How can I get range strings from cell values

    Since you use only column AA in your narrative, but show Column AB in your diagram, I am not sure what you really want. But I will guess that it is the parameters in the diagram.

    Please Login or Register  to view this content.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  4. #4
    Registered User
    Join Date
    03-18-2012
    Location
    Damietta, Egypt
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: How can I get range strings from cell values

    perfect. it worked like a charm
    the two answers worked
    Last edited by thunder_anger; 11-02-2020 at 05:22 PM. Reason: forgot to thank both answers

  5. #5
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: How can I get range strings from cell values

    Thanks for the feedback,
    Regards, JLG

+ 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] Button-macro to read ranges of cells and return values of other cells based on results
    By TnD_Guy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-06-2019, 04:45 PM
  2. Beginner question on how to read cells and changing values to the same cells
    By liorde in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-04-2019, 11:05 AM
  3. [SOLVED] I need to set ranges for Unique values, then from those ranges pick random cells...
    By Darth269 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-21-2014, 04:45 PM
  4. fomatting cells based on difference between values of cells two ranges.
    By KATIEexcel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-05-2013, 04:08 AM
  5. [SOLVED] Selecting Ranges Based on Cells with same Values
    By nick_w79 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-17-2012, 04:18 AM
  6. [SOLVED] Counting Cells with certain date ranges as values
    By audreyglennette in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 05-03-2006, 07:20 PM
  7. Replies: 0
    Last Post: 08-28-2005, 10:50 AM

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