Вы находитесь на странице: 1из 66

Worksheet functions added by ASAP Utilities

To use these worksheet functions you need to have ASAP Utilities installed. Click on the function to view an example of its use: 1 ! # % & ' ( " 1$ 11 1! 1# 1% 1& 1' 1( *ASAPC+,,C-,-./)0+123 *ASAPC-U)T78C+,,C-,-.23 *ASAPC-U)T785-)TC-,-.23 *ASAPC-U)TC9A.23 *ASAPC-U)TS9A0+S23 *ASAP+1T.ACT5/,+)A6+23 *ASAP+1T.ACT5-,0+.)A6+23 *ASAP+1T.ACT)U67+.S23 *ASAP5/,+)A6+23 *ASAP5/,+PAT923 *ASAP5/,+P.-P+.T/+S *ASAP5-)TC-,-./)0+123 *ASAP5U,,5/,+)A6+23 *ASAP4+TC-66+)T23 *ASAP4+T0-6A/)23 *ASAP4+T5-)T)A6+23 *ASAP4+T5-)TS/=+23 More information is on our website: http:>>www.asap?utilities.com>asap?utilities?worksheet?functions.php The macro in this work<ook automatically updates the references from the ASAP Utilities formulas to the pro@ram folder if needed. This can for example <e the case if ASAP Utilities is not installed in the default C:APro@ram 5ilesAASAP UtilitiesA folder <ut for example C:APro@ram 5iles 2x '3AASAP UtilitiesA /f the macro does not run automatically then you can press the <utton <elow: 1 1" !$ !1 !! !# !% !& !' !( ! !" #$ #1 )ote *ASAP4+T5-.6U,A23 *ASAP4+T5-.6U,A/)T23 *ASAP4+T98P+.,/):23 *ASAP4+T)U67+.5-.6AT23 *ASAP/S7-,023 *ASAP/S5-.6U,A23 *ASAP,-A0/6A4+23 *ASAP6+.4+C+,,S23 *ASAP.A)0-6PASS;-.023 *ASAPS9++T)A6+23 *ASAPSP+,,)U67+.23 *ASAPST./P)U67+.S23 *ASAPSU678C+,,C-,-.23 *ASAPSU6785-)TC-,-.23 .emarks on calculation and distri<ution

http:>>www.asap?utilities.com

DDD <ack

BA00/)C

###
Color +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 Cell color inde number: Formula used in column B: +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

DDD <ack

BA00/)C

###

8ou can use this function to count the num<er of cells that have a certain color. The first parameter is the ran@e to <e searchedE the second parameter is either the cell that has the color 2rec

! am"le #
Use the *ASAPC-U)T78C+,,C-,-.23 formula to count the num<er of yellow cells: ;e use 71$ in the formula to have the formula count the cells with the same cell color as cell 71$ $esult: Formula used in B#%: !rr:&## +rr:&11 #% 1 "! 1$! '# && 1 (# !( #$ %$ 1# (& '% "1 1& '1 (! 11 &' & 1" #! % 1$# %1 #' "( '" 1! % %& 1( %% # 1$& ! !% ($ '( %! !$ (( '' ## #& "" # !1 ' 1$ # "

1$1 &% (1 &1 ("

! am"le '
Use the *ASAPC-U)T78C+,,C-,-.23 formula to count the num<er of @reen cells: The colorindex num<er for the @reen color is % $esult: Formula used in B'(: !rr:&## +rr:&11 1! &! 1 #1 (! &1 ! # &! 1% !! ! 1!# &# !'1 1! !'! (& 1 (! " # 1#' !!$ !1 "$ % ! !' % 1 111 1 !%% %% %% 1$# 1'1 #& 1# $ 11" '' 1$1 1 11! !! #' # ' (% &1 ! 1&( !&( 1%1 $ 1"' 1( 11%

er the cell that has the color 2recommended3E or +xcelFs colornum<er.

cell color as cell 71$

DDD <ack

BA00/)C

###

8ou can use this function to count the num<er of cells that have a certain font color. The first parameter is the ran@e to <e searchedE the second parameter is either the cell that has the fontcolor

