FINDB in WPS Spreadsheet: Locate Text Using One-Based Byte Positions
Locate a substring in WPS’s documented Chinese/Latin byte-count context, with original position checks, explicit search starts and documented errors.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: =FINDB("风","AB春风CD",1) is expected to return 5 in the documented Chinese double-byte context. The result is a numeric position measured from the start of the complete source text.
Syntax and search start
=FINDB(find_text,within_text,start_num)
Find_text is the substring to locate; within_text is the source. Start_num sets where searching begins. The lesson explicitly says the first position is 1 and omission of start_num defaults to 1. The worked formulas below keep it explicit.
The WPS function dialog shown in the lesson identifies FINDB as case-sensitive and says it does not use wildcards. Do not treat the search as a wildcard pattern match. The examples use exactly matching case and ordinary literal text.
Complete position map
For AB春风CD, the positions are A=1, B=2, 春=3–4, 风=5–6, C=7 and D=8 under the lesson’s convention. Therefore:
| Formula | Expected position |
|---|---|
=FINDB("风","AB春风CD",1) |
5 |
=FINDB("C","AB春风CD",1) |
7 |
=FINDB("AB","春风AB",1) |
5 |
Enter text AB春风CD in A2 and put =FINDB("风",A2,1) in B2 to reproduce the first case with a cell reference. The independent count is one unit for A, one for B, two for 春, then one-based position 5 for 风.
The returned number is not a zero-based offset and not necessarily a visible-character ordinal. 风 is the fourth visible character in this string but begins at byte-count position 5.
Advanced use: find a later occurrence
The string 春风春 has two occurrences of 春. Its first begins at position 1 and its second at position 5. =FINDB("春","春风春",3) starts at the beginning of 风, passes that character, and returns 5 for the next 春.
The result remains a position in the original string. It does not restart numbering at 1 at the search-start location. This matters when passing the result to a subsequent position-based extraction or replacement.
For a controlled record layout, FINDB can locate a literal field marker before an extraction. Check that the marker is unique or choose the intended start explicitly. A successful match identifies one occurrence; it does not establish that the record is otherwise valid or that every occurrence has been found.
Documented errors
The lesson states #VALUE! for these conditions:
- The requested text is absent:
=FINDB("Z","AB",1). - Start_num is not greater than zero:
=FINDB("A","AB",0). - Start_num exceeds the source length:
=FINDB("A","AB",3).
These simple ASCII controls avoid any ambiguity about length units. They are documentation-based expectations, not observed runtime outputs.
Empty search text, fractional starts, starts inside a double-count character, error propagation and localized parser details are not established by the examples. No case-insensitive or regular-expression behavior is inferred. The lesson’s lyric illustration is a historical demonstration; this guide uses short original strings so every position can be checked independently.
Counting scope and safe boundaries
These examples use the historical lesson’s Chinese double-byte context: the ordinary Chinese characters shown count as 2, and Latin ASCII letters and digits count as 1. This is a spreadsheet counting convention for the documented context, not a universal UTF-8 byte-length rule. No result is inferred for emoji, supplementary characters, combining marks or every language/locale configuration.
All worked cuts land on complete-character boundaries. A position or length that cuts through one of the two-count Chinese characters is outside these examples; the lesson does not establish a reliable result for that case here. Do not invent a space, replacement character or partial encoded byte as the expected output.
Use the same counting system for positions and lengths. Character positions from a different function are not automatically compatible with byte-counted positions. Confirm the actual client and input convention before applying these formulas to an imported file.
Evidence and version scope
The official WPS Academy FINDB lesson, published 2019-06-03, explicitly applies to WPS Office for Windows Personal. It was reviewed on October 18, 2026. The numeric build, introduction release and last supported version remain unknown. The source does not identify this function as deprecated or retired. Support in Linux, other editions and other platforms is not established by this lesson.
The worked examples are original mathematical expectations based on the official contract and formula illustration. They were not executed in WPS. Historical vendor demonstrations are documentation, not our application tests; no screenshot or runtime precision guarantee is supplied. English names and comma separators follow the lesson. Localized entry, workbook interchange and exact output formatting require verification in the intended client.