+ Reply to Thread
Results 1 to 7 of 7

Adding a form based on a lookup selection

  1. #1
    Registered User
    Join Date
    01-14-2020
    Location
    London
    MS-Off Ver
    365
    Posts
    4

    Smile Adding a form based on a lookup selection

    Hi,

    I wondered if anyone can help please?

    I want a form to appear in excel, according to the option a user has selected from a drop-down list. So, for example, if the user selects the option "Yes", form A will be displayed for completion, and if the user selects the option "No", form B will be displayed.

    Thank you in advance for your assistance!

  2. #2
    Forum Contributor shank_mis's Avatar
    Join Date
    09-08-2018
    Location
    Delhi
    MS-Off Ver
    2010
    Posts
    128

    Re: Adding a form based on a lookup selection

    It's simple.
    Write the contents of both the forms in separate columns....say column A & B.
    Apply IF() formula on every cell where you want your contents to display. For example: =IF(drop-down="yes","Name","Nahme"). In this example "yes" is for english and "no" for german.
    Based on the option selected from drop-down menu, contents will display.

    You have not specified how your forms look and what contents you want to display.
    This is just a general idea. Hope you find it helpful.


    Shashank

  3. #3
    Registered User
    Join Date
    01-14-2020
    Location
    London
    MS-Off Ver
    365
    Posts
    4

    Re: Adding a form based on a lookup selection

    Thanks Shashank. I have tried using the If formula, but I am getting an error. So, I am writing =If(drop-down="yes", Sheet1!A1:D20, Sheet1!A25:D45) I am getting a value error. Do you know where I am going wrong please?

  4. #4
    Registered User
    Join Date
    01-14-2020
    Location
    London
    MS-Off Ver
    365
    Posts
    4

    Re: Adding a form based on a lookup selection

    The cell references being where the forms are located

  5. #5
    Forum Contributor shank_mis's Avatar
    Join Date
    09-08-2018
    Location
    Delhi
    MS-Off Ver
    2010
    Posts
    128

    Re: Adding a form based on a lookup selection

    Why are you selecting a range of cells ? Any particular reason for that ?
    Generally we refer to one cell... For range of cells we have to convert them into array formula.

    I would suggest to upload the form template here if you can. This may help us in assisting you in a better way.


    Shashank

  6. #6
    Registered User
    Join Date
    01-14-2020
    Location
    London
    MS-Off Ver
    365
    Posts
    4

    Re: Adding a form based on a lookup selection

    Hi Shashank, it is because we have a range of formulas within the form which perform calculations based on the options selected. Unfortunately I can't upload the spreadsheet as it contains confidential information. Sorry if it's a sill question, but how do I convert them into an array formula please?

  7. #7
    Forum Contributor shank_mis's Avatar
    Join Date
    09-08-2018
    Location
    Delhi
    MS-Off Ver
    2010
    Posts
    128

    Re: Adding a form based on a lookup selection

    You don't need to upload your original sheet. Create a small template comprised of input data, data type and skeleton of output you desire.
    At least, we will get an idea of your requirement.
    As far as array formula is concerned, it is rather difficult to generalize because they are highly specific.

    Once again, I would suggest to upload a template or provide some more details so that we may assist you.

    Ta..
    Shashank Mishra
    Please hit "Add Reputation" Button if you liked the answer.

+ 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. Excel VBA Adding new Drop down' Label 'for a selection in a form
    By bunnyqlik in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 06-30-2015, 01:15 AM
  2. [SOLVED] using SUMIFS and adding values based on multiple criteria based on selection from the drop
    By muheebrahman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-25-2015, 12:55 AM
  3. automatically populate form based on combobox selection
    By zak.horrocks in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-15-2014, 10:16 AM
  4. [SOLVED] Auto selection of Check box in one form based on value of combobox from other form.
    By excel_126 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-28-2014, 03:09 AM
  5. [SOLVED] How to update form label caption based off selection
    By cameron213 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-04-2014, 03:22 PM
  6. [SOLVED] Extract records based on User Form selection
    By Aland2929 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-28-2013, 02:54 PM
  7. Hide Rows Based on Selection in Form List Box
    By mpluers in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-05-2013, 03:58 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