! am"le #
Count the num<er of cells with a <lue font: ;e use 71$ as a reference in the formula to have the formula count the cells with the same cell color as cell $esult: Formula used in B#%: !rr:&## +rr:&11 () #* -' #%' ,( && *# +( '+ (% )% #( +& ,) -# #& ,# +' ## &, &* #(' ) #%( )# (, -+ * ,** #%# &) +# &# +#' *) )& #+ )) ( #%& '* ') +% ,+ )' '% ++ ,, (( (& -*( '# ,* #% (* -

! am"le '
Count the num<er of cells with a red font: The colorindex num<er for the red color * # $esult: Formula used in B'(: !rr:&## +rr:&11 #' &' # (# +' &# ' ( &' #)* '' '* #'( &( ',# #'* ',' +& *# +' ( #(, ''% '# -% *) ' ', *) #* ### # ')) )) )) #%( #,# (& #( % ##,, #%# #* ##' '' (, ( , +) &# ' #&+ '&+ #)# % #-, #+ ##)

er the cell that has the fontcolor 2recommended3E or +xcelFs colornum<er.

with the same cell color as cell 71$

DDD <ack

BA00/)C

#A../01
2e t Test 7astien 6ensink <lah <lah <lah 6icrosoft +xcel !$1$ 1& 2e t keyword1E keyword!E keyword# aE <E cE d aG<GcGdGe 11% http:>>www.test.com>t>test The formula is Case sensitive Cc 3ow many s"aces1 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 Character to count 4 E G 1 > s c Formula used in column C: +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 3ow many times1 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

This way the formula is not Case sensitive: Cc c

+rr:&11

5ou can also use it to count words by countin6 all the s"aces and add #: Use it to count words 3ow many words1 Formula used in column C: how many words are thisC +rr:&11 +rr:&11 and thisC +rr:&11 +rr:&11 now +rr:&11 +rr:&11 Same techni7ue4 but with a workaround if there are double s"aces between the cells Use it to count words 3ow many words1 Formula used in column C: how many words are thisC +rr:&11 +rr:&11 and thisC +rr:&11 +rr:&11 now +rr:&11 +rr:&11

3ow to do this without the use of ASAP Utilities: $ +rr:&11 1 +rr:&11 ! +rr:&11 ! +rr:&11 $ +rr:&11 Formula used in column C: +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

! # % ! % % 1

+rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

+rr:&11

! +rr:&11

& +rr:&11 ! +rr:&11 1 +rr:&11

een the cells & +rr:&11 ! +rr:&11 1 +rr:&11

e use of ASAP Utilities:

DDD <ack

BA00/)C

###
8ou can use this function to count the num<er of colored cells 2so called HshadesH3.

! am"le
Use the *ASAPC-U)TS9A0+S23 formula to count the num<er colored cells. $esult: Formula used in B,: !rr:&## +rr:&11 #% 1 "! 1$! '# &! 1 #1 (! &1 1 (# !( #$ %$ # &! 1% !! ! (& '% "1 1& '1 &# !'1 1! !'! (& 11 &' & 1" #! (! " # 1#' !!$ 1$# %1 #' "( "$ % ! !' % 1! % %& 1( %% 1'1 #& 1# $ 11" 1$& ! !% ($ '( 1$1 1 11! !! #' !$ (( '' ## #& ' (% &1 ! 1&( # !1 ' 1$ # 1%1 $ 1"' 1( 11%

1$1 &% (1 &1 111 1 !%% %% %%

DDD <ack

BA00/)C

#A../01
.eturns the file name from a full path and filename.

! am"le
Full "ath and filename 0:AProIectsAArchiveAClient 1A7alance.xls AA5SAProIectsAArchiveAClient 1A7alance.xls 0:AProIectsAClient 1%ASales.xlsx 0:AProIectsAClient 1%APrices to <e updates.xlsm $esult: +rr:&11 +rr:&11 +rr:&11 +rr:&11

Formula used in column C +rr:&11 +rr:&11 +rr:&11 +rr:&11

DDD <ack

BA00/)C

#A../01
.eturns the folder name from a com<ined filepath and filename.

! am"le
Full "ath and filename 0:AProIectsAArchiveAClient 1A7alance.xls AA5SAProIectsAArchiveAClient 1A7alance.xls 0:AProIectsAClient 1%ASales.xlsx 0:AProIectsAClient 1%APrices to <e updates.xlsm $esult: +rr:&11 +rr:&11 +rr:&11 +rr:&11

