ກະລຸນາສະໜັບສະໜູນພວກເຮົາ!

TEXTBEFORE

Returns the text that occurs before the start of given instance of a delimiter substring.

ໄວຍາກອນ

TEXTBEFORE( Text [; Delimiter [; Instance Number [; Match Mode [; Match End [; If Not Found ]]]]])

Text: ຂໍ້ຄວາມຕົ້ນສະບັບ.

Delimiter: (optional) the delimiter. Multiple delimiters can be supplied. If omitted or supplied as an empty string, then returns the error #N/A or the value expressed by If Not Found.

Instance Number: (optional) the instance of the delimiter before which to extract text. The default is 1. A negative number starts searching from the end. Value 0 returns the error #N/A

Match Mode: (ທາງເລືອກ) ຕັ້ງເປັນ 1 ເພື່ອສົມທຽບແບບບໍ່ຈຳແນກຕົວພິມໃຫຍ່-ນ້ອຍ. ຄ່າມາດຕະຖານແມ່ນ 0.

Match End: (optional) set to 1 to treat the end of text as as accitional delimiter. The default is 0.

If Not Found: (optional) the value returned if no match is found. The default is #N/A.

ໄອຄອນ ບັນທຶກ

ອາຄິວເມນ (argument) ທີ່ເປັນທາງເລືອກໃດໆກໍຕາມສາມາດລະເວັ້ນໄດ້. ອາຄິວເມນທາງເລືອກຈະຕ້ອງມີຕົວຂັ້ນກ່ອນໜ້ານັ້ນທັງໝົດປະກົດຢູ່.


ຕົວຢ່າງ

=TEXTBEFORE("To be or not to be";" be";2;0;0;"@@@") ສົ່ງຄ່າເປັນຂໍ້ຄວາມ "To be or not to", ໂດຍເອົາສ່ວນທີ່ຢູ່ກ່ອນໜ້າຕົວຂັ້ນ " be" ຄັ້ງທີສອງ.

=TEXTBEFORE("To be or not to be";"question";1;0;0;"@@@") ສົ່ງຄືນຂໍ້ຄວາມ "@@@" ເພາະວ່າບໍ່ມີຕົວຂັ້ນ "question" ໃນຂໍ້ຄວາມຕົ້ນທາງ.

Interactions between Delimiter, Instance number and MatchEnd:

Text

Delimiter

Instance

MatchMode

MatchEnd

IfNotFound

TEXTBEFORE

T

D

N

Mode

MatchEnd

NotFound

TEXTAFTER

to_be_or_not_to_be

to

-4

0

0

@@@

@@@

to_be_or_not_to_be

to

-3

0

0

@@@

@@@

to_be_or_not_to_be

to

-2

0

0

@@@

to_be_or_not_to_be

to

-1

0

0

@@@

to_be_or_not_

to_be_or_not_to_be

to

0

0

0

@@@

#N/A

to_be_or_not_to_be

to

1

0

0

@@@

to_be_or_not_to_be

to

2

0

0

@@@

to_be_or_not_

to_be_or_not_to_be

to

3

0

0

@@@

@@@

to_be_or_not_to_be

to

4

0

0

@@@

@@@

to_be_or_not_to_be

to

-4

0

0

@@@

@@@

to_be_or_not_to_be

to

-3

0

1

@@@

to_be_or_not_to_be

to

-2

0

1

@@@

to_be_or_not_to_be

to

-1

0

1

@@@

to_be_or_not_

to_be_or_not_to_be

to

0

0

1

@@@

#N/A

to_be_or_not_to_be

to

1

0

1

@@@

to_be_or_not_to_be

to

2

0

1

@@@

to_be_or_not_

to_be_or_not_to_be

to

3

0

1

@@@

to_be_or_not_to_be

to_be_or_not_to_be

to

4

0

1

@@@

@@@


ຂໍ້ມູນທາງເຕັກນິກ

ໄອຄອນ ເຄັດລັບ

This function is available since LibreOfficeDev 25.8.


This function is NOT part of the Open Document Format for Office Applications (OpenDocument) Version 1.4. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

COM.MICROSOFT.TEXTBEFORE