Excel - 跨工作表公式的连接工作表名称,无vba

时间:2016-11-03 03:18:03

标签: excel excel-formula

我希望这是可能的。我知道可以使用REPLACE和Cell(" filename")检索工作表名称,但我正在寻找的是能够执行以下操作:

=['Some outside worksheet.xlxs']ThisSheetName!A1

其中" ThisSheetName"是当前工作表的表格。我正在做一些跟踪,我们会每月跟踪一次。我不想每年创建12个公式,而是希望能够为每个页面使用一个通用公式。

这可能,还是我会被VBA卡住?

1 个答案:

答案 0 :(得分:1)

尝试使用它:

Indirect

说明:

CELL("filename") - 这将返回对打开文件的引用结果,这是创建动态公式以检索值的关键

let cellIdentifier = "homeFeedItem" let cell = tableView.dequeueReusableCell(withIdentifier: cellIdentifier) ?? UITableViewCell(style: .subtitle, reuseIdentifier: cellIdentifier) cell.textLabel?.text = self.arrItems[indexPath.row]["title"] cell.detailTextLabel?.text = self.arrItems[indexPath.row]["desc"] cell.imageView?.image = UIImage(named: self.arrItems[indexPath.row]["icon"]!) - 这将返回当前文件的完整路径,我们只需要获取工作表名称。