XCompany
XCompany() - Company information
Description
This function returns the company information corresponding to the selection made in the Field parameter.
Parameters
Field [Optional]
Name or code that corresponds to the information requested.
By default, when this parameter remains empty, the name of the company will be displayed.
- Name to obtain the company name;
- Street 1 or S1 to obtain the company's first address line;
- Street 2 or S2 to obtain the company's second address line;
- City or CT to obtain the company city;
- Province or State or PR to obtain the company province;
- Country or CN to obtain the company country;
- Postal Code or Zip or PC to obtain the company postal code;
- Phone 1 or P1 to obtain the first company phone number;
- Phone 2 or P2 to obtain the second company phone number;
- Fax or FX to obtain the company fax number;
- Business no or BN or EIN to obtain the company business number;
- Session date or SD to obtain the current session date.
To obtain the exercise beginning or ending date, you can enter:
- Fiscal start, fiscal start 0, FS or FS 0 to obtain the current fiscal
- year beginning date;
- Fiscal end, fiscal end 0, FE or FE 0 to obtain the current fiscal year
- ending date;
- Last year's fiscal start, fiscal start 1, fiscal start -1, LYFS, FS 1 or
- FS -1 to obtain the last year exercise beginning date;
- Last year's fiscal end, fiscal end 1, fiscal end -1, LYFE, FE 1 or FE -1
- to obtain the last year exercise ending date;
- Fiscal start 2, fiscal start -2, FS 2 or FS -2 to obtain the two years ago
- exercise beginning date;
- Fiscal end 2, fiscal end -2, FE 2 or FE -2 to obtain the two years ago
- exercise ending date;
- etc.
All past exercises' beginning or ending dates can be generated with this
function. Specify the number of years you need to go back from
the current year to Fiscal start, FS, Fiscal end, or FE parameter. Where
zero (0) represents the current year, the digit one (1 or -1) represent the
last year, etc. For example, if you need the information of the 5 years back
from the current year:
- Fiscal start 5, fiscal start -5, FS 5 or FS -5 to obtain the beginning
- date of the exercise closed five years before;
- Fiscal end 5, fiscal end -5, FE 5 or FE -5 to obtain the ending date of
- the exercise closed five years before.
It is also possible to specify a year such as:
- Fiscal start 2007 or FS 2007 to obtain the beginning date for
- which the financial year finishes in 2007;
- Fiscal end 2007 or FE 2007 to obtain the ending date for which
- the financial year finishes in 2007.
The following chart summarizes all possible methods to obtain the fiscal start
date. The same rules apply to obtain the fiscal end date.
The cell format, where this function is located, must be specified to obtain the desired
result. In particular when you ask for a date, the cell format must be set to
"Date" to see a date and not an incomprehensible number.
Connections [Optional]
Sage 50 connection to query. If left empty, the default connection will be utilized.
Examples
It is strongly recommended to use an Excel cell address (ex. A1:B19) containing the information of the parameters requested in all Logicim XLGL functions, such as names or codes. This practice adds flexibility to your worksheet and will ensure the coherence of your results. Moreover, the use of quotation marks (") is essential when the parameters are manually written in the arguments function window.
Return the company name
=XCompany()
Return the company's fiscal start date
=XCompany("FS")
Edited: Tuesday, November 05, 2024
Was this article helpful?
Thank you! Your feedback matters.
You can Contact us so we can address your question.