+ Reply to Thread
Results 1 to 15 of 15

What formula is recommended to return the contents of a column when the header is selected

  1. #1
    Registered User
    Join Date
    02-11-2015
    Location
    Cape Town, South Africa
    MS-Off Ver
    Office 2013
    Posts
    9

    What formula is recommended to return the contents of a column when the header is selected

    I am working on an online course and setting up a template for a client to use to set up a Quiz. I would like to use excel in the following way:

    When a question type (A1, B1, C1 or D1) are selected, the entire contents of that selected column will show in the template so that the client knows what is required for that type of question.

    In 1 quiz there could be up to 10 - 40+ questions using the various options of question types.

    My questions are

    Is it possible to use excel as follows: when A1 is selected, A2 - A10 will show in the excel template for the client to then fill in the required information?
    What formula would be used to do this?
    How could I set it up so that the required number of spaces below each question will then be made available according to the type of question selected? Followed by the next question option.

    Many thanks for your help with this.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: What formula is recommended to return the contents of a column when the header is sele

    With a defined name and datavalidation (in the orange sheet).

    See the green cells in the attached file.

    Did I understand you question right?
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    02-11-2015
    Location
    Cape Town, South Africa
    MS-Off Ver
    Office 2013
    Posts
    9

    Re: What formula is recommended to return the contents of a column when the header is sele

    Oh my goodness that is so clever and so quick. I will try and copy and paste your formula as I am definitely out of my depth here Thank you so much for your help!

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: What formula is recommended to return the contents of a column when the header is sele

    defined name

    Excel 2013 => Formula => define name => name => Choise (refers to in this case row 1 on sheet Quiz qwes types).

    datavalidation

    Excel 2013 => Data => Datavalidation => (choose) list => (source) =CHOISE

  5. #5
    Registered User
    Join Date
    02-11-2015
    Location
    Cape Town, South Africa
    MS-Off Ver
    Office 2013
    Posts
    9

    Re: What formula is recommended to return the contents of a column when the header is sele

    Thank you thank you thank you! I really appreciate your help! I will give this a try and mark it as solved as soon as I get it working. Thanks once again!!!

  6. #6
    Registered User
    Join Date
    02-11-2015
    Location
    Cape Town, South Africa
    MS-Off Ver
    Office 2013
    Posts
    9

    Re: What formula is recommended to return the contents of a column when the header is sele

    Apologies - as I mentioned I am way out of my depth and this is a lot like Greek to me. I am missing the link between defining the name and the data validation. When the client selects the first option (A1), I would then like that column content to appear below as you made it do so. If they select the 2nd option, it will be 2nd column contents that will need to appear.
    I've defined the name, done the data validation and get the row 1 options but not the content below each. I would greatly appreciate further help with this.
    Many thanks!
    Claire
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: What formula is recommended to return the contents of a column when the header is sele

    See the green cells in the attached file for the formula.

  8. #8
    Registered User
    Join Date
    02-11-2015
    Location
    Cape Town, South Africa
    MS-Off Ver
    Office 2013
    Posts
    9

    Re: What formula is recommended to return the contents of a column when the header is sele

    That is amazing!!! Thank you so much for your help and time. You have saved me days of struggling with this and I will continue to play around with this from here!!!

  9. #9
    Registered User
    Join Date
    02-11-2015
    Location
    Cape Town, South Africa
    MS-Off Ver
    Office 2013
    Posts
    9

    Re: What formula is recommended to return the contents of a column when the header is sele

    Hi Oeldere
    If you have any time or patience left I have just 1 last question. I copied your formula and added further data validation fields for the next questions and copied your formula down the column where appropriate. Although the formula is there and the data validation is working it still doesn't populate the fields below. How do I make the formula do what it should do.

    I am working on an excel course after hours to get up to speed but I sure wish I had your knowledge in my head already.

    Many thanks once again.

    Claire

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: What formula is recommended to return the contents of a column when the header is sele

    You need a formula in B17 (simular to the one in cel B4).

    But what is the use of several dropdown (questions) on 1 sheet?

  11. #11
    Registered User
    Join Date
    02-11-2015
    Location
    Cape Town, South Africa
    MS-Off Ver
    Office 2013
    Posts
    9

    Re: What formula is recommended to return the contents of a column when the header is sele

    Screenshot of B17 cell showing formula.jpg

    In the screen shot you can see that I have copied and pasted your formula in B17 from B4. The spaces are to ensure there is enough space for the list that will populate as I need about 40 of these questions per quiz.
    I think you are laughing right now

  12. #12
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: What formula is recommended to return the contents of a column when the header is sele

    Of course, we DON't laugh.

    It is great you want to learn excel, and that is only possible by working in / on it.



    If you added the formula i could have changed it.

    Since you use a screenshot, I can't change it.

    I use the dutch version, and have to translate the formula.

    b17 => in the forumula you see ROW()-2 => change that in Row()-15 and drag down.

    Explaination:

    In B17 the formula row gives you the answer 17 (you need the answer 2 to get the file working)

    That is why you have to minus 15 (17 -/ 15 = 2).

    Hope I explained well enough.

  13. #13
    Registered User
    Join Date
    02-11-2015
    Location
    Cape Town, South Africa
    MS-Off Ver
    Office 2013
    Posts
    9

    Re: What formula is recommended to return the contents of a column when the header is sele

    Ok getting there. That does populate the fields below but not with the correct information. Whatever happens in the first question is what populates for the next question. If you change the question option in the 2nd question it doesn't change the fields below.

  14. #14
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: What formula is recommended to return the contents of a column when the header is sele

    change this part in cel B17 => ('Module 1 Quiz'!$B$3

    into

    ('Module 1 Quiz'!$B$16 and drag down.

    Sorry for the unconviency

  15. #15
    Registered User
    Join Date
    02-11-2015
    Location
    Cape Town, South Africa
    MS-Off Ver
    Office 2013
    Posts
    9

    Re: What formula is recommended to return the contents of a column when the header is sele

    Perfect perfect perfect!! Thank you once again. I am so blown away by people like you who are happy to help and it saves so much frustration and teaches me so much when I am struggling. Thank you - you have just been incredible!!!
    Have a lovely evening!
    Kind regards
    Claire

+ 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. Formula to return column header
    By smselvi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-07-2014, 05:56 AM
  2. [SOLVED] Need formula to return column header name for first entry on each row greater than zero
    By TotallyLost in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-12-2014, 10:56 AM
  3. lookup formula to return data where column header matches
    By tim-harrison in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-06-2013, 12:58 AM
  4. [SOLVED] Formula to find first negative number in row and return column header
    By spoonedmango in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-09-2012, 02:08 PM
  5. [SOLVED] Formula Needed to Return Entire Column Under Header on Second Sheet
    By bigtunelover in forum Excel General
    Replies: 1
    Last Post: 01-27-2012, 11:19 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