Add-in Functions

The following describes and lists some of the available add-in functions.

គំនិត​រូបមន្ត​បន្ថែម

You will also find a description of the LibreOffice Calc add-in interface in the Help. In addition, important functions and their parameters are described in the Help for the .

រូបមន្ត​បន្ថែម​ដែល​បាន​ផ្តល់

LibreOffice មាន​ឧទាហរណ៍ សម្រាប់​ចំណុចប្រទាក់​រូបមcontains examples for the add-in interface of LibreOffice Calc.

អនុគមន៍​វិភាគ ផ្នែក​ទី​មួយ

អនុគមន៍​វិភាគ ផ្នែក​ទី​ពីរ

DAYSINMONTH

គណនា​ចំនួនថ្ងៃ​នៃ​ខែ ដែលកាលបរិច្ឆេទ​ដែលបាន​បញ្ចូល​កើតឡើង​នៅក្នុង ។

Syntax

DAYSINMONTH(កាល​បរិច្ឆេទ)

កាលបរិច្ឆេទ គឺ​ជា​កាលបរិច្ឆេទ​ណាមួយ​នៅក្នុង​ខែ​នីមួយៗ នៃ​ឆ្នាំ​ដែលចង់បាន ។ ប៉ារ៉ាម៉ែត្រ កាលបរិច្ឆេទ ត្រូវ​តែជា​កាលបរិច្ឆេទ​ត្រឹមត្រូវ ដែលយោងទៅតាម​ការកំណត់​មូលដ្ឋាន​របស់ LibreOffice ។

Example

=DAYSINMONTH(A1) ត្រឡប់ 29 ថ្ងៃ ប្រសិនបើ A1 មាន 1968-02-17 កាលបរិច្ឆេទ​ត្រឹមត្រូវ​សម្រាប់​ខែ កុម្ភៈ ឆ្នាំ ១៩៦៨ ។

Technical information

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

ORG.OPENOFFICE.DAYSINMONTH

tip

DAYSINYEAR

គណនា​ចំនួន​ថ្ងៃ​នៃ​ឆ្នាំ ដែលកាលបរិច្ឆេទ​ដែលបាន​បញ្ចូល​កើត​ឡើង​នៅក្នុង ។

Syntax

DAYSINYEAR(កាល​បរិច្ឆេទ)

កាលបរិច្ឆេទ គឺ​ជា​កាលបរិច្ឆេទ​ណាមួយ​នៅ​ក្នុង​ឆ្នាំ​យថាទស្សន៍ ។ ប៉ារ៉ាម៉ែត្រ​កាលបរិច្ឆេទ​ត្រូវ​តែ​ជា​កាលបរិច្ឆេទ​ត្រឹមត្រូវ ដោយ​យោង​តាម​កា​រកំណត់​មូលដ្ឋាន​របស់ LibreOffice ។

Example

=DAYSINYEAR(A1) ត្រឡប់ 366 ថ្ងៃ ប្រសិន​បើ A1 មាន 1968-02-29 កាលបរិច្ឆេទ​ត្រឹមត្រូវ​សម្រាប់​ឆ្នាំ ១៩៦៨ ។

Technical information

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

ORG.OPENOFFICE.DAYSINYEAR

tip

ISLEAPYEAR

កំណត់​ថាតើ​ឆ្នាំ​មួយ គឺ​ជាឆ្នាំ​ផ្លោះ​ឬអត់ ។ បើ​មែន អនុគមន៍​នឹងត្រឡប់​តម្លៃ​ 1 (TRUE); បើ​មិនមែន វានឹង​ត្រឡប់​តម្លៃ 0 (FALSE) ។

Syntax

ISLEAPYEAR("កាលបរិច្ឆេទ")

Date specifies whether a given date falls within a leap year. The Date parameter must be a valid date.

warning

Microsoft Excel wrongly assumes year 1900 to be a leap year and considers the inexistent day of 1900-02-29 as valid in date calculations. Dates prior to 1900-03-01 are therefore different in Excel and Calc.


Example

