+ Reply to Thread
Results 1 to 8 of 8

How to link form control dropdown box to formula cell

  1. #1
    Forum Contributor
    Join Date
    01-07-2014
    Location
    chandigarh
    MS-Off Ver
    Excel 2010
    Posts
    122

    Lightbulb How to link form control dropdown box to formula cell

    Hi To All

    Warm Greetings !!


    I have an excel that has dropdown column from form control, in F4 there is a formula of vlookup that take the range from A2 to B20 in consideration but the reference cell that is given to vlookup formula to pick corresponding value is E4 which is also the reference cell of dropdown box and therefore its not showing any name rather than a value, problem with the formula is that when we select any name from dropdown it does not respond to any value in F4 despite changing values in E4.

    I am using these setting for the first time so maybe I am making some mistake kindly help me in this & also mention the mistake I was making in it.

    For the convenience of readers' image & excel file is attached

    PFA
    drop down.png

    Thanks In advance !!

    Best Regards
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: How to link form control dropdown box to formula cell

    you could use formula like
    =VLOOKUP(INDEX($A$2:$A$20,$E4),$A$2:$B$20,2,0)

    you were getting wrong results because this control always shows the number of item and vlookup is looking for that number and it is not finding any match, so by passing that item number to index you will get the name of that item
    =INDEX($A$2:$A$20,$E4)

    now use this name or in other words you can nest this index for vlookup to get the results
    =VLOOKUP(INDEX($A$2:$A$20,$E4),$A$2:$B$20,2,0)
    Last edited by hemesh; 03-09-2014 at 06:15 AM.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: How to link form control dropdown box to formula cell

    If you use this formula to find name:
    =INDEX($A$2:$A$20,$E4)

    Then use this formula to find the code:
    =INDEX($A$2:$B$20,$E4,2)
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  4. #4
    Forum Contributor
    Join Date
    01-07-2014
    Location
    chandigarh
    MS-Off Ver
    Excel 2010
    Posts
    122

    Re: How to link form control dropdown box to formula cell

    Hi Hemesh,

    From last night I was trying to get this problem solved through microsoft help section & internet as well but due to insufficient information & Syntax over there it was all of no avail, I remembered once before also you resolved my problem like this, once again Thank You Sooooooo Muchhhhhh, your idea worked for me. I am posting to you one link please see if you have any idea to solve this problem I actually tried to make two posts for this problem but still till date there are 116 view with one incomplete reply, if you have any superficial idea to how to go around this problem plz help, PSB.
    http://www.excelforum.com/excel-prog...ml#post3606139
    Quote Originally Posted by hemesh View Post
    you could use formula like
    =VLOOKUP(INDEX($A$2:$A$20,$E4),$A$2:$B$20,2,0)

    you were getting wrong results because this control always shows the number of item and vlookup is looking for that number and it is not finding any match, so by passing that item number to index you will get the name of that item
    =INDEX($A$2:$A$20,$E4)

    now use this name or in other words you can nest this index for vlookup to get the results
    =VLOOKUP(INDEX($A$2:$A$20,$E4),$A$2:$B$20,2,0)
    Last edited by warriorpoet7176; 03-09-2014 at 09:09 AM.

  5. #5
    Forum Contributor
    Join Date
    01-07-2014
    Location
    chandigarh
    MS-Off Ver
    Excel 2010
    Posts
    122

    Re: How to link form control dropdown box to formula cell

    Quote Originally Posted by popipipo View Post
    If you use this formula to find name:
    =INDEX($A$2:$A$20,$E4)

    Then use this formula to find the code:
    =INDEX($A$2:$B$20,$E4,2)
    Hi,
    Thanks for your immediate reply Thank You Soo Much, your idea worked in both ways.
    Kudos

    Sir I want to have your attention for one of my unsolved problem on excelforum, plz see if you have any information about it Or any superficial idea to solve it as well

    PSB

    http://www.excelforum.com/excel-prog...ml#post3606139

    Regards
    Last edited by warriorpoet7176; 03-09-2014 at 09:15 AM.

  6. #6
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: How to link form control dropdown box to formula cell


  7. #7
    Forum Contributor
    Join Date
    01-07-2014
    Location
    chandigarh
    MS-Off Ver
    Excel 2010
    Posts
    122

    Re: How to link form control dropdown box to formula cell

    So nice of you sir, thanks once again for your consideration, I will check this link
    Regard
    Quote Originally Posted by popipipo View Post

  8. #8
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: How to link form control dropdown box to formula cell

    I Hope with the link posted by popipipo you will have a solution.

    Thanks for the feed back !

+ 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. Link Form Control Button to Cell Location?
    By bennetas in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-22-2016, 07:48 AM
  2. How to link form contol dropdown box to formula cell
    By warriorpoet7176 in forum Excel General
    Replies: 1
    Last Post: 03-09-2014, 09:02 AM
  3. 2D Form Control or Validation DropDown on Spreadsheet
    By oblak.luka in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-04-2013, 09:41 AM
  4. Changing Cell Link for Check Box Form Control
    By fervorking in forum Excel General
    Replies: 2
    Last Post: 09-02-2011, 03:12 PM
  5. Form Control losing cell link value
    By basaks in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-26-2011, 03:05 PM

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