Formula used in column C +rr:&11 +rr:&11 +rr:&11 +rr:&11

DDD <ack

BA00/)C

#A../01
.eturns the num<ers from a text strin@. The result is a num<er. Therefore leadin@ Jeros are not preserved.

! am"le
8alue $11 ,7 A.T.%('&% P.-0$$$%%#1 0!#!S+ 7+?&% "( ?"$?!(%?#"'%?!. ),. 1(#.$#."&% 8ear pu<lished: 1" % /S-"$$1 $esult: +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

are not preserved.

Formula used in column C +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

DDD <ack

BA00/)C

#A../01
.eturns the name of your work<ook. This is the name of the work<ook without the filepath 2folder3.

! am"le
The name of this example work<ook: $esult: BA00/)C Formula used abo9e +rr:&11

filepath 2folder3.

DDD <ack

BA00/)C

#A../01
.eturns the filepath 2the folder3 where your work<ook is stored.

! am"le
The folder of this example work<ook: $esult: BA00/)C Formula used abo9e +rr:&11

DDD <ack

BA00/)C

#A../01
.eturns the value of one of the <uilt?in document properties for the current work<ook. 8ou can refer to document properties either <y index value or <y their +n@lish name.

! am"le
1 ! # % & ( " 1$ 11 1! 1 !$ !1 !" Pro"erty Title Su<Iect Author :eywords Comments ,ast Author Application )ame ,ast Print 0ate Creation 0ate ,ast Save Time Cate@ory 6ana@er Company 9yperlink 7ase

lue of one of the <uilt?in document properties for the current work<ook. o document properties either <y index value or <y their +n@lish name.

$esult: +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

Formula used in column C +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

DDD <ack

BA00/)C

#A../01
2e t colored Blue $ed .ark 6rey :reen ;ran6e <i6hter 6rey Amsterdam Athens Berlin Bern Brussels Buda"est Co"enha6en .ublin 3elsinki <ondon <u embour6 Madrid Moscow ;slo Paris Pra6ue $eyk=a9>k $ome Stockholm 8ienna Font color inde number: +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 Formula used in column C: +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

DDD <ack

BA00/)C

#A../01 ! am"le
The folder of this example work<ook: $esult: BA00/)C Formula used abo9e +rr:&11

.eturns the full filename of your work<ook. This is the name of the work<ook includin@ the folder 2filepath3 where it is save

older 2filepath3 where it is saved.

DDD <ack

BA00/)C

#A../01
.eturns the comment?text from a cell.

! am"le
Cells with comment Test &$$ 1"K #& Comment contents: +rr:&11 +rr:&11 +rr:&11 +rr:&11

Formula used in column . +rr:&11 +rr:&11 +rr:&11 +rr:&11

DDD <ack

BA00/)C

#A../01

.eturns the 2su<3domain from a @iven hyperlink 2we<site address>url3. This can <e useful if you are for example analyJin@ we<site stats to Luickly see which refers come from the s

! am"le without "rotocol


8alue $esult http:>>www.asap?utilities.com +rr:&11 http:>>www.asap?utilities.com>asap?utilities?excel?tools?tip.phpCtip*!&"Mutilities*"(BASAP4+T0-6A/) +rr:&11 http:>><lo@s.msdn.com><>excel> +rr:&11 http:>>twitter.com>BN>msexcel +rr:&11 http:>>twitter.com>BN>ASAPUtilities +rr:&11 http:>>twitter.com>BN>ASAPUtilities +rr:&11 ftp:>>ftp.microsoft.com +rr:&11

! am"le with "rotocol


8alue $esult http:>>www.asap?utilities.com +rr:&11 http:>>www.asap?utilities.com>asap?utilities?excel?tools?tip.phpCtip*!&"Mutilities*"(BASAP4+T0-6A/) +rr:&11 http:>><lo@s.msdn.com><>excel> +rr:&11 http:>>twitter.com>BN>msexcel +rr:&11 +rr:&11 http:>>twitter.com>BN>ASAPUtilities +rr:&11 ftp:>>ftp.microsoft.com

