Google电子表格通过行和列索引获取单元格值 [英] Google spreadsheet get cell value with row and column index

查看:101
本文介绍了Google电子表格通过行和列索引获取单元格值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何从谷歌电子表格中的单元格中获得价值?
$ b

我有来自 ROW()和COLUMN() - 1的行和列索引。 <换句话说,另一种方式是做什么= B1我有1行,2列。

/ p>

任何建议,一个电子表格查询。除了将功能添加到电子表格。

解决方案

假设行号在A1中,列号在A2中,其中任何一个都可以工作:

  = OFFSET(A1; A1-1; A2-1)
= INDIRECT(R& A1&C & A2)
= INDEX(A1:400000; A1; A2)


How we can get value from a cell in google spreadsheet?

I have row and column index from ROW() and COLUMN() - 1.

In other words what is the other way to do "=B1" i have row as 1 and column as 2.

Any suggestion, a single spreadsheet query. other than add function to spreadsheet.

解决方案

Say the row number is in A1, and the column number is in A2, any of these should work:

=OFFSET(A1;A1-1;A2-1)
=INDIRECT("R"&A1&"C"&A2)
=INDEX(A1:400000;A1;A2)

这篇关于Google电子表格通过行和列索引获取单元格值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