ID EN
#Text

FIND

Excel Functions 🇮🇩 Bahasa Indonesia

Dapatkan posisi satu string teks di dalam string teks lainnya

Syntax

EXCEL
=FIND(find_text, within_text, [start_num])

Arguments

Parameter Deskripsi
find_text The substring to find.
within_text The text to search within.
start_num [optional] The starting position in the text to search. Optional, defaults to 1.

Return Value

Angka yang mewakili lokasi substring

Details

Fungsi FIND mengembalikan posisi (sebagai angka) dari satu string teks di dalam string teks lainnya. Dalam kasus paling dasar, Anda dapat menggunakan FIND untuk menemukan posisi substring dalam string teks. Anda juga dapat menggunakan FIND untuk memeriksa apakah sel berisi teks tertentu. FIND peka terhadap huruf besar-kecil, artinya dapat membedakan huruf besar dan huruf kecil. Perilaku ini otomatis dan tidak dapat dinonaktifkan. Berikut adalah beberapa poin penting yang perlu diingat tentang fungsi FIND: Catatan: Fungsi SEARCH mirip dengan fungsi FIND. Kedua fungsi mengembalikan posisi satu string teks di dalam string teks lainnya. Namun, tidak seperti FIND, SEARCH tidak peka huruf besar-kecil dan mendukung wildcard. Sintaks dasar fungsi FIND terlihat seperti ini. Fungsi FIND dirancang untuk mencari substr tertentu di dalam string teks

Contoh

Basic syntax

The basic syntax of the FIND function looks like this

EXCEL
FIND(find_text,within_text,[start_num])
Basic example

The FIND function is designed to look inside a text string for a specific substring. When FIND locates the substring, it returns the position of the s

EXCEL
=FIND("p","apple") // returns 2
=FIND("z","apple") // returns #VALUE!
=FIND("apple","Pineapple") // returns 5
Basic example

Note that text values entered directly into FIND must be enclosed in double quotes (""). As mentioned above, the FIND function is always case-sensitiv

EXCEL
=FIND("a","Apple") // returns #VALUE!
=FIND("A","Apple") // returns 1
=FIND("Apple","Pineapple") // returns #VALUE!
Forcing a TRUE or FALSE result

By default, the FIND function returns a number when a search string is found and a #VALUE! error when not. This is inconvenient in cases where you sim

EXCEL
=ISNUMBER(FIND("p","apple")) // returns TRUE
=ISNUMBER(FIND("z","apple")) // returns FALSE
If cell contains

Once you have a TRUE or FALSE result, you can combine the FIND function with the IF function to create "if cell contains" logic. The generic pattern f

EXCEL
=IF(ISNUMBER(FIND(substring,A1)), "Yes", "No")
If cell contains

The formula in C5, copied down, is:

EXCEL
=IF(ISNUMBER(FIND("abc",B5)),"x","")

See Also

SEARCH REPLACE SUBSTITUTE