[Libreoffice-bugs] [Bug 121488] New: ERROR.TYPE for "Search out of range" in Excel return 7 but in Calc #N/D

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Nov 18 07:21:00 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=121488

            Bug ID: 121488
           Summary: ERROR.TYPE for "Search out of range" in Excel return 7
                    but in Calc #N/D
           Product: LibreOffice
           Version: 6.0.6.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: gmolleda at us.es

The return value for function ERROR.TYPE when the search is out of range is
#N/D but must to be 7 (as Excel).
Before, the function ERROR.TYPE was different in Calc and Excel, the returned
values was 32767, 532, 502 or 504 in Calc while in Excel was 7,2,7,4 in
different errors.
Steps:
Create new Calc sheet:
Write in cells:
Column A
Row 1: =VLOOKUP("Don't exist",B129:B131,1,0)
Row 2: =5/0
Row 3: =VLOOKUP("Out of range",B121:B123,2,0)
Row 4: =#REF!
Column B
Row 1: =ERROR.TYPE(A1)
Row 2: =ERROR.TYPE(A2)
Row 3: =ERROR.TYPE(A3)
Row 4: =ERROR.TYPE(A4)

results in B1-B4 in Calc: 7,2,#N/D,4 with ERROR.TYPE, and results in Excel:
7,2,7,4.

Ok, in the help says: "If the ERROR.TYPE function is used as condition of the
IF function and the ERROR.TYPE returns #N/A, the IF function returns #N/A as
well. Use ISERROR to avoid it as shown in the example above."
But the behaviour is different in Excel-Calc.

The old function is named ERRORTYPE (without dot, in spanish translation is
TIPO.DE.ERROR.OOO) and the result is: 32767, 532, 502, 504 for errors A1 until
A4.

En la vera internacia lingvo: Esperanto, kiu diskriminacias malpli pro denaska
lingvo:
La valorezulto por la funkcio ERARO.TIPO (ERROR.TYPE en la angla) kiam la serĉo
estas ekstere de ĉelintervalo estas #N/D sed ĝi devas esti 7 (kiel Excel).
Antaŭe, la funkcio ERARO.TIPO estis malsama en Calc kaj Excel, la valorrezultoj
estis 32767, 532, 502 aŭ 504 en Calc kaj en Excel estis 7,2,7,4 en malsamaj
eraroj.
Paŝoj:
Kreu novan Calc-folion:
Skribu en ĉeloj: (apartigilo , povas esti ; laŭ lando)
Kolumno A
Vico 1: =VSERĈO("Ne ekzistas",B129:B131,1,0)
Vico 2: =5/0
Vico 3: =VSERĈO("Ekstere de ĉelintervalo",B121:B123,2,0)
Vico 4: =#REF!
Kolumno B
Vico 1: =ERARO.TIPO(A1)
Vico 2: =ERARO.TIPO(A2)
Vico 3: =ERARO.TIPO(A3)
Vico 4: =ERARO.TIPO(A4)

rezultoj en B1-B4 en Calc: 7,2,#N/D,4 kun ERARO.TIPO, kaj rezultoj en Excel:
7,2,7,4.

Bone, en la helpo diras: "If the ERROR.TYPE function is used as condition of
the IF function and the ERROR.TYPE returns #N/A, the IF function returns #N/A
as well. Use ISERROR to avoid it as shown in the example above."

Sed la konduto estas malsama en Excel-Calc.

La malnova funkcio nun estas nomata ERARTIPO (sen punkto, en la angla ERRORTYPE
kaj en la hispana traduko estas TIPO.DE.ERROR.OOO) kaj la valorrezultoj estas:
32767, 532, 502, 504 por eraroj A1 ĝis A4.

Y en español:
El valor de retorno para la función TIPO.DE.ERROR (ERROR.TYPE en inglés) cuando
la búsqueda está fuera de rango es #N/D pero debe ser 7 (como en Excel).
Antes, la función TIPO.DE.ERROR era diferente en Calc y Excel, los valores
devueltos eran 32767, 532, 502 o 504 en Calc, mientras que en Excel era 7,2,7,4
en diferentes errores.
Pasos:
Crear nueva hoja de cálculo:
Escribir en celdas: (ojo, el separador puede ser , o ; según el país)
Columna A
Fila 1: =BUSCARV("No existe";B129:B131;1;0)
Fila 2: =5/0
Fila 3: =BUSCARV("Fuera de rango";B121:B123;2;0)
Fila 4: =#¡REF!
Columna B
Fila 1: =TIPO.DE.ERROR(A1)
Fila 2: =TIPO.DE.ERROR(A2)
Fila 3: =TIPO.DE.ERROR(A3)
Fila 4: =TIPO.DE.ERROR(A4)

los resultados en B1-B4 en Calc: 7,2,#N/D,4, y los resultados en Excel:
7,2,7,4.
resultados en Calc en versiones anteriores y en Calc ahora con
TIPO.DE.ERROR.OOO

Bien, en la ayuda dice: "Si la función TIPO.DE.ERROR se usa como condición de
la función IF y TIPO.DE.ERROR devuelve # N / A, la función IF también devuelve
# N / A. Use ISERROR para evitarlo como se muestra en el ejemplo de arriba ".
Pero el comportamiento es diferente en Excel-Calc.

La función antigua se denomina TIPO.DE.ERROR.OOO (en inglés ERRORTYPE sin el
punto separador) y el resultado es: 32767, 532, 502, 504 para los errores A1
hasta A4.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20181118/e54fe3ce/attachment.html>


More information about the Libreoffice-bugs mailing list