[]
Implement this interface when formulas need to resolve names that are not defined by workbook names or worksheet names. The custom resolver can then be passed to a worksheet formula evaluation overload that accepts an IFormulaResolver.
IFormulaResolver resolver = new CustomFormulaResolver();
Object result = worksheet.evaluate("=100*TaxRate", resolver);
booleanisCustomName(String text)
IFormulaResolver resolver = new CustomFormulaResolver();
boolean isCustomName = resolver.isCustomName("TaxRate");
text - The formula text or name to check.true if the specified text is a custom name; otherwise, false.
IFormulaResolver resolver = new CustomFormulaResolver();
Object value = resolver.evaluate("TaxRate");
text - The custom name to evaluate.