+ Reply to Thread
Results 1 to 5 of 5

data validation-drag the formula down

  1. #1
    Registered User
    Join Date
    05-28-2011
    Location
    Reading, England
    MS-Off Ver
    Excel 2003
    Posts
    2

    data validation-drag the formula down

    Hi everybody,

    I'm new here (and to Excel in a way) and need your help. I am discovering the data validation list at the moment and i'm now stuck.
    I am managing an optician practice and I need to measure my staff dispensing results.
    Here's what I'm trying to do:
    In one cell, the dispenser will be able to select the type of lens they've sold (single vision, occupationals, bifocals or varifocals). Depending on their selection, they will be able to select the lens name in the following cell. I've used the "indirect(cell)" function for the data validation in order to offer the dispenser all the different options depending on the lens type.
    Here's my source formula (in the AI22 cell):
    =IF(E2="Single vision","AI3:AI13",IF(E2="Occupationals","AJ3:AJ10",IF(E2="bifocals","AK3:AK5",IF(E2 ="Varifocals","AL3:AL18"))))
    and my data validation: =indirect(AI22)
    I have managed to do it on 1 row. However as soon as I tried to "drag the formula down" the whole thing fails as the data validation becomes "=indirect (AI23)". I need it to "stay" in AI22 but I want the E2 in the formula to become E3.

    I'm sorry if this is confusing and I hope you can help me.

    Thank you very much,

    JP

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    re: data validation-drag the formula down

    Hi,

    Why not upload your workbook so that we can take a look. It's likely that you may not need INDIRECT() which is a volatile function and can slow things down.

    If behind your Q. is the need to create dependent Validation lists then you may find Debra Dalgleish's http://www.contextures.com/xldataval02.html web site of some help.

    REgards
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    05-28-2011
    Location
    Reading, England
    MS-Off Ver
    Excel 2003
    Posts
    2

    re: data validation-drag the formula down

    Very good link, thank you very much.
    How can I upload my workbook?

    Thank you

    JP

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    re: data validation-drag the formula down

    Hi,

    Go to the 'Manage attachments' option that you see underneath the message box in which you write your request.

    Regards

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

    re: data validation-drag the formula down

    You'll need to click on GO ADVANCED under the Quick Reply box below to open the extended features window. Then you can use the paperclip icon to attach your workbook.
    _________________
    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!)

+ 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