Link to home
Create AccountLog in
Avatar of dmalovich
dmalovich

asked on

trying to get a google spreadsheet dropdown list on change to change values in other cells

I have a dropdown list with 2 values. When I select one of the values I would like to change values in other cells.  For example, The dropdown list has 'Front Nine' and 'Back Nine' as values. When I select one of these values I want to change cells on the same sheet to show appropriate information for back/front nine (hole numbers,pars).  Can this be done?
Avatar of Faustulus
Faustulus
Flag of Singapore image

Sure. This can be done. Please post the worksheet on which you have the drop-down, the sheet where the data are displayed (presumable the same one) and the sheet where the data are extracted from. You can reduce the number of rows and replace real names with generic ones.
Avatar of dmalovich
dmalovich

ASKER

The dropdown is located in sheet 'Week 1' and the data is found in 'Admin' sheet. I downloaded as ms excel sheet and saved in open office.
Laser-Golf-League.ods
I noticed that the formula in Week1!M4 should be
=SUM(D4:L4)

Open in new window

but then I quickly lost direction. It would appear that the same formula should be copied down all of column M and that there should be a similar formula in Admin.Column M, and that quite generally, columns D:N in Week1 should be filled from columns D:N in Admin.
What is not clear is which names are to be copied when 'Front Nine' is selected and which other names represent the 'Back Nine' - or does the list of names never change? In short, the relationship between the numbers in columns Admin!D:N and the names in Admin!A:A isn't clear there and can't, therefore, be transposed to sheet Week1.
Please explain.
Thanks for responding. I just wanted range D3:M4 in 'Admin' sheet to be copied to range D3:M4 in 'Week 1' sheet when user selects 'Front Nine'. Also, when user selects 'Back Nine', I want to copy range D9:M10 from 'Admin' sheet to D3:M4 in 'Week 1' sheet. I'm not doing anything with the player names right now.
ASKER CERTIFIED SOLUTION
Avatar of Faustulus
Faustulus
Flag of Singapore image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Perfect, it worked. Thank you so much. If you don't mind, can you explain how this is working?
I'm glad it solved your problem.
The ADDRESS function creates a string like D9 from ADDRESS([Row],[Column]) or ADDRESS(4,9). =INDIRECT(ADDRESS) has the same effect as =D9 except that I can substitute calculated values for both row and column.
The ROW() and COLUMN() functions return the row and column numbers of the cell in which they reside. So, ADDRESS(ROW(),COLUMN()) creates a string of the address of the cell in which the formula resides. This is useful in your solution because the cell references in both target and source sheets are the same, with only the sheet reference being different.
Finally, the difference in address between Front and Back Nine is 6 rows. So, 6 should be added to the result of ROW() depending upon the value in your drop-down. This number is created by the formula in N1.
Great job. Thanks again. As I finish off this project, I may need some other help. Keep an eye out for my other questions.