<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Add an IFVALUE function to Calc"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=131469">131469</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Add an IFVALUE function to Calc
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>6.4.1.2 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Calc
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>director84@gmx.de
</td>
</tr></table>
<p>
<div>
<pre>Imagine the following situation: You have a cell in column A which contains a
value in dependence of which you want to set the value of a cell in columb B.
Expamle: Cell B4 depends on A1.
Cell A1 Cell B4
1 A
13 B
27 C
65 D
77 E
Normally you would have to do something like this in the formula of cell B4:
= IF (A1=1;"A" ; IF (A1=13;"B"; IF (A1=27;"C"; IF (A1=65;"D"; IF (A1=77;"E" ;
"" )))))
That's why I suggest to add a new function "IFVALUE", or "WENNWERT" in the
German localization.
The usage would be like this:
= IFVALUE (referenced cell ; IF-value1;THEN-value1 ; IF-value2;THEN-value2 ;
IF-value3;THEN-value3 ; ELSE-value)
So the above example could be shortened like this:
= IFVALUE (A1 ; 1;"A"; 13;"B"; 27;"C"; 65;"D"; 77;"E"; "")</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>