yes, comma or semicolon as function separator depends on the localisation settings.
tohuwawohu ( 2012-07-23 14:38:51 +0200 )editFirst time here? Check out the FAQ!
asked 2012-07-23 14:12:08 +0200
Anonymous
Hi all,
I've 3 (A, B,C) columns with data. In the 4th column (D) i want to select a column by entering A, B or C. With a formule the correct column should be displayed in E. But .. i can't figure it out how to do it :-(
Like this:
A B C D E
1 2 3 B 2
4 5 6 A 4
7 8 9 C 9
Use this formula in E1 and copy it down to other rows as required.
=INDIRECT(CONCATENATE(D1,ROW(D1)))
This formula creates a string from the content of cell D1 and the current row number (using function ROW). This string is passed to the INDIRECT function. It returns a reference based on a text string.
So, the CONCATENATE functions "calculates" the string "B1", and the INDIRECT function reads the content of cell "B1" as output of the complete formula.
EDIT: Depending on your local settings, you may need to use a comma "," instead of a semicolon ";" as separator in the CONCATENATE function:

Thank you very much! Your solution is working
In my case it was =INDIRECT(CONCATENATE(H12;ROW(H12))) (a ; instead of , ).
yes, comma or semicolon as function separator depends on the localisation settings.
tohuwawohu ( 2012-07-23 14:38:51 +0200 )editLibreOffice is made available by volunteers around the globe, backed by a charitable Foundation. Please support our efforts: Your donation helps us to deliver a better product!
Asked: 2012-07-23 14:12:08 +0200
Seen: 112 times
Last updated: Jul 23 '12
How Do you Colour Cells on Calc
Adding hyperlink to a group of cells
Insert SINGLE cell, shift options greyed out can only select Entire Row/Column. WTF?! [closed]
Cannot reference cell value from one worksheet on another - in just certain cells!
A calc sheet created before 3.6.5.2 has had all relative cell references converted to absolute.
How To Change Left Key Function so it doesn't select the cell in Calc?
Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.