简体   繁体   English

Excel,如何将多个电子表格链接到具有更改值的单元格?

[英]Excel, how can I link multiple spreadsheets to cells with changing values?

I have a bit of a situation that I can't seem to be able to resolve. 我有些情况似乎无法解决。 I'm currently using excel to keep track and sort 50 patients at the same time for research purposes. 我目前正在使用excel来同时跟踪和分类50位患者,以进行研究。 So in my main worksheet, A1:A50 are the patient's "station number" and B1:B50 are the patient's names. 因此,在我的主要工作表中,A1:A50是患者的“站号”,而B1:B50是患者的名字。 Columns "C" through "I" contain information about each patient (sex, gender, ecc.). “ C”到“ I”列包含有关每个患者的信息(性别,性别等)。 I keep the patients sorted by their station number. 我按病人的站号排序。 I then have a different worksheet for every patient in which I keep track of each patient's blood tests during time. 然后,我为每个患者准备了一个不同的工作表,在此期间我会跟踪每个患者的血液检查。

I'm trying to find a way so that I can click on a certain patient and get re-directed to his/hers bloodtest worksheet. 我正在尝试找到一种方法,以便可以单击某个患者,然后将其重定向到他/她的血液检查工作表。 And I've done so with hyperlinks. 我已经通过超链接做到了。 The problem is that patients constantly change, as do their station numbers. 问题在于患者和他们的诊疗站号一样不断变化。 For example, patient John Doe has "station number" 001, so he is on the top of my list. 例如,患者John Doe的“站号”为001,因此他位于我的列表顶部。 His station might change the week after to 005, so I manually copy/paste his info in row 5. This way, every time I cancel a patient I lose the hyperlink and need to manually search for the worksheet and re-link it to the new patient. 他的诊疗所位置可能在下一个星期更改为005,因此我在第5行中手动复制/粘贴了他的信息。这样,每次取消患者时,我都会丢失超链接,需要手动搜索工作表并将其重新链接到新病人。

Is there any way in which I can lock a hyperlink to a cell regardless whether or not it is empty? 有什么方法可以将超链接锁定到单元格,无论它是否为空? This way I could move patients up and down my chart & change cell values without worrying about messing up the hyperlinks. 这样,我可以在图表上上下移动患者并更改单元格值,而不必担心弄乱超链接。 I also tried to create a chart with 50 rows in which every time I changed a station number a macro would then sort all the rows. 我还尝试创建一个包含50行的图表,每次更改站号时,宏都会对所有行进行排序。 It turned out to be a dead end as I was able only to get the macro to copy/paste the patient's info into the correct row instead of it replacing the row. 事实证明这是一个死胡同,因为我只能使宏将患者的信息复制/粘贴到正确的行中,而不是替换该行。

Any ideas? 有任何想法吗?

The link below probably has the simplest solution I have seen for creating dynamic hyperlinks based on changing cells. 下面的链接可能是我所见过的最简单的解决方案,用于基于不断变化的单元格创建动态超链接。

https://www.extendoffice.com/documents/excel/4030-excel-dynamic-hyperlink-to-another-sheet.html https://www.extendoffice.com/documents/excel/4030-excel-dynamic-hyperlink-to-another-sheet.html

Also, see this link. 另外,请参阅此链接。

https://excelribbon.tips.net/T013034_Creating_a_Dynamic_Hyperlink.html https://excelribbon.tips.net/T013034_Creating_a_Dynamic_Hyperlink.html

Finally, consider this...create a hyperlink that is dynamically linked to a cell value, in which the cell value points to a cell reference within a worksheet, and that when the value is changed can point to a different cell reference. 最后,考虑一下...创建一个动态链接到单元格值的超链接,其中该单元格值指向工作表中的单元格引用,并且当值更改时可以指向另一个单元格引用。

=HYPERLINK("#Sheet2!A"&Z1)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使在多个Excel电子表格中使用的图像始终以全尺寸显示(Aspose Cells)? - How can I make an image used on multiple Excel spreadsheets always display at its full size (Aspose Cells)? Excel 2010:如何在多个单元格之间更改公式而不修改其输入值? - Excel 2010: How can I change formulas across multiple cells without modifying their input values? Excel - IF 函数如何在不同单元格中返回多个值? - Excel - How can IF function return multiple values in different cells? EXCEL:如何计算多个单元格中的值模式? - EXCEL: How do I count a pattern of values across multiple cells? 我需要将多个电子表格中的多个单元格复制到基于Excel中第三个单元格内容的摘要表中 - I need to copy several cells from multiple spreadsheets to a summary sheet base on the contents of a third cell in excel 如何在Microsoft Excel中删除包含特定值的单元格 - How can I remove cells containing specific values in Microsoft Excel Excel,我如何计算同名单元格旁边的值 - Excel, how can i count values ​next to cells with the same name 将多个 excel 电子表格中的特定单元格读取到单个 pandas dataframe - read a specific cells from multiple excel spreadsheets into single pandas dataframe 如何在Excel中将具有相同值的多个单元格分组 - How to group multiple cells with the same values in Excel 如何将Excel中的多个值复制到其他单元格 - How to copy multiple values in Excel to other cells
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM