SOLVED

Pull-down "Data Validation List Dropdown" Formula where source lists are horizontal

%3CLINGO-SUB%20id%3D%22lingo-sub-1584280%22%20slang%3D%22en-US%22%3EPull-down%20%22Data%20Validation%20List%20Dropdown%22%20Formula%20where%20source%20lists%20are%20horizontal%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1584280%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20this%20Excel%20Sheet%20from%20work%2C%20which%20has%20some%20tasks%20which%20we%20currently%20do%20manually.%20I%20hope%20there%20is%20a%20way%20to%20automate%20this%20with%20an%20excel%20formula.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20is%20a%20questionnaire%20in%20one%20tab%2C%20basically%20each%20row%20represents%20a%20question%20-%20there%20is%20another%20tab%20with%20standard%20answers%20for%20each%20question.%20For%20each%20question%20there%20are%20multiple(max5)%20standard%20answers.%20the%20%22list%22%20of%20answers%20are%20stored%20vertical%2C%20means%20the%20answers%20for%20question1%20are%20%22listed%22%20in%20cells%20A1%3AA5%2C%20the%20answers%20for%20question2%20in%20B1%3AB5%2C%20etc.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eso%20far%20we%20used%20Data%20Validation%20to%20create%20a%20drop%20down%20list%20on%20each%20row%20of%20a%20question%20pointing%20to%20the%20cell%20range%20with%20the%20specific%20answers%2C%20so%20that%20users%20just%20can%20pick%20their%20answers%20from%20the%20drop-down.%20this%20has%20been%20made%20manually%20for%20each%20question.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAre%20there%20ways%20to%20make%20a%20%E2%80%9Cpull%20down%E2%80%9D-formula%20within%20%E2%80%9CData%20Validation%20%2F%20List%20%2FSource%E2%80%9D%20that%20does%20select%20a%20range%20and%20moves%20horizontally%20when%20pulled%20down%3F%3C%2FP%3E%3CP%3EI%E2%80%99ve%20managed%20to%20get%20a%20working%20formula%20together%20for%20a%20single%20cell%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DINDIRECT(ADDRESS(1%3BROW(A1)%3B%3B%3B%22answers%22))%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20the%20same%20possible%20for%20a%20range%3F%20Like%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DINDIRECT(ADDRESS(%3CSTRONG%3E1%3A5%3C%2FSTRONG%3E%3BROW(A1)%3B%3B%3B%22answers%22))%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20help%20and%20hints.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1584280%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1584310%22%20slang%3D%22en-US%22%3ERe%3A%20Pull-down%20%22Data%20Validation%20List%20Dropdown%22%20Formula%20where%20source%20lists%20are%20horizontal%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1584310%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F757104%22%20target%3D%22_blank%22%3E%40Dominik1455%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20quite%20sure%20the%20answer%20to%20your%20question%20is%20%22Yes.%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlthough%20you've%20done%20a%20reasonably%20good%20job%20of%20describing%20your%20workbook's%20layout%2C%20I'm%20reluctant%20to%20try%20to%20create%20my%20own%20version%20of%20it....is%20it%20in%20any%20way%20possible%20for%20you%20to%20post%20either%20your%20actual%20workbook%20(so%20long%20as%20it%20contains%20no%20private%20or%20confidential%20information)%20OR%20a%20reasonable%20facsimile%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThat%20would%20help%20me%20or%20others%20here%20return%20with%20a%20working%20example....I%20think%20you%20are%20already%20moving%20in%20the%20right%20direction%2C%20but%20it's%20just%20a%20lot%20easier%20to%20play%20around--if%20you'll%20excuse%20that%20phrase--with%20the%20real%20thing%2C%20making%20sure%20a%20recommendation%20actually%20works.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1584326%22%20slang%3D%22en-US%22%3ERe%3A%20Pull-down%20%22Data%20Validation%20List%20Dropdown%22%20Formula%20where%20source%20lists%20are%20horizontal%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1584326%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F425987%22%20target%3D%22_blank%22%3E%40mathetes%3C%2FA%3Ehey%20thanks%20for%20your%20reply.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ehere%20is%20an%20simple%20example%20file%20with%20the%20current%20setup%2C%20where%20we%20manually%20change%20each%20range%20for%20the%20drop-down%20in%20sheet%20%22questions%22%20in%20column%20%22C%22.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1584381%22%20slang%3D%22en-US%22%3ERe%3A%20Pull-down%20%22Data%20Validation%20List%20Dropdown%22%20Formula%20where%20source%20lists%20are%20horizontal%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1584381%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F757104%22%20target%3D%22_blank%22%3E%40Dominik1455%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere's%20one%20solution.%20I%20suspect%20there%20are%20others.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20added%20a%20column%20(which%20should%20be%20hidden%20in%20actual%20use)%2C%20Column%20C%2C%20on%20your%20tab%20of%20questions.%20It%20contains%20names%20that%20then%20are%20used%20in%20the%20data%20validation%20for%20Column%20D.%20That%20formula%2C%20in%20the%20Data%20Validation%20dialog%20box%20is%20%3CSTRONG%3E%3DINDIRECT(%24C2)%3C%2FSTRONG%3E%20which%20can%20then%20be%20copied%20down%20to%20each%20question%20row.%20It%20thereby%20automatically%20is%20referring%20to%20a%20new%20%22name%22%20as%20the%20source%20for%20the%20specific%20list%20of%20answers%20pertaining%20to%20each%20question%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOn%20the%20answers%20sheet%2C%20those%20same%20names%20have%20been%20put%20in%20the%20top%20row%2C%20and%20then%20are%20used%20as%20assigned%20names%20to%20the%20ranges%20of%20answers.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1584429%22%20slang%3D%22en-US%22%3ERe%3A%20Pull-down%20%22Data%20Validation%20List%20Dropdown%22%20Formula%20where%20source%20lists%20are%20horizontal%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1584429%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F425987%22%20target%3D%22_blank%22%3E%40mathetes%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks%2C%20this%20is%20simple%20and%20works%20just%20fine%20for%20now!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ebtw%3A%20couldn't%20download%20your%20example%2C%20computer%20said%20it%20is%20%22corrupted%22.%20However%2C%20it%20got%20the%20point%20using%20a%20reference%20to%20get%20my%20answer%20lists.%20perfect%2C%20thanks%20a%20lot!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1584446%22%20slang%3D%22en-US%22%3ERe%3A%20Pull-down%20%22Data%20Validation%20List%20Dropdown%22%20Formula%20where%20source%20lists%20are%20horizontal%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1584446%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F757104%22%20target%3D%22_blank%22%3E%40Dominik1455%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHmmm.%20Try%20this%20one.%20So%20far%20as%20I%20know%2C%20that%20%22corrupted%22%20has%20never%20happened%20before.%20%5BOn%20the%20other%20hand%2C%20I%20am%20at%20a%20car%20dealership%20getting%20a%20car%20serviced%2C%20so%20not%20on%20my%20home%20network.%5D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20either%20way%2C%20glad%20it%20worked%20for%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hi,

 

