store values from dropdownlist

Urraco

Board Regular
Joined
Apr 19, 2021
Messages
68
Office Version
  1. 2016
Platform
  1. Windows
Hi everybody,


is there any formula to do this task as in the attached example ?
for example,
if "a" is chosen from the dropdown, E3 stores the join and values from C3:C6
if "b" is chosen from the dropdown, F3 stores the join and values from C3:C6
if "c" is chosen from the dropdown, G3 stores the join and values from C3:C6
if "d" is chosen from the dropdown, H3 stores the join and values from C3:C6
Thanks for any suggestion!



test.xlsx
ABCDEFGHIJ
2dropdownlistrangeabcddropdownlist
3a00 0 0 0   a
40b
50c
60d
Sheet1
Cell Formulas
RangeFormula
E3E3=TEXTJOIN(" ",TRUE,C3:C6)
F3F3=IF(A3="b",TEXTJOIN(" ",TRUE,C3:C6),"")
G3G3=IF(A3="c",TEXTJOIN(" ",TRUE,C3:C6),"")
H3H3=IF(A3="d",TEXTJOIN(" ",TRUE,C3:C6),"")
Cells with Data Validation
CellAllowCriteria
A3List=$J$3:$J$6
 

Attachments

  • example2.gif
    example2.gif
    171.6 KB · Views: 8

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Hi,
assuming you have your drop down list made, you might try this :

Book1
ABCDEFGHIJK
1
2rangeabcddropdownlist
3d0   0 0 0 0a
40b
50c
60d
7
Sheet1
Cell Formulas
RangeFormula
E3:H3E3=IF($A$3=E2,TEXTJOIN(" ",TRUE,$C3:$C6),"")
 
Upvote 0
hi, @RobP

thanks for the reply but i already did what that..
I have attached a preview to better understand what I wanted...
the range E3:H3 must store each dropdownlist item when it changes
is this possible with a formula? (not vba)
 

Attachments

  • example2.gif
    example2.gif
    171.6 KB · Views: 4
Upvote 0
Hi, sorry I misunderstood your question.

I believe this cannot be done without VBA, as any formula used will always be actively looking to compute .. (on whatever you have in the TextJoin list, and any change in the dropdown.)
Thus it will never leave the "old contents" if I put it like that, in other cells ..

Rgds
Rob
 
Upvote 0

Forum statistics

Threads
1,215,102
Messages
6,123,099
Members
449,096
Latest member
provoking

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