=ISLEAPYEAR(A1) ត្រឡប់ 1 ប្រសិនបើ A1 មាន 1968-02-29 កាលបរិច្ឆេទ​ត្រឹមត្រូវគឺ​ថ្ងៃទី ២៩ ខែ កុម្ភៈ ឆ្នាំ ១៩៦៨ នៅ​ក្នុង​ការ​កំណត់​មូលដ្ឋាន​របស់​អ្នក ។

You may also use =ISLEAPYEAR(DATE(1968;2;29)) or =ISLEAPYEAR("1968-02-29") giving the date string in the ISO 8601 notation.

កុំ​ប្រើ =ISLEAPYEAR(2/29/68) ពីព្រោះ​វា​នឹង​ជា​ការ​វាយតម្លៃ​ដំបូង​ដែល 2 ចែក​នឹង 29 ចែក​នឹង 68 និង​បន្ទាប់​មក​គណនា​អនុគមន៍ ISLEAPYEAR ពី​លេខ​តូច​នេះ​ជា​លេខ​កាលបរិច្ឆេទ​​ស៊េរី ។

Technical information

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

ORG.OPENOFFICE.ISLEAPYEAR

tip

MONTHS

គណនា​ផលដក​គិត​ជា​ខែ​រវាង​កាល​បរិច្ឆេទ​ពីរ ។

Syntax

MONTHS(កាលបរិច្ឆេទ​ចាប់ផ្ដើម; កាលបរិច្ឆេទ​បញ្ចប់; ប្រភេទ)

កាលបរិច្ឆេទ​ចាប់ផ្ដើម គឺ​ជា​កាលបរិច្ឆេទ​ដំបូង

កាលបរិច្ឆេទ​បញ្ចប់ គឺ​ជា​កាលបរិច្ឆេទ​ទីពីរ

ប្រភេទ គណនា​ប្រភេទ​ផ្សេងៗ ។ តម្លៃ​ដែល​អាច​ប្រើ​បាន​​រួមមាន 0 (ចន្លោះ​ពេល) និង 1 (នៅ​ក្នុង​ខែ​ប្រតិទិន) ។

Technical information

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

ORG.OPENOFFICE.MONTHS

tip

ROT13

បម្លែង​ខ្សែ​តួអក្សរ​មួយ​​ជា​កូដ ​ដោយ​ផ្លាស់ទី​តួអក្សរ 13 ទីតាំង​ក្នុង​​អក្សរក្រម ។ បន្ទាប់​ពី​អក្សរ Z អក្សរក្រម​ចាប់ផ្តើម​ម្តង​ទៀត (បង្វិល) ។ ដោយ​អនុវត្ត​អនុគមន៍​បម្លែង​ជា​កូដ​ម្តង​ទៀត​ទៅ​លើ​កូដ​លទ្ធផល ​អ្នក​អាច​បម្លែង​អត្ថបទ​​ជា​ភាព​ធម្មតា​វិញ ។

Syntax

ROT13(អត្ថបទ)

អត្ថបទ គឺ​ជា​ខ្សែអក្សរ​ដែល​ត្រូវ​អ៊ិនគ្រីប ។ ROT13(ROT13(អត្ថបទ)) ឌិគ្រីប​កូដ ។

Example

=ROT13("Gur Qbphzrag Sbhaqngvba jnf sbhaqrq va Frcgrzore 2010.") returns the string "The Document Foundation was founded in September 2010.". Notice how spaces, digits, and full stops are unaffected by ROT13.

Technical information

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

ORG.OPENOFFICE.ROT13

tip

Refer to the ROT13 wiki page for more details about this function.


WEEKS

គណនា​ផលដក​គិត​ជា​សប្តាហ៍​រវាង​កាល​បរិច្ឆេទ​ពីរ ។

Syntax

WEEKS(កាល​បរិច្ឆេទ​​ចាប់ផ្តើម; កាល​បរិច្ឆេទ​​បញ្ចប់; ប្រភេទ)

StartDate is the start date in the interval.

EndDate is the end date in the interval. The end date must be greater than the start date, or else an error is returned.

