+ Reply to Thread
Results 1 to 7 of 7

Using LEFT with OFFSET to get a dynamic drop down list

  1. #1
    Registered User
    Join Date
    01-19-2012
    Location
    Brighton, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Using LEFT with OFFSET to get a dynamic drop down list

    Hello,

    My first post, so thank in advance for any help!

    I am trying to use data validation and dynamic drop downs using the following formula. This returns the cell values I want (a list of names dependent upon their class). This currently works, however I want to amend it to return only the first 2 letters at the left of the cel. The current data validation forumla is:

    =OFFSET(regstart,MATCH(C2,regcolumn,0)-1,1,COUNTIF(regcolumn,C2),1)

    I thought that this would work, however it does not:

    =LEFT(OFFSET(regstart,MATCH(C2,regcolumn,0)-1,1,COUNTIF(regcolumn,C2),1),2)

    Any ideas?

    Thanks very much.

  2. #2
    Registered User
    Join Date
    01-19-2012
    Location
    Brighton, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Using LEFT with OFFSET to get a dynamic drop down list

    Hi,

    Any ideas anyone?

    Thanks.

  3. #3
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Using LEFT with OFFSET to get a dynamic drop down list

    I don't think you can, at least not directly - I think that Left only accepts a single string rather than a range

    Can you not set up a dynamic range with just the left two characters and reference that?

  4. #4
    Registered User
    Join Date
    01-19-2012
    Location
    Brighton, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Using LEFT with OFFSET to get a dynamic drop down list

    Hi,

    Thanks for the reply - yes I didn't think of that, it would have been far easier!

    Thanks again.

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Using LEFT with OFFSET to get a dynamic drop down list

    @ Kyle
    Can you not set up a dynamic range with just the left two characters and reference that?
    See this workbook uses INDEX() to show what the range LEFT($A$2:INDEX($A:$A,MATCH(REPT("z",255),$A:$A,1),1),2) contains.

    Use Tools > Formula Auditing > Evaluate Formula to see the range contents.
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  6. #6
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Using LEFT with OFFSET to get a dynamic drop down list

    Ah right maybe you can then

    Thanks Marcol

  7. #7
    Registered User
    Join Date
    01-19-2012
    Location
    Delhi
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Using LEFT with OFFSET to get a dynamic drop down list

    1. Vlookup =+VLOOKUP(D8,A:B,2,0)
    2. Copy + Paste Special Transpose Condition
    Last edited by chetanmehra1989; 01-20-2012 at 08:54 AM. Reason: s

+ 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