+ Reply to Thread
Results 1 to 6 of 6

Get values based on function

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Get values based on function

    Hello
    I think my request is weird somewhat >>
    Suppose I have values in range("A1:A5") and sum function in A6
    How can I get the values in A1:A5 (extract these values) based on the function not based on the ranges A1:A5 themselves!!
    In other words how to use the function in A6 which is
    Please Login or Register  to view this content.
    to get the values in range(A1:A5) in detail
    Is there a fuction or vba code that can look in the range which is in the function itself and return the values of these addresses?

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,825

    Re: Get values based on function

    Perhaps you are looking for the Solver or Goal Seek utilities?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Get values based on function

    I devised something like that to illustrate my target
    Please Login or Register  to view this content.

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Get values based on function

    Maybe:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Get values based on function

    Thanks sir for reply
    I want to forget the range("A1:A5") at all
    I need to concentrate on the addresses in the function itself!
    Suppose I don't know the range in the function .. I want a vba code which extracts the addresses embedded into the function and based on the addresses get the values in these addresses
    Hope it is clear now

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Get values based on function

    Hi Yasser,

    This works with that kind of formula in the Active Cell:

    Please Login or Register  to view this content.

+ 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. Need function to find row and column based on cell values
    By MariPip in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-07-2014, 04:45 PM
  2. Replies: 9
    Last Post: 04-18-2013, 09:27 AM
  3. Using VBA to create function based on values in a list
    By Rubes90 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-11-2013, 06:09 PM
  4. Replies: 3
    Last Post: 05-02-2012, 01:25 PM
  5. A function to sum values based on font color?
    By DorothyFan1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-26-2011, 09:44 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