Dynamic Lists

rhettblaine

New Member
Joined
Oct 3, 2013
Messages
29
Office Version
  1. 365
Platform
  1. Windows
Hey guys,

I'm trying to create a dynamic list based on the user's selection of yes/no/NA answers. If the user selects No for one of the questions, the list should generate a message.

Example:

Questionnaire:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Question:[/TD]
[TD]Answer:[/TD]
[TD]Message if Answer = No[/TD]
[/TR]
[TR]
[TD]Q1[/TD]
[TD]Yes[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Q2[/TD]
[TD]Yes[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Q3[/TD]
[TD]No[/TD]
[TD]Green[/TD]
[/TR]
[TR]
[TD]Q4[/TD]
[TD]Yes[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Q5[/TD]
[TD]No[/TD]
[TD]Purple[/TD]
[/TR]
[TR]
[TD]Q6[/TD]
[TD]No[/TD]
[TD]Black[/TD]
[/TR]
</tbody>[/TABLE]


Goal is to create list with messages if the Q is answered No:
  • Green
  • Purple
  • Black



I've tried several different methods, but the part that I'm having the most difficulty is being able to recognize empty rows (Green, blank, Purple) to return the intended results.

Any suggestions?

Thanks!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Assuming your "Question:" is in A1, "Answer:" is in B1...etc

Paste this formula in D2, make it an array - CTRL+SHIFT+ENTER so it has this crap around it {}, and fill it down; let me know if you have any issues or is not wat you are looking for

=IF(ROWS($D$1:D1)>SUMPRODUCT(--($B$2:$B$7="No")),"",INDEX(C$2:C$7,SMALL(IF(($B$2:$B$7="No"),ROW($C$2:$C$7)-ROW($C$2)+1),ROWS($D$1:D1))))
 
Upvote 0
bsquad... sending you a forum hug.

This worked brilliantly.

Where do I send the beer/flowers/fruit to?? :)

Thanks!!
 
Upvote 0
lol, just hitting the 'Post Thanks' and 'Like' right under my username in the post would do just fine. If you need more of these just let me know I have a crap load of them. i.e. DISTINCT DUPLICATES, DISTINCT of DUPLICATES, IF the occurrence is > 1, tiebreaker logic...etc and all are dynamic
 
Upvote 0

Forum statistics

Threads
1,223,237
Messages
6,170,924
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top