+ Reply to Thread
Results 1 to 4 of 4

Last text value in a range

  1. #1
    Registered User
    Join Date
    07-18-2009
    Location
    MODESTO,USA
    MS-Off Ver
    Excel 2007
    Posts
    53

    Last text value in a range

    Hello averyone, my dependant validation works as follows:

    1. On Cell D1, I can choose an optional-value.
    2. Depending on the value of Cell D1, I can choose an optional-value for E2
    3. Depending on the value of Cell E2, I can choose an optional-value for F3.

    So far so good.

    Now, how do I make F4, F5, F6... to reference to the last non-empty cell in Column E.
    Attached Files Attached Files
    Last edited by CESAR V. ARROYO; 01-11-2010 at 08:31 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: dependant validation

    This formula will display the text of the last cell in the range with text in it:

    =INDEX($E$3:$E$18, MATCH("", $E$3:$E$18, -1))

    Perhaps you can use that in your INDIRECT() function.

    ========
    NOTE: That formula will ignore numeric values in the same range. It cannot be used to return the last numeric value. Use this for numbers:

    =LOOKUP(9.9E+307, $E$3:$E$18)

    ========
    Though your exercise is Dependent Validation, your question is not. Thus this thread is mis-named in my opinion. "Last text value in a range" perhaps.
    Last edited by JBeaucaire; 01-11-2010 at 04:00 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    07-18-2009
    Location
    MODESTO,USA
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: dependent validation

    It works, thanks very much rocket scientist. I'll be more careful when naming my threads.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: dependent validation

    Glad to help.

    If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].

    You actually need to change the thread title to keep the forum database accurate for searches, so you can change that, too, while you're in there.

    (Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated. It is found across from the "time" in each of our posts.)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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