I have this Excel Sheet from work, which has some tasks which we currently do manually. I hope there is a way to automate this with an excel formula.

 

There is a questionnaire in one tab, basically each row represents a question - there is another tab with standard answers for each question. For each question there are multiple(max5) standard answers. the "list" of answers are stored vertical, means the answers for question1 are "listed" in cells A1:A5, the answers for question2 in B1:B5, etc.

 

so far we used Data Validation to create a drop down list on each row of a question pointing to the cell range with the specific answers, so that users just can pick their answers from the drop-down. this has been made manually for each question.

 

Are there ways to make a “pull down”-formula within “Data Validation / List /Source” that does select a range and moves horizontally when pulled down?

I’ve managed to get a working formula together for a single cell:

 

=INDIRECT(ADDRESS(1;ROW(A1);;;"answers"))

 

Is the same possible for a range? Like:

 

=INDIRECT(ADDRESS(1:5;ROW(A1);;;"answers"))

 

Thanks for help and hints.

5 Replies
Highlighted

@Dominik1455 

 

I'm quite sure the answer to your question is "Yes."

 

Although you've done a reasonably good job of describing your workbook's layout, I'm reluctant to try to create my own version of it....is it in any way possible for you to post either your actual workbook (so long as it contains no private or confidential information) OR a reasonable facsimile?

 

That would help me or others here return with a working example....I think you are already moving in the right direction, but it's just a lot easier to play around--if you'll excuse that phrase--with the real thing, making sure a recommendation actually works.

Highlighted

@matheteshey thanks for your reply.

 

here is an simple example file with the current setup, where we manually change each range for the drop-down in sheet "questions" in column "C".

Highlighted
Best Response confirmed by Dominik1455 (New Contributor)
Solution

@Dominik1455 

 

Here's one solution. I suspect there are others.

 

I've added a column (which should be hidden in actual use), Column C, on your tab of questions. It contains names that then are used in the data validation for Column D. That formula, in the Data Validation dialog box is =INDIRECT($C2) which can then be copied down to each question row. It thereby automatically is referring to a new "name" as the source for the specific list of answers pertaining to each question

 

On the answers sheet, those same names have been put in the top row, and then are used as assigned names to the ranges of answers.

Highlighted

@mathetes

 

thanks, this is simple and works just fine for now!

 

btw: couldn't download your example, computer said it is "corrupted". However, it got the point using a reference to get my answer lists. perfect, thanks a lot!

Highlighted

@Dominik1455 

 

Hmmm. Try this one. So far as I know, that "corrupted" has never happened before. [On the other hand, I am at a car dealership getting a car serviced, so not on my home network.]

 

But either way, glad it worked for you.