I have a document which calculates staff's annual leave with a new sheet for each member of staff. There is a main page with all staff listed with certain values that link to each staff's individual sheet.
For example ='Smith, J'!A1.
I need to mass change these values. I don't want to be clicking to each staff's sheet to change each value. I've used a formula to bring up each staff's name based on their first and last name on the main page.
Example ="='" & A1 & ", " & left(B1, 1) & "'!A1"
Then paste it's value to get ='Smith, J'!A1 as text. Clicking on the cell and hitting return results in the correct value but I don't know how to do this for a mass number of cells other than clicking on each cell individually and hitting return.
I would prefer to not use vbs as many staff would view the document and all would have to allow for macros on their own excel.
我认为正确的答案是使用间接函数:
=INDIRECT("'Smith, J'!A1")
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.