ee which refers come from the same domain.

Formula used in column . +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

Formula used in column . +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

DDD <ack

BA00/)C

#A../01
.eturns the name of the font in a cell.

! am"le
8alue Test value Test value Test value Test value Test value Test value Test value $esult +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 Formula used in column . +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

DDD <ack

BA00/)C

#A../01
.eturns the name of the font in a cell. 8ou can also use this to sort <y font?siJe.

! am"le
8alue
Test value

Test value

Test value

Test value

$esult +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

Formula used in column . +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

Test value

Test value

DDD <ack

BA00/)C

###
.eturns the formula of a cell. This formula is used allover this work<ook to show you which formulas are used

! am"le
Formula 1%% "! 1$(! &#' 1&>5e<>1% click pretty lar@e <lah <lah <lah 1!& $esult +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

Formula used in column . +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

DDD <ack

BA00/)C

###

.eturns the formula of a cell in the HinternationalH 2+n@lish3 notation. The +n@lish names for the formulas will <e usedE the list separator is a comma and the decimal separator is a The lar@est resources on the /nternet on +xcel are in +n@lish. -n these we<sites the HinternationalH formulas

! am"le
Formula 1%% %$% &% !(% 1&>5e<>1% click not so lar@e <lah <lah <lah 1!& $esult +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

omma and the decimal separator is a point. we<sites the HinternationalH formulas and style are used. /f you use a local version of +xcel you can now easily create an HinternationalH

Formula used in column . +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

w easily create an HinternationalH example of the formula you used.

DDD <ack

BA00/)C

#A../01

.eturns the 2su<3domain from a @iven hyperlink 2we<site address>url3. This can <e useful if you are for example analyJin@ we<site stats to Luickly see which refers come from the s

! am"le
8alue with hy"erlink click here or click here official excel <lo@ 6S +xcel on Twitter ASAP Utilities on Twitter 8alue with hy"erlink in this workbook: T-P 7ack to the index :et the used hy"erlink: +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

:et the used hy"erlink: +rr:&11 +rr:&11

ee which refers come from the same domain.

Formula used in column . +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

Formula used in column . +rr:&11 +rr:&11

DDD <ack

BA00/)C

#A../01
.eturns the num<er format of a cell.

! am"le
8alue 1E!&$ Test Text !>1&>!$1% !>1&>!$1% !#:%' O &E$$$.$$ P&E$$$.$$ $$1! 1K !&$ 2!&$3 $esult +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

Formula used in column . +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

DDD <ack

BA00/)C

#A../01
.eturns T.U+ if the cell is <old or 5A,S+ if it isnFt.

! am"le
8alue sort sort code php sort sort array <u<<le sort Iava sort sLl sort sort by mysLl sort Iavascript sort perl sort sort of php sort array sort by color <ank sort code sort arraylist insertion sort selection sort list sort sort al6orithm data6rid sort mysLl sort <y sLl sort <y mer@e sort cQQ sort sort datatable 7uick sort 9ba sort sort on $esult +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 Formula used in column . +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

2otal bold cells:

+rr:&11

DDD <ack

BA00/)C

#A../01
.eturns T.U+ if the cell has a formula or 5A,S+ if it doesnFt.

! am"le
8alue or formula ("K 1(K #K &K 1$K %$K %1K " K &!K #1K "'K &K ''K (%K ( K "(K '!K '(K %$K ((K #%K &'K "1K #!K &%K (1K %$K (K &K $esult +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 Formula used in column . +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

2otal formula cells:

+rr:&11

DDD <ack

BA00/)C

#A../01
/nserts the specified ima@e as an o<Iect and puts it at the left?top of your cell.

To update the ima@eE you can replace the formula with a new ima@e name. To remove the ima@e you have to remove <oth the formula and the ima@e. 2The ima@e isnFt removed if only t 8ou have to press ControlQAltQ5" to have the formula recalculated.

! am"le
/ma6e "ath and file name or url http:>>www.asap?utilities.com>press><ox?shot?asap?utilities?left?an@le?<i@.pn@

http:>>www.asap?utilities.com>press>lo@o?asap?utilities?small?!$$px.pn@

C:A;indowsA;e<A;allpaperA;indowsAim@$.Ip@

