简体   繁体   中英

Get location of selected cell in Google Sheets and output to another cell

I have a spreadsheet in Google Sheets where I'm trying to output the coordinates of the selected cell to another cell. Imagine a 10x10 grid beginning in Cell A1. If I select A1 then the coordinates (1, 1) are outputted to a cell (let's say L1). If I then selected B4, the coordinates (4, 2) would be in L1. It's important for this to update every time a new cell is selected. How might I do this?

Given your goal, I recommend you simply make each cell in your win-loss table a hyperlink to a separate file that contains the details of the game.

Something like:

=hyperlink("http://example.com","W")

Replace http://example.com with the path to the specific Google Doc you create for the details of each game summary.

If you don't have enough detail to warrant it's own individual file / GoogleDoc, then you could just insert a note (not a comment ) if you have just a little bit of data about each game. Or if you have a little more details a middle ground solution would be to add a table where the columns are the data fields for each game and the rows are the individual games.

Otherwise, I think you will have to get into scripting to accomplish what you describe. And given your situation, I would not recommend that approach because, in my opinion, you have better options available that are simpler to accomplish your objective.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM