[Solved] Value of a cell

Discuss the spreadsheet application
Post Reply
grahamn
Posts: 7
Joined: Sat Aug 16, 2014 4:15 am

[Solved] Value of a cell

Post by grahamn »

In OOo Calc I have two cells B1 and B2 where I enter various integers and a column (column A) with fixed values.
If the numbers entered into the two cells are, for example, 4 in cell B1 and 10 in cell B2 their product, 4*10, will be 40. I wish to display the value of the cell A(40), that is A(B1*B2), in cell B3
Is there a function or combination of functions that will achieve this or must I go to a macro (which I have not attemted as yet).
Last edited by grahamn on Mon Jul 17, 2017 5:29 am, edited 1 time in total.
OpenOffice 4.1.0 on windows 7
User avatar
Zizi64
Volunteer
Posts: 11360
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: value of a cell

Post by Zizi64 »

Code: Select all

=INDIRECT("A"&(B1*B2))
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: value of a cell

Post by Villeroy »

=INDIRECT("A"&(B1*B2)) [interprete concatenated text as a reference]
=OFFSET(A1;B1*B2-1) [from reference A1, n rows downwards]
=INDEX(A1:A100000;B1*B2) [nth row within reference A1:A100000]
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
grahamn
Posts: 7
Joined: Sat Aug 16, 2014 4:15 am

Re: Value of a cell

Post by grahamn »

Thank you both. INDIRECT was easiest.
OpenOffice 4.1.0 on windows 7
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: [Solved] Value of a cell

Post by Villeroy »

grahamn wrote:Thank you both. INDIRECT was easiest.
if the offset is a vertical one
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
User avatar
Lupp
Volunteer
Posts: 3552
Joined: Sat May 31, 2014 7:05 pm
Location: München, Germany

Re: [Solved] Value of a cell

Post by Lupp »

Villeroy wrote:if the offset is a vertical one
Otherwise

Code: Select all

=INDIRECT(ADDRESS(RowNumber, ColumnNumber))
can be used where RowNumber and ColumnNumber can be given as numeric constants or as any formulae returning numeric (best: integer) results.
On Windows 10: LibreOffice 24.2 (new numbering) and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
Post Reply