Solved

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

Posted on 2013-05-14
8
512 Views
Last Modified: 2013-05-15
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
Comment
Question by:dmalovich
  • 4
  • 4
8 Comments
 
LVL 14

Expert Comment

by:Faustulus
ID: 39166917
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
 

Author Comment

by:dmalovich
ID: 39166938
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
 
LVL 14

Expert Comment

by:Faustulus
ID: 39166955
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
 

Author Comment

by:dmalovich
ID: 39166974
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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 14

Accepted Solution

by:
Faustulus earned 500 total points
ID: 39167002
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
 

Author Closing Comment

by:dmalovich
ID: 39167679
Perfect, it worked. Thank you so much. If you don't mind, can you explain how this is working?
0
 
LVL 14

Expert Comment

by:Faustulus
ID: 39168309
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
 

Author Comment

by:dmalovich
ID: 39168345
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
Viewers will learn the basics of using filtering and sorting in Excel 2013.
Viewers will learn how to find and create templates in Excel 2013.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now