• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 542
  • Last Modified:

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?
0
dmalovich
Asked:
dmalovich
  • 4
  • 4
1 Solution
 
FaustulusCommented:
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.
0
 
dmalovichAuthor Commented:
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
0
 
FaustulusCommented:
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.
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
dmalovichAuthor Commented:
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.
0
 
FaustulusCommented:
Please post this formula in the cells in your worksheet Week1 which you wish to read values from Admin.
=INDIRECT(ADDRESS(ROW()+$N$1,COLUMN(),1,1,"Admin")&":"&ADDRESS(ROW()+$N$1,COLUMN(),1,1))

Open in new window

As you see, this formula reads from N1. Please paste the following formula in that cell.
[N1] =IF($K$1="Front Nine",0,6)

Open in new window

Format the number format of N1 as Custom: ;;; which will make the value invisible unless you select the cell.
As an alternative, you can replace each reference to $N$1 in the first formula with all of the formula in N1 (without the = sign). That is a matter of taste or expedience. I prefer shorter formulas, that's all.
I don't have Open Office at my disposal. I hope that everything will work in that program the same way as in mine.
0
 
dmalovichAuthor Commented:
Perfect, it worked. Thank you so much. If you don't mind, can you explain how this is working?
0
 
FaustulusCommented:
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.
0
 
dmalovichAuthor Commented:
Great job. Thanks again. As I finish off this project, I may need some other help. Keep an eye out for my other questions.
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now