FINDB(search_for, text_to_search, [starting_at])One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
search_for:
The substring or character that you want to find within the text_to_search.
text_to_search:
The text string or cell reference in which you want to search for the search_for substring.
starting_at:
(Optional) The position in the text_to_search from which to start the search. If omitted, the search begins at the first character.
The FINDB function in Google Sheets is a text function used to find the position of a substring within a string, specifically when dealing with byte sequences. This function is particularly useful when working with double-byte character sets (DBCS), such as those used in languages like Chinese, Japanese, and Korean. Unlike the standard FIND function, which operates on characters, FINDB counts bytes, making it essential for accurate string manipulation in multi-byte languages.
In simpler terms, FINDB allows you to locate where a specific sequence of bytes appears within a larger string, which is crucial for text processing in certain languages.
Imagine you are working with a dataset that includes product descriptions in both English and Chinese:
| ProductID | Description |
|---|---|
| 1 | Widget A (小部件A) |
| 2 | Widget B (小部件B) |
| 3 | Widget C (小部件C) |
You want to find the position of the Chinese substring "小部件" in each product description.
To achieve this, you would use the FINDB function as follows:
=FINDB("小部件", B2)In this formula:
"小部件" is the substring you are searching for.B2 is the cell containing the product description.When you apply the FINDB formula to the Product Descriptions Table, the output would look like this:
| ProductID | Description | Position |
|---|---|---|
| 1 | Widget A (小部件A) | 10 |
| 2 | Widget B (小部件B) | 10 |
| 3 | Widget C (小部件C) | 10 |
In this case, the FINDB function returns 10 for each product description, indicating that the substring "小部件" starts at the 10th byte of the string.
FINDB is beneficial because it allows for precise text searching in languages that utilize multi-byte characters. It ensures that you can accurately locate and manipulate text data without miscounting characters due to byte differences. This function is particularly important for developers and analysts working with international datasets.
FINDB is an essential function for anyone dealing with international data, providing a powerful way to enhance text processing capabilities in Google Sheets.
Happy spreadsheeting!
You have a list of product codes in Column A and their descriptions in Column B. By using the FINDB formula, you can find the position of a specific character in the product code, helping you extract relevant information for inventory management efficiently.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.