Documentation for RCHGetElementNumber() function


Description

    Returns a specific data element from a specified data source (i.e. web page).

Syntax

    =RCHGetElementNumber( ticker , elementnumber [, errorvalue ] )

Parameters

    ticker= A ticker symbol indicating which company data is to be returned for. In addition, there are several literals that can be specified for this parameter to request other information. See the "Examples" section for more details.

    elementnumber= A number specifying which data element is to be retrieved for a ticker symbol. A list of element numbers and the data sources and data elements they are related to can be found in the RCHGetElementNumber-Element-Definitions.xls workbook distributed with the add-in.

    errorvalue= A string or numeric value to be returned if there is an error in finding the data element. A default value of "error" is used if nothing is passed. This can prevent needing to put IF() statements in a cell to make a display or calculation of items easier to read.

Examples

    
Example FormulaValue ReturnedDescription
=RCHGetElementNumber("Version")Stock Market Functions add-in, Version 2.0jTells you which version of the add-in you are using.
=RCHGetElementNumber("Source",941)YahooKSGives you the data source for element number 941
=RCHGetElementNumber("Element",941)Market CapGives you the element name for element number 941
=RCHGetElementNumber("Web Page",941)http://finance.yahoo.com/q/ks?s=~~~~~Gives you the web page element number 941 is retrieved from ("~~~~~" is the ticker symbol)
=RCHGetElementNumber("ElementFile",941). ...folder...\smf-element-nn.txtGives you the "smf-element-nn.txt" name and file date/time that 941 was (last) loaded from.
=RCHGetElementNumber("IBM", 941)119,670,000Market Capitalization from data source "YahooKS" for ticker "IBM"
=RCHGetElementNumber("IBM", 1541)119,670,000,000Market Capitalization from data source "MSN" for ticker "IBM"
 
=RCHGetElementNumber("P-URL",941)http://finance.yahoo.com/q/ks?s=~~~~~RCHGetTableCell() function parameter
=RCHGetElementNumber("P-Cells",941)1RCHGetTableCell() function parameter
=RCHGetElementNumber("P-Find1",941)VALUATION MEASURESRCHGetTableCell() function parameter
=RCHGetElementNumber("P-Find2",941)MARKET CAPRCHGetTableCell() function parameter
=RCHGetElementNumber("P-Find3",941) RCHGetTableCell() function parameter
=RCHGetElementNumber("P-Find4",941) RCHGetTableCell() function parameter
=RCHGetElementNumber("P-Rows",941)0RCHGetTableCell() function parameter
=RCHGetElementNumber("P-End",941)0RCHGetTableCell() function parameter
=RCHGetElementNumber("P-Look",941)0RCHGetTableCell() function parameter
=RCHGetElementNumber("P-Type",941)0RCHGetTableCell() function parameter

Usage notes