最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

spreadsheet - Indirect referencing in LibreOffice does not work - Stack Overflow

programmeradmin4浏览0评论

I have a LibreOffice Spreadsheet and I want to create a sum over values in a different tab. So the following content does work and gives me as result the number 176:

=SUM(Time2025.V4:V34)

However, when I try to do the same with indirect cells I use the cell content

=SUM(INDIRECT("Time2025.V"&D6&":V"&E6))

or

=SUM(INDIRECT("'Time2025'.V"&D6&":V"&E6))

it gives me a #ref error. The cells D6 and E6 do exist and contain the values 4 and 34, respectively (and are numbers).

So what can I try to fix this issue?

I have a LibreOffice Spreadsheet and I want to create a sum over values in a different tab. So the following content does work and gives me as result the number 176:

=SUM(Time2025.V4:V34)

However, when I try to do the same with indirect cells I use the cell content

=SUM(INDIRECT("Time2025.V"&D6&":V"&E6))

or

=SUM(INDIRECT("'Time2025'.V"&D6&":V"&E6))

it gives me a #ref error. The cells D6 and E6 do exist and contain the values 4 and 34, respectively (and are numbers).

So what can I try to fix this issue?

Share Improve this question edited Jan 20 at 11:47 Mark Rotteveel 109k226 gold badges155 silver badges219 bronze badges asked Jan 20 at 10:43 AlexAlex 44.3k100 gold badges298 silver badges513 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

The solution is to use an exclamation mark (!)as sheet name separator. So

=SUM(INDIRECT("Time2025!V" & D6 & ":V" & E6))

does, in fact, work! But if you have no indirect reference you have to use the dot (.) as sheet name separator.

=SUM(Time2025.V4:V34)

Using the exclamation mark here would lead to an error. Not intuitive at all ...

发布评论

评论列表(0)

  1. 暂无评论