fungsi SUBSTITUTE – Microsoft Excel

Hari ini saya menemukan kasus untuk mengganti huruf / karakter tertentu dengan Microsoft Excel secara otomatis

contoh: pada cell A5=”1.1.5.10″ akan diganti menjai B5=”11510″ secara otomatis.

ternyata, rumus yang digunakan adalah SUBSTITUTE yang syntax lengkap dapat dilihat dibawah ini.

SUBSTITUTE(text, old_text, new_text, [instance_num])
The SUBSTITUTE function syntax has the following arguments (argument: A value that provides information to an action, an event, a method, a property, a function, or a procedure.):

Text Required. The text or the reference to a cell containing text for which you want to substitute characters.

Old_text Required. The text you want to replace.

New_text Required. The text you want to replace old_text with.

Instance_num Optional. Specifies which occurrence of old_text you want to replace with new_text. If you specify instance_num, only that instance of old_text is replaced. Otherwise, every occurrence of old_text in text is changed to new_text.

dalam kasus saya di atas maka rumus yang digunakan untuk mengganti text “.” (titik) menjadi spasi kosong adalah sebagai berikut:

B5=SUBSTITUTE(a5,”.”,””;)

maka secara otomatis excel akan mengganti semua karakter “.” (titik) menjadi spasi kosong.

selamat mencoba.

0 0 votes
Article Rating
Subscribe
Notify of
guest
CommentLuv badge
[+] kaskus emoticons nartzco

 
What is 4 + 5 ?
Please leave these two fields as-is:
26 Comments
Inline Feedbacks
View all comments