C:A;/)0-;SA;+7A;A,,PAP+.A;/)0-;SA/64$.RP4

C:A;indowsASoap 7u<<les.<mp

r cell.

me. @e. 2The ima@e isnFt removed if only the formula is removed.3

$esult +rr:&11

Formula used in column . +rr:&11

+rr:&11

+rr:&11

+rr:&11

+rr:&11

+rr:&11

+rr:&11

+rr:&11

+rr:&11

DDD <ack

BA00/)C

#A../01

Roins several text strin@s into one text strin@. An easy alterative for the +xcel *C-)CAT+)AT+23 function. The <enefit of this ASAP Utilities function: ? 8ou can specify a ran@e to IoinE for example HA1:41H. ? The num<er format of the values will <e used. 5or example if a cell has the value H1!.!#$(!H and the num<er format is to display only one decimal then th ? 8ou only have to specify a delimiter once. ? 7y default empty cells will <e i@nored.

! am"le #
8alues 1> $s &.(f /S-: %$$ 1!.$mm )ovem<er 1!E !$1$ $esult +rr:&11 Formula used abo9e +rr:&11

! am"le '
8alues apple pear <anana oran@e $esult +rr:&11 Formula used abo9e +rr:&11

! am"le (
Payment is due: )ovem<er 11E !$1$ )ovem<er 1 E !$1$ )ovem<er !&E !$1$ 0ecem<er !E !$1$ $esult +rr:&11 +rr:&11 +rr:&11 +rr:&11 Formula used +rr:&11 +rr:&11 +rr:&11 +rr:&11

! am"le )
8alues 7+AS 7+S/ AAT: 75A6 CC-6P 7)9) AC,S 7/-6 CC.0 7778 75+) 774/ C7U: 7/-.8 $esult +rr:&11 Formula used abo9e +rr:&11

/t would re7uire a lon6 formula without ASAP Utilities 7+ASE 7+S/E AAT:E 75A6E CC-6PE 7)9)E AC,SE 7/-6E CC.0E 7778E 7 Formula used abo9e +rr:&11

7AS/ 7C/S AA,A 75.+ 7+/T 7:); 7.:C 7S1T ACTT A7/= CA,0 7.:S A5A6 AC6+ CA5+; A7A1

t of this ASAP Utilities function:

is to display only one decimal then this function uses value as H1!.!H.

Formula used +rr:&11 +rr:&11 +rr:&11 +rr:&11

ut ASAP Utilities )9)E AC,SE 7/-6E CC.0E 7778E 75+)E 774/E C7U:E 7/-.8E 7AS/E 7C/SE AA,AE 75.+E 7+/TE 7:);E 7.:CE 7S1TE ACTTE A7/=E

7.:CE 7S1TE ACTTE A7/=E CA,0E 7.:SE A5A6E AC6+E CA5+;E A7A1

DDD <ack

BA00/)C

#A../01
.eturns a random strin@ that can <e used as a password. The minimum len@ht is E the maximum len@th is #!('(U

! am"le #
Password +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 <en6th BA00/)C BA00/)C +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

! am"le '4 without s"ecial characters


Password +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 <en6th +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

<e used as a password. imum len@th is #!('(U

Formula used in column C +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

s"ecial characters
Formula used in column C +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

DDD <ack

BA00/)C

#A../01

.eturns the name of the worksheet this formula is used on. ;e use this also to dynamically create the hyperlinks to the formulas on our we<site in the link on each work 5or example in the link in cell 71 on the worksheet ASAP.A)0-6PASS;-.0 we use the followin@ formula +rr:&11 which results in the followin@ hyperlink address: http:>>www.asap?utilities.com>asap?utilities?excel?tools?tip.phpCtip*!&"Mutilities*"(BASAP.A)0-6PASS;-

! am"le
The name of this example work<ook: $esult: BA00/)C Formula used abo9e +rr:&11

e in the link on each worksheet. e use the followin@ formula:

BASAP.A)0-6PASS;-.0

DDD <ack

BA00/)C

#A../01
.eturns a spelled?out num<er or amount in the lan@ua@es +n@lishE 0utch or 4erman

! am"le #4 no currency
8alue 1!&.$$ "."" 1!&.$$ "."" 1!&.$$ "."" 1!&.$$ "."" 1!&.$$ "."" 1!&.$$ "."" $esult +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

! am"le '4 with currency


8alue 1!&.$$ "."" 1!&.$$ "."" 1!&.$$ "."" 1!&.$$ "."" 1!&.$$ 1!&.$$ "."" 1!&.$$ "."" 1!&.$$ "."" 1!&.$$ "."" 1!&.$$ $esult +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

Formula used in column . +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

Formula used in column . +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

DDD <ack

BA00/)C

#A../01
.emoves all num<ers from a text strin@ and removes all spaces at the <e@innin@ and end of the result.

! am"le
8alue $11 ,7 A.T.%('&% P.-0$$$%%#1 ==+& /S-"$$1 Capital Sheet 6etal /nc #!$!$ Capitol City 1'#'1 Carreker Corporation $1&&$" $esult: +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

all spaces at the <e@innin@ and end of the result.

Formula used in column C +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11 +rr:&11

DDD <ack

BA00/)C

###
Calculates the SU6 of the cells that have a certain fill color.

! am"le #
Use the ASAPSU678C+,,C-,-.23 formula to sum the values of the yellow cells: ;e use 71$ in the formula to have the formula count the cells with the same cell color as cell 71$ $esult: Formula used in B-: !rr:&## +rr:&11 #% 1 "! 1$! '# && 1 (# !( #$ %$ 1# (& '% "1 1& '1 (! 11 &' & 1" #! % 1$# %1 #' "( '" 1! % %& 1( %% # 1$& ! !% ($ '( %! !$ (( '' ## #& "" # !1 ' 1$ # "

1$1 &% (1 &1 ("

! am"le '
Use the *ASAPSU678C+,,C-,-.23 formula to sum the values of the @reen cells: The colorindex num<er for the @reen color is % $esult: Formula used in B'': !rr:&## +rr:&11 1! &! 1 #1 (! &1 ! # &! 1% !! ! 1!# &# !'1 1! !'! (& 1 (! " # 1#' !!$ !1 "$ % ! !' % 1 111 1 !%% %% %% 1$# 1'1 #& 1# $ 11" '' 1$1 1 11! !! #' # ' (% &1 ! 1&( !&( 1%1 $ 1"' 1( 11%

cell color as cell 71$ ,ook at the formula you would normally have to use in +xcel: )-+ +rr:&11

And now ima@e that the colors have chan@ed and you need to update the formula with the method used a<o

ula with the method used a<oveU

DDD <ack

BA00/)C

###

8ou can use this function to count the num<er of cells that have a certain font color. The first parameter is the ran@e to <e searchedE the second parameter is either the cell that has the fontcolor

! am"le #
Use the *ASAPSU6785-)TC-,-.23 formula to SU6 the values of cells with a <lue font: ;e use 71$ in the formula to have the formula count the cells with the same cell color as cell 71$ $esult: Formula used in B#% !rr:&## +rr:&11 () #* -' #%' ,( && *# +( '+ (% )% #( +& ,) -# #& ,# +' ## &, &* #(' ) #%( )# (, -+ * ,** #%# &) +# &# +#' *) )& #+ )) ( #%& '* ') +% ,+ )' '% ++ ,, (( (& -*( '# ,* #% (* -

! am"le '
Use the *ASAPSU6785-)TC-,-.23 formula to SU6 the values of cells with a red font: The colorindex num<er for the red color * # $esult: Formula used in B'(: !rr:&## +rr:&11 #' &' # (# +' &# ' ( &' #)* '' '* #'( &( ',# #'* ',' +& *# +' ( #(, ''% '# -% *) ' ', *) #* ### # ')) )) )) #%( #,# (& #( % ##,, #%# #* ##' '' (, ( , +) &# ' #&+ '&+ #)# % #-, #+ ##)

er the cell that has the fontcolor 2recommended3E or +xcelFs colornum<er.

th a <lue font: cell color as cell 71$

,ook at the formula you would normally have to use in +xcel: *'% +rr:&11

And now ima@e that the colors have chan@ed and you need to update the formula with the method used a<ove

th a red font:

ula with the method used a<oveU

DDD <ack

Вам также может понравиться