Add-in Functions

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

Add-in धारणा

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 .

आपूर्ति गरेको Add-inहरू

LibreOffice contains examples for the add-in interface of LibreOffice Calc.

विश्लेषण प्रकार्य खण्ड एक ।

विश्लेषण प्रकार्य खण्ड दुई

DAYSINMONTH

Calculates the number of days of the month in which the date entered occurs.

Syntax

DAYSINMONTH(मिति)

मिति सम्बन्धित रोजिएको बर्सको कुनैपनि महिनाको कुनै दिन हो। मिति प्यारामीटर LibreOffice को लोकेल सेटिङहरू अनुसारको वैध मिति बनाउन जरुरी हुन्छ।

Example

DAYSINMONTH(A1)ले २९ दिन फर्काउँदछ । यदि 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

Calculates the number of days of the year in which the date entered occurs.

Syntax

DAYSINYEAR(मिति)

मिति सम्बन्धित वर्ष को कुनै दिन हो। मिति प्यारामीटर LibreOffice को लोकेल सेटिङहरू अनुसारको वैध मिति बनाउन जरुरी हुन्छ।

Example

DAYSINYEAR(A1)ले ३६६ दिन फर्काउँदछ । यदि 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

Determines whether a year is a leap year. If yes, the function will return the value 1 (TRUE); if not, it will return 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)ले १ फर्काउँदछ,यदि 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(२/२९/६८) प्रयोग नगर्नुहोस्, किन भने यो २ भाग २९ भाग ६८ हुन सक्दछ र त्यसपछि 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(सुरु मिति, अन्तिम मिति, प्रकार)

सुरुआत मितिपहिलो मिति हो

समाप्ति मितिदोस्रो मिति हो

प्रकार फरकको प्रकार गणना गर्दछ । सम्भाव्य मानहरू ० (अन्तराल) र १ (तोकिएका महिनाहरूमा) संलग्न हुन्छन् ।

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(पाठ))ले कोडको गुप्तिकरण उल्टाउँछ​।

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

Calculates the number of weeks of the year in which the date entered occurs. The number of weeks is defined as follows: a week that spans two years is added to the year in which most days of that week occur.

Syntax

WEEKSINYEAR(मिति)

मिति सम्बन्धित वर्ष को कुनै दिन हो। मिति प्यारामीटर LibreOffice को लोकेल सेटिङहरू अनुसारको वैध मिति बनाउन जरुरी हुन्छ।

Example

WEEKSINYEAR(A1)ले ५३ फर्काउँदछ । 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(मिति सुरु गर्दछ,अन्तिम मिति,प्रकार्य)

सुरुआत मितिपहिलो मिति हो

समाप्ति मितिदोस्रो मिति हो

प्रकार फरकको प्रकार गणना गर्दछ । सम्भाव्य मानहरू ० (अन्तराल) र १ (तोकिएका वर्षहरूमा) हन्छन् ।

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

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

कृपया हामीलाई समर्थन गर्नुहोस्!