Type specifies the type of difference to be calculated. Possible values are 0 (time interval) or 1 (calendar weeks).

If Type = 0 the function will assume that 7 days is equivalent to one week without considering any specific day to mark the beginning of a week.

If Type = 1 the function will consider Monday to be the first day of the week. Therefore, except for the start date, each occurrence of a Monday in the interval is counted as an additional week.

note

This function considers Monday to be the first day of the week regardless of the current locale settings.


Example

In the following examples, dates are passed as strings. However, they can also be stored in separate cells and be passed as references.

=WEEKS("01/12/2022","01/17/2022",0) returns 0 because Type was set to 0 and there are only 5 days in the interval.

=WEEKS("01/12/2022","01/19/2022",0) returns 1 because Type was set to 0 and there are 7 days in the interval.

=WEEKS("01/12/2022","01/17/2022",1) returns 1 because Type was set to 1 and the interval contains a Monday, since 01/12/2022 is a Wednesday and 01/17/2022 is a Monday.

=WEEKS("01/10/2022","01/15/2022",1) returns 0 because Type was set to 1 and the interval does not contain any Mondays, except for the start date.

Technical information

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

ORG.OPENOFFICE.WEEKS

tip

WEEKSINYEAR

គណនា​ចំនួន​សប្តាហ៍​ក្នុង​​ឆ្នាំ ដែលមាន​កាលបរិច្ឆេទ​ដែលបាន​បញ្ចូល​នៅក្នុង កើតឡើង ។ ចំនួន​សប្តាហ៍ គឺ​ត្រូវបាន​កំណត់​ដូច​តទៅនេះ ៖ សប្តាហ៍​ដែល​វិសាលភាព​ពីរ​ឆ្នាំគឺ​ត្រូវបាន​បន្ថែម​ទៅក្នុង​ឆ្នាំ ដែល​ចំនួនថ្ងៃ​នៃ​សប្តាហ៍​នោះ​កើតឡើង​នៅក្នុង ។

Syntax

WEEKSINYEAR(កាល​បរិច្ឆេទ)

កាលបរិច្ឆេទ គឺ​ជា​កាលបរិច្ឆេទ​ណាមួយ​នៅ​ក្នុង​ឆ្នាំ​យថាទស្សន៍ ។ ប៉ារ៉ាម៉ែត្រ​កាលបរិច្ឆេទ​ត្រូវ​តែ​ជា​កាលបរិច្ឆេទ​ត្រឹមត្រូវ ដោយ​យោង​តាម​កា​រកំណត់​មូលដ្ឋាន​របស់ LibreOffice ។

Example

WEEKSINYEAR(A1) ត្រឡប់ 53 ប្រសិន​បើ A1 មាន 1970-02-17 កាលបរិច្ឆេទ​ត្រឹមត្រូវ​សម្រាប់​ឆ្នាំ ១៩៧០ ។

Technical information

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

ORG.OPENOFFICE.WEEKSINYEAR

tip

YEARS

គណនា​ផលដក​គិត​ជា​ឆ្នាំ​រវាង​កាល​បរិច្ឆេទ​ពីរ ។

Syntax

YEARS(កាលបរិច្ឆេទ​ចាប់ផ្ដើម; កាលបរិច្ឆេទ​បញ្ចប់; ប្រភេទ)

កាលបរិច្ឆេទ​ចាប់ផ្ដើម គឺ​ជា​កាលបរិច្ឆេទ​ដំបូង

កាលបរិច្ឆេទ​បញ្ចប់ គឺ​ជា​កាលបរិច្ឆេទ​ទីពីរ

ប្រភេទ គណនា​ប្រភេទ​ផ្សេងៗ​គ្នា ។ តម្លៃដែល​អាច​ប្រើបាន​គឺ0 (ចន្លោះ​ពេល) និង 1 (នៅ​ក្នុង​ឆ្នាំ​ប្រតិទិន) ។

Technical information

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

ORG.OPENOFFICE.YEARS

tip

រូបមន្ត​បន្ថែម​តាម​រយៈ LibreOffice API

Add-ins can also be implemented through the LibreOffice API.

Please support us!