+ Reply to Thread
Results 1 to 10 of 10

Populating Cells via Data Validation

  1. #1
    Registered User
    Join Date
    09-22-2014
    Location
    philippines
    MS-Off Ver
    office 2010
    Posts
    36

    Populating Cells via Data Validation

    i have a list of municipalities

    Municipalities (this are my choices on my data validation)
    aaa
    bbb

    List of brgys under municipalities

    under municipality of aaa
    i have brgys
    111
    112
    113
    114
    115
    116

    and under municipality of bbb
    i have brgys
    221
    222
    223
    224
    225
    226

    on a1 = dropdown (aaa/bbb)

    when i choose aaa

    a2:a7 will populate with brgys under municipality aaa.
    please i need help.. already tried this formula =IF(ROWS(A$2:A2)<=COUNTA(INDIRECT(A$1)),INDIRECT(A$1),"")
    but the data must also in the same row as the expected result. if there is another way by using vlookup or match formula.
    my data must be in another sheet. thank you in advance! Book1.xlsx

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: Populating Cells via Data Validation

    So what is wrong with the formula in your excel sheet? It seems to work fine..
    Cheers!
    Deep Dave

  3. #3
    Registered User
    Join Date
    09-22-2014
    Location
    philippines
    MS-Off Ver
    office 2010
    Posts
    36

    Re: Populating Cells via Data Validation

    how about using vlookup? is there another way? without using this format.

  4. #4
    Registered User
    Join Date
    09-22-2014
    Location
    philippines
    MS-Off Ver
    office 2010
    Posts
    36

    Re: Populating Cells via Data Validation

    my data for bgys must be on sheet 2. i dont know how to do it.

  5. #5
    Registered User
    Join Date
    09-22-2014
    Location
    philippines
    MS-Off Ver
    office 2010
    Posts
    36

    Re: Populating Cells via Data Validation

    please help me how to do this using vlookup. thank you

  6. #6
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: Populating Cells via Data Validation

    See the file attached.

    I'v used the same formula initially used on the sheet.. Not sure why you would want to use Vlookup?
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-22-2014
    Location
    philippines
    MS-Off Ver
    office 2010
    Posts
    36

    Re: Populating Cells via Data Validation

    because what if my data was not in the same row and column as the list of values. it will show #VALUE! results.

  8. #8
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: Populating Cells via Data Validation

    Alright lets assume, selection of aaa,bbb in in cell C6 on sheet 2, then put the formula in C7 and drag down as required.

    =IFERROR(HLOOKUP($C$6,Sheet1!$B$1:$C$7,ROWS($C$6:C7),0),"")

    Also on sheet 1, make sure you have headings like I have put in the file attached.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    09-22-2014
    Location
    philippines
    MS-Off Ver
    office 2010
    Posts
    36

    Re: Populating Cells via Data Validation

    That should do it. Thanks!

  10. #10
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: Populating Cells via Data Validation

    Glad it helped! If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Replies: 10
    Last Post: 07-06-2015, 01:51 PM
  2. Replies: 4
    Last Post: 07-03-2014, 02:37 AM
  3. Adding Date Data Validation to cells with List Data Validation
    By biggtyme in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-03-2013, 09:47 AM
  4. Replies: 2
    Last Post: 03-13-2013, 12:08 PM
  5. Populating a Data Validation List based on...
    By orcheon in forum Excel General
    Replies: 5
    Last Post: 04-18-2009, 12:55 AM
  6. Populating data to other worksheet via data validation
    By kuansheng in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-16-2006, 04:25 AM
  7. Populating multiple cells on other sheets via data validation
    By kuansheng in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-14-2006, 02:10 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