![]() | ||
ASAP Utilities worksheet functionsYou get several extra worksheet functions in Excel when you have ASAP Utilities installed. These are so called user defined functions (or UDF).Added worksheet functions=ASAPFullFileName()Returns the full filename of your workbook. This is the name of the workbook including its path.Example: D:\projects\active\balance.xls =ASAPFileName()Returns the name of your workbook.Example: balance.xls =ASAPFilePath()Returns the path where your workbook is saved/located.Example: D:\projects\active =ASAPSheetName()Returns the name of the sheet the formula is placed on.=ASAPCountShades(range)Returns the amount of colored cells in your range.If you afterwards change the color in a cell, you have to press Control+Alt+F9 to have the formulas recalculated. = ASAPCellColorIndex(range)Returns the cell color index number of the first cell in your range.If you afterwards change the color of the referenced cell, you have to press Control+Alt+F9 to have the formulas updated. The color index number is the number that correspondences with a certain color in Excel. The color index is one of the 56 colors in Excel. The default color palette is: ![]() =ASAPFontColorIndex(range)Returns the font color index number of the first cell in your range.If you afterwards change the fontcolor in a cell, you have to press Control+Alt+F9 to have the formulas updated. =ASAPSumByFontColor(range, color number)Returns the sum of all cells in your range that have the given font color index number. In this case the font color index is one of the 56 colors in Excel.![]() If you afterwards change the color in a cell, you have to press Control+Alt+F9 to have the formulas recalculated. =ASAPSumByCellColor(range, color number)Returns the sum of all cells in your range that have the given cell color index number. In this case the cell color index is one of the 56 colors in Excel. Useful combination with the function = ASAPCellColorIndex(range)If you afterwards change the color in a cell, you have to press Control+Alt+F9 to have the formulas recalculated. =ASAPCountByCellColor(Lookin_Range, Color_Index_Nr)Counts the amount of cells in the selected range that have a certain cell color.You can use this function in combination with the = ASAPCellColorIndex() function.
=ASAPCountByFontColor(Lookin_Range, Color_Index_Nr)Counts the amount of cells in the selected range that have a certain font color. You can use this function in combination with the = ASAPFontColorIndex() function.=ASAPGetComment(range)Returns the content of the cell-comment of a given cell.If you afterwards change the comment in a cell, you have to press Control+Alt+F9 to have the formulas updated. =ASAPGetHyperlink(range, optional sNA)This function returns the hyperlink from a cell. The hyperlink can be one of the following:
For example:
If you afterwards change the hyperlink in a cell, you have to press Control+Alt+F9 to have the formulas updated. =ASAPSpellNumber()This function spells out numbers.The function has the following parameters: =ASAPSpellNumber(Number, language (EN/NL/DE), currency, optional strSingular, optional strPlural, optional strComma, optional strCentSingular, Optional strCentPlural) Example:
=ASAPExtractNumbers(ref)This function extracts the numbers from a given range or value.
=ASAPStripNumbers(ref)This function strips the numbers from a given range or value.
=ASAPGetFontName(range)This function returns the font name of a cell.=ASAPGetFontSize(range)This function returns the font size of a cell.=ASAPGetNumberformat(range)This function returns the number format of a cell.=ASAPIsFormula(range)This function returns true if the cell contains a formula or an array formula. Otherwise it returns false.=ASAPCountChar(SearchText, SearchValue)This function returns the number of times the "SearchValue" occurs in the "SearchText". This way you can for example count the number of commas in a cell. This function is case sensitive.=ASAPExtractFilename(FullFilename, optional separator)Extracts the file name from a full path & filenameExample Cell B23 contains: D:\User Guide\screenshots\Sort random (shuffle).xls =ASAPExtractFilename(B23) will return "Sort random(shuffle).xls" =ASAPExtractFolderName(FullFilename, optional separator)Extracts the folder name from a full path & filenameExample Cell B23 contains: D:\User Guide\screenshots\Sort random (shuffle).xls =ASAPExtractFolderName(B23) will return "D:\User Guide\screenshots" =ASAPGetFormula(FormulaCell)Returns the formula in a cell in local Excel language. Example: =GEMIDDELDE("A1:B12")Returns empty if the cell does not contain a formula =ASAPGetFormulaInt(FormulaCell)Returns the formula in a cell in international notation. Example: =AVERAGE("A1:B12")Returns empty if the cell does not contain a formula =ASAPMergeCells(inputrange, delimiter, skipemptycells)An easy alterative for the Excel =CONCATENATE() fuction. However the benefit of this ASAP Utilities function:
=ASAPIsBold(range)Returns true if the cell is bold, false if it isn'tWhere to find these functions?Once you have installed ASAP Utilities in Excel and see the ASAP Utilities menu you can use these worksheet functions.There are two ways to use the functions:
Remarks on distributingIf you use these worksheet functions in your worksheet there a few considerations to make if other people are going to work on the same workbook:
Remarks on calculationSince Excel only recalculates a workbook if the value in a cell changes (most of the times), some of the new ASAP Utilities worksheet formulas don't get triggered to update. In that case you have to press Control+Alt+F9 to have the formulas updated. | ||
|
Home
Sitemap
Search
List of all utilities
Printer friendly page
^ Back to Top
© 1999-2008 - Bastien Mensink - ASAP Utilities - Excel macro tools - A Must in Every Office BV - The Netherlands
|