To use these worksheet functions you need to have ASAP Utilities installed.
Click on the function to view an example of its use:
1
=ASAPCELLCOLORINDEX()
18
=ASAPGETFORMULA()
=ASAPCOUNTBYCELLCOLOR()
19
=ASAPGETFORMULAINT()
=ASAPCOUNTBYFONTCOLOR()
20
=ASAPGETHYPERLINK()
=ASAPCOUNTCHAR()
21
=ASAPGETNUMBERFORMAT()
=ASAPCOUNTSHADES()
22
=ASAPISBOLD()
=ASAPEXTRACTFILENAME()
23
=ASAPISFORMULA()
=ASAPEXTRACTFOLDERNAME()
24
=ASAPLOADIMAGE()
=ASAPEXTRACTNUMBERS()
25
=ASAPMERGECELLS()
=ASAPFILENAME()
26
=ASAPRANDOMPASSWORD()
10
=ASAPFILEPATH()
27
=ASAPSHEETNAME()
11
=ASAPFILEPROPERTIES
28
=ASAPSPELLNUMBER()
12
=ASAPFONTCOLORINDEX()
29
=ASAPSTRIPNUMBERS()
13
=ASAPFULLFILENAME()
30
=ASAPSUMBYCELLCOLOR()
14
=ASAPGETCOMMENT()
31
=ASAPSUMBYFONTCOLOR()
15
=ASAPGETDOMAIN()
16
=ASAPGETFONTNAME()
17
=ASAPGETFONTSIZE()
Note
http://www.asap-utilities.com
back
#ADDIN?
###
Color
Cell color
index number:
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
back
#ADDIN?
###
You can use this function to count the number of cells that have a certain color.
The first parameter is the range to be searched, the second parameter is either the cell that has the color (rec
Example 1
Use the =ASAPCOUNTBYCELLCOLOR() formula to count the number of yellow cells:
We use B10 in the formula to have the formula count the cells with the same cell color as cell B10
Result:
Formula used in B10:
###
Err:511
34
18
92
102
63
55
81
73
27
30
40
13
75
64
91
15
61
72
11
56
58
19
32
4
103
41
36
97
8
69
88
101
54
71
51
79
12
84
45
17
44
3
105
28
24
70
67
42
20
77
66
33
35
99
83
21
68
10
38
9
Example 2
Use the =ASAPCOUNTBYCELLCOLOR() formula to count the number of green cells:
The colorindex number for the green color is 4
Result:
Formula used in B23:
###
Err:511
12
52
1
31
72
51
2
3
52
148
22
28
123
53
261
128
262
75
81
72
9
3
136
220
21
90
84
2
26
84
18
111
1
244
44
44
103
161
35
13
0
119
66
101
18
112
22
36
3
6
74
51
2
157
257
141
0
196
17
114
back
#ADDIN?
###
You can use this function to count the number of cells that have a certain font color.
The first parameter is the range to be searched, the second parameter is either the cell that has the fontcolor
Example 1
Count the number of cells with a blue font:
We use B10 as a reference in the formula to have the formula count the cells with the same cell color as cell
Result:
Formula used in B10:
###
Err:511
34
18
92
102
63
55
81
73
27
30
40
13
75
64
91
15
61
72
11
56
58
19
32
4
103
41
36
97
8
69
88
101
54
71
51
79
12
84
45
17
44
3
105
28
24
70
67
42
20
77
66
33
35
99
83
21
68
10
38
9
103
161
35
13
0
119
66
101
18
112
22
36
3
6
74
51
2
157
257
141
0
196
17
114
Example 2
Count the number of cells with a red font:
The colorindex number for the red color = 3
Result:
Formula used in B23:
###
Err:511
12
52
1
31
72
51
2
3
52
148
22
28
123
53
261
128
262
75
81
72
9
3
136
220
21
90
84
2
26
84
18
111
1
244
44
44
back
#ADDIN?
#ADDIN?
Text
Test
Bastien Mensink
blah blah blah
Microsoft Excel 2010
15
Text
keyword1, keyword2, keyword3
a, b, c, d
a|b|c|d|e
114
http://www.test.com/t/test
The formula is Case sensitive
Cc
Err:511
You can also use it to count words by counting all the spaces and add 1:
Use it to count words
How many words?
Formula used in column C:
how many words are this?
Err:511
Err:511
and this?
Err:511
Err:511
now
Err:511
Err:511
Same technique, but with a workaround if there are double spaces between the cells
Use it to count words
How many words?
Formula used in column C:
how many words are this?
Err:511
Err:511
and this?
Err:511
Err:511
now
Err:511
Err:511
2
3
4
2
4
4
1
Err:511
2 Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
5 Err:511
2 Err:511
1 Err:511
back
#ADDIN?
###
You can use this function to count the number of colored cells (so called "shades").
Example
Use the =ASAPCOUNTSHADES() formula to count the number colored cells.
Result:
Formula used in B6:
###
Err:511
34
18
92
102
63
52
1
31
72
51
81
73
27
30
40
3
52
148
22
28
75
64
91
15
61
53
261
128
262
75
11
56
58
19
32
72
9
3
136
220
103
41
36
97
8
90
84
2
26
84
88
101
54
71
51
111
1
244
44
44
12
84
45
17
44
161
35
13
0
119
105
28
24
70
67
101
18
112
22
36
20
77
66
33
35
6
74
51
2
157
83
21
68
10
38
141
0
196
17
114
back
#ADDIN?
#ADDIN?
Returns the file name from a full path and filename.
Example
Full path and filename
D:\Projects\Archive\Client 1\Balance.xls
\\FS\Projects\Archive\Client 1\Balance.xls
D:\Projects\Client 14\Sales.xlsx
D:\Projects\Client 14\Prices to be updates.xlsm
Result:
Err:511
Err:511
Err:511
Err:511
back
#ADDIN?
#ADDIN?
Returns the folder name from a combined filepath and filename.
Example
Full path and filename
D:\Projects\Archive\Client 1\Balance.xls
\\FS\Projects\Archive\Client 1\Balance.xls
D:\Projects\Client 14\Sales.xlsx
D:\Projects\Client 14\Prices to be updates.xlsm
Result:
Err:511
Err:511
Err:511
Err:511
back
#ADDIN?
#ADDIN?
Returns the numbers from a text string.
The result is a number. Therefore leading zeros are not preserved.
Example
Value
8011 LB
ART.47654
PROD0004431
D232SE
BE-54
978-90-274-3964-2.
NL.8173.03.954
Year published: 1984
ISO9001
Result:
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
back
#ADDIN?
#ADDIN?
Returns the name of your workbook. This is the name of the workbook without the filepath (folder).
Example
The name of this example workbook:
Result:
#ADDIN?
Formula used above
Err:511
filepath (folder).
back
#ADDIN?
#ADDIN?
Returns the filepath (the folder) where your workbook is stored.
Example
The folder of this example workbook:
Result:
#ADDIN?
Formula used above
Err:511
back
#ADDIN?
#ADDIN?
Returns the value of one of the built-in document properties for the current workbook.
You can refer to document properties either by index value or by their English name.
Example
1
2
3
4
5
7
9
10
11
12
18
20
21
29
Property
Title
Subject
Author
Keywords
Comments
Last Author
Application Name
Last Print Date
Creation Date
Last Save Time
Category
Manager
Company
Hyperlink Base
lue of one of the built-in document properties for the current workbook.
o document properties either by index value or by their English name.
Result:
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
back
#ADDIN?
#ADDIN?
Text colored
Blue
Red
Dark grey
Green
Orange
Lighter grey
Amsterdam
Athens
Berlin
Bern
Brussels
Budapest
Copenhagen
Dublin
Helsinki
London
Luxembourg
Madrid
Moscow
Oslo
Paris
Prague
Reykjavk
Rome
Stockholm
Vienna
back
#ADDIN?
#ADDIN?
Returns the full filename of your workbook. This is the name of the workbook including the folder (filepath) where it is save
Example
The folder of this example workbook:
Result:
#ADDIN?
Formula used above
Err:511
back
#ADDIN?
#ADDIN?
Returns the comment-text from a cell.
Example
Cells with comment
Test
500
19%
35
Comment contents:
Err:511
Err:511
Err:511
Err:511
back
#ADDIN?
#ADDIN?
back
#ADDIN?
#ADDIN?
Returns the name of the font in a cell.
Example
Value
Test value
Test value
Test value
Test value
Test value
Test value
Test velue
Result
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
back
#ADDIN?
#ADDIN?
Returns the name of the font in a cell.
You can also use this to sort by font-size.
Example
Value
Test value
Result
Err:511
Err:511
Err:511
Err:511
Test value
Err:511
Err:511
Test value
Err:511
Err:511
Test value
Test value
Test value
back
#ADDIN?
###
Returns the formula of a cell.
This formula is used allover this workbook to show you which formulas are used
Example
Formula
144
288
432
216
30/Aug/16
click
not so large
blah blah blah
125
Result
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
back
#ADDIN?
###
Example
Formula
144
962
1106
553
30/Aug/16
click
pretty large
blah blah blah
125
Result
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
back
#ADDIN?
#ADDIN?
Example
Value with hyperlink
click here
or click here
official excel blog
MS Excel on Twitter
ASAP Utilities on Twitter
back
#ADDIN?
#ADDIN?
Returns the number format of a cell.
Example
Value
1,250
Test
Text
8/30/2016
8/30/2016 7:54
5,000.00
$5,000.00
Err:511
0012
64%
250
(250)
Result
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
back
#ADDIN?
#ADDIN?
Returns TRUE if the cell is bold or FALSE if it isn't.
Example
Value
sort
sort code
php sort
sort array
bubble sort
java sort
sql sort
sort by
mysql sort
javascript sort
perl sort
sort of
php sort array
sort by color
bank sort code
sort arraylist
insertion sort
selection sort
list sort
sort algorithm
datagrid sort
mysql sort by
sql sort by
merge sort
c++ sort
sort datatable
quick sort
vba sort
sort on
Result
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
back
#ADDIN?
#ADDIN?
Returns TRUE if the cell has a formula or FALSE if it doesn't.
Example
Value or formula
79%
17%
83%
85%
10%
88%
73%
75%
44%
31%
96%
5%
66%
1%
78%
97%
62%
67%
40%
77%
34%
56%
91%
32%
54%
71%
40%
87%
85%
Result
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
back
#ADDIN?
#ADDIN?
Inserts the specified image as an object and puts it at the left-top of your cell.
To update the image, you can replace the formula with a new image name.
To remove the image you have to remove both the formula and the image. (The image isn't removed if only th
You have to press Control+Alt+F9 to have the formula recalculated.
Example
Image path and file name or url
http://www.asap-utilities.com/press/box-shot-asap-utilities-left-angle-big.png
http://www.asap-utilities.com/press/logo-asap-utilities-small-200px.png
C:\Windows\Web\Wallpaper\Windows\img0.jpg
C:\WINDOWS\WEB\WALLPAPER\WINDOWS\IMG0.JPG
C:\Windows\Soap Bubbles.bmp
r cell.
me.
ge. (The image isn't removed if only the formula is removed.)
Result
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
back
#ADDIN?
#ADDIN?
Example 1
Values
1/80s
5.7f
ISO: 400
12.0mm
November 12, 2010
Result
Err:511
Formula used above
Err:511
Example 2
Values
apple
pear
banana
orange
Result
Err:511
Formula used above
Err:511
Example 3
Payment is due:
November 11, 2010
November 18, 2010
November 25, 2010
December 2, 2010
Result
Err:511
Err:511
Err:511
Err:511
Formula used
Err:511
Err:511
Err:511
Err:511
Example 4
Values
BEAV
BESI
AATK
BFAM
CCOMP
BNHN
ACLS
BIOM
CCRD
BBBY
BFEN
BBGI
CBUK
BIORY
Result
Err:511
Formula used above
Err:511
BASI
BCIS
AALA
BFRE
BEIQ
BKNW
BRKC
BSXT
ACTT
ABIZ
CALD
BRKS
AFAM
ACME
CAFEW
ABAX
is to display only one decimal then this function uses value as "12.2".
Formula used
Err:511
Err:511
Err:511
Err:511
ut ASAP Utilities
NHN, ACLS, BIOM, CCRD, BBBY, BFEN, BBGI, CBUK, BIORY, BASI, BCIS, AALA, BFRE, BEIQ, BKNW, BRKC, BSXT, ACTT, ABIZ, CA
RKC, BSXT, ACTT, ABIZ, CALD, BRKS, AFAM, ACME, CAFEW, ABAX
back
#ADDIN?
#ADDIN?
Returns a random string that can be used as a password.
The minimum lenght is 8, the maximum length is 32767
Example 1
Password
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Length
#ADDIN? #ADDIN?
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Length
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
be used as a password.
imum length is 32767
special characters
Formula used in column C
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
back
#ADDIN?
#ADDIN?
Example
The name of this example workbook:
Result:
#ADDIN?
Formula used above
Err:511
ASAPRANDOMPASSWORD
back
#ADDIN?
#ADDIN?
Returns a spelled-out number or amount in the languages English, Dutch or German
Example 1, no currency
Value
125.00
89.99
125.00
89.99
125.00
89.99
125.00
89.99
125.00
89.99
125.00
89.99
Result
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Result
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
back
#ADDIN?
#ADDIN?
Removes all numbers from a text string and removes all spaces at the beginning and end of the result.
Example
Value
8011 LB
ART.47654
PROD0004431
ZZE5
ISO9001
Capital Sheet Metal Inc 32020
Capitol City 16361
Carreker Corporation 015509
Result:
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
Err:511
back
#ADDIN?
###
Calculates the SUM of the cells that have a certain fill color.
Example 1
Use the ASAPSUMBYCELLCOLOR() formula to sum the values of the yellow cells:
We use B10 in the formula to have the formula count the cells with the same cell color as cell B10
Result:
Formula used in B9:
###
Err:511
34
18
92
102
63
55
81
73
27
30
40
13
75
64
91
15
61
72
11
56
58
19
32
4
103
41
36
97
8
69
88
101
54
71
51
79
12
84
45
17
44
3
105
28
24
70
67
42
20
77
66
33
35
99
83
21
68
10
38
9
Example 2
Use the =ASAPSUMBYCELLCOLOR() formula to sum the values of the green cells:
The colorindex number for the green color is 4
Result:
Formula used in B22:
###
Err:511
12
52
1
31
72
51
2
3
52
148
22
28
123
53
261
128
262
75
81
72
9
3
136
220
21
90
84
2
26
84
18
111
1
244
44
44
103
161
35
13
0
119
66
101
18
112
22
36
3
6
74
51
2
157
257
141
0
196
17
114
Err:511
And now image that the colors have changed and you need to update the formula with the method used abo
back
#ADDIN?
###
You can use this function to count the number of cells that have a certain font color.
The first parameter is the range to be searched, the second parameter is either the cell that has the fontcolor
Example 1
Use the =ASAPSUMBYFONTCOLOR() formula to SUM the values of cells with a blue font:
We use B10 in the formula to have the formula count the cells with the same cell color as cell B10
Result:
Formula used in B10
###
Err:511
34
18
92
102
63
55
81
73
27
30
40
13
75
64
91
15
61
72
11
56
58
19
32
4
103
41
36
97
8
69
88
101
54
71
51
79
12
84
45
17
44
3
105
28
24
70
67
42
20
77
66
33
35
99
83
21
68
10
38
9
Example 2
Use the =ASAPSUMBYFONTCOLOR() formula to SUM the values of cells with a red font:
The colorindex number for the red color = 3
Result:
Formula used in B23:
###
Err:511
12
52
1
31
72
51
2
3
52
148
22
28
123
53
261
128
262
75
81
72
9
3
136
220
21
90
84
2
26
84
18
111
1
244
44
44
103
161
35
13
0
119
66
101
18
112
22
36
3
6
74
51
2
157
257
141
0
196
17
114
th a blue font:
cell color as cell B10
th a red font:
Err:511
And now image that the colors have changed and you need to update the formula with the method used above
back