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 གི་ནང་ན་ LibreOffice ཀེལཀི་གི་ཁ་སྐོང་རྐྱབས་ནིའི་ངོས་འདྲ་བ་འདི་གི་དོན་ལུ་ དཔེར་བརྗོད་ཚུ་ཡོདཔ་ཨིན།

དཔྱད་ཞིབ་ལས་འགན་ཚུ་ ཡན་ལག་གཅིག

དཔྱད་ཞིབ་ལས་འགན་ཚུའི་ ཡན་ལག་གཉིས།

DAYSINMONTH

ཚེས་གྲངས་ཐོ་བཀོད་འབད་མི་འབྱུང་མི་ ཟླཝ་གི་ཉིན་གྲངས་འདི་རྩིས་སྟོན་འབདཝ་ཨིན།

Syntax

DAYSINMONTH(ཚེས་གྲངས།)

ཚེས་གྲངས་: རེ་འདུན་ཡོད་པའི་ལོ་འདི་གི་ རིམ་བཞིན་ཟླཝ་འདི་ནང་ ཚེས་གྲངས་ག་ཅི་འབད་རུང་། ཚེས་གྲངས་ཚད་བཟུང་འདི་ LibreOffice གི་ལོ་ཀེལ་སྒྲིག་སྟངས་འདི་དང་འཁྲིལ་ཏེ་ ནུས་ལྡན་ཚེས་གྲངས་ཅིག་ཨིན་དགོ།

Example

དབྱིན་ལོ་ ༡༩༦༨ དབྱིན་ཟླ་ གཉིས་པའི་དོན་ལུ་ A1 ནང་ན་ ཚེས་གྲངས་ནུས་ཅན་ ༢/༡༧/༦༨ ཤོམ་ཏེ་ཡོད་པ་ཅིན་ DAYSINMONTH(A1) གིས་ ཉིན་གྲངས་ ༢༩ སླར་ལོག་འབདཝ་ཨིན།

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

དབྱིན་ལོ་ ༡༩༦༨ དོན་ལུ་ A1 ནང་ན་ ནུས་ཅན་ཚེས་གྲངས་ ༢/༢༩/༦༨ ཤོམ་ཏེ་ཡོད་པ་ཅིན་ DAYSINYEAR(A1) གིས་ ཉིན་གྲངས་ ༣༦༦ སླར་ལོག་འབདཝ་ཨིན།

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

ལོ་འདི་ཡང་ཅིན་ ཤོལ་ལོ་ཨིན་ན་མེན་ན་གཏན་འབེབས་བཟོཝ་ཨིན། ཨིན་པ་ཅིན་ ལས་འགན་འདི་གིས་ གནས་གོང་ ༡ (བདེན་པ་)སླར་ལོག་འབད་འོང་ མེན་པ་ཅིན་ འདི་གིས་ ༠ (རྫུན་མུ་) སླར་ལོག་འབད་འོང་།

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

ཁྱོད་རའི་ལོ་ཀེལ་སྒྲིག་སྟངས་ནང་ལུ་ དབྱིན་ལོ་ ༡༩༦༨ དབྱིན་ཟླ་ གཉིས་པའི་དབྱིན་ཚེས་ ༢༩ དོན་ལུ་ A1 ནང་ན་ ནུས་ཅན་ཚེས་གྲངས་ ༢/༢༩/༦༨ ཤོམ་ཏེ་ཡོད་པ་ཅིན་ ISLEAPYEAR(A1) གིས་ ༡ སླར་ལོག་འབདཝ་ཨིན།

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) དེ་ལག་ལེན་མ་འཐབ་ ག་ཅི་སྦེ་ཟེར་བ་ཅིན་ འ་ནི་གིས་ དང་པ་རང་ ༢ བརྟག་ཞིབ་འབད་ ༢༩ གིས་ བགོ་ ༦༨ གིས་ བགོ་བཤའ་བརྐྱབ་ དེ་ལས་ འ་ནི་ ཨང་གྲངས་ཆུང་ཀུ་ལས་ 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(ཚེས་གྲངས་འགོ་བཙུགས། ཚེས་གྲངས་མཇུག་བསྡུ། དབྱེ་བ།)

ཚེས་འགོ་བཙུགས་ : ཚེས།

Data_2 འདི་གནད་སྡུད་ཆ་ཚང་གཉིས་པམ་ཨིན།

དབྱེ་བ་: ཁྱད་པར་གྱི་དབྱེ་བ་རྩིས་སྟོནམ་ཨིན། འབྱུང་སྲིད་པའི་གནས་གོང་གྲངས་སུ་ ༠ (བར་མཚམས་) དང་ ༡ (ཟླ་ཐོ་ནང་ ཟླ་ངོ་ཚུ་) ཚུ་བཙུགས་ཏེ་ཡོད།

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

དབྱངས་གསལ་ནང་ཡིག་འབྲུ་ཚུའི་གནས་ས་ ༡༣ ཚུ་སྤོ་བའི་ཐོག་ལས་ ཡིག་འབྲུ་ཡིག་རྒྱུན་གསང་བ་བཟོཝ་ཨིན། ཡི་གུ་ Z གི་ཤུལ་ལས་ དབྱངས་གསལ་དེ་ལོག་སྟེ་རང་འགོ་བཙུགསཔ་ཨིན་(སྐོར་འཁོར)། གསང་བ་བཟོ་བའི་ལས་འགན་དེ་ གྲུབ་འབྲས་འབྱུང་བའི་ཨང་རྟགས་ འཇུག་སྤྱོད་ཐོག་ལས་ ཁྱོད་ཀྱིས་ ཚིག་ཡིག་དེ་ གསང་བཤོལ་འབད་ཚུགསཔ་ཨིན།

Syntax

ROT13(ཚིག་ཡིག

ཚིག་ཡིག་ : གསང་བ་བཟོ་ནི་ཨིན་པའི་ ཡིག་འབྲུའི་ཡིག་རྒྱུན་བཙུགས། ROT13(ROT13(Text)) ཨང་རྟགས་གསང་བ་བཟོཝ་ཤོལཝ་ཨིན།

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

དབྱིན་ལོ་ ༡༩༧༠ དོན་ལུ་ A1 ནང་ན་ ནུས་ཅན་ཚེས་གྲངས་ ༢/༡༧/༧༠ ཤོམ་ཏེ་ཡོད་པ་ཅིན་ WEEKSINYEAR(A1) གིས་ ༥༣ སླར་ལོག་འབདཝ་ཨིན།

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(ཚེས་གྲངས་འགོ་བཙུགས། ཚེས་གྲངས་མཇུག་བསྡུ། དབྱེ་བ། )

ཚེས་འགོ་བཙུགས་ : ཚེས།

Data_2 འདི་གནད་སྡུད་ཆ་ཚང་གཉིས་པམ་ཨིན།

དབྱེ་བ་: ཁྱད་པར་གྱི་དབྱེ་བ་རྩིས་སྟོནམ་ཨིན། འབྱུང་སྲིད་པའི་གནས་གོང་ཚུ་ནི་ ༠ (བར་མཚམས་) དང་ ༡ (ཟླ་ཐོ་ལོ་ཚུ་ནང་) ཚུ་ཨིན།

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 ཨེ་པི་ཨའི་ བརྒྱུད་དེ་ ཨེཌི་ཨིནསི།

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

Please support us!