Contact

FIND Function in ONLYOFFICE Spreadsheet Editor: Formula and Examples

Text and Data Intermediate ONLYOFFICE Spreadsheet Editor

Use FIND and FINDB in ONLYOFFICE with worked ASCII examples and clear byte-contract, source and migration cautions.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

=FIND("-",A2) returns the expected position 4 when A2 contains ORD-4821-ON. FIND searches for an exact-case substring and returns its one-based starting position. It does not return the matching text or validate the complete identifier.

Availability and version history

  • Introduced: The original introduction version and date are not established by the checked references.
  • Availability: Documented in current ONLYOFFICE Spreadsheet Editor help; no final supported-version endpoint is established.
  • Scope: Desktop and Docs release separately. Older builds, mobile clients, localized parsing and imported-workbook parity remain separately unverified.
  • Checked: October 14, 2026, against the official FIND reference, vendor illustration and pinned calculation source. ASCII examples were independently calculated; no native execution of these extraction formulas was performed.

Syntax and case-sensitive matching

FIND(find_text, within_text, [start_num])

The official reference requires the search string and source string. The optional third argument chooses where to start; omitting it starts at the beginning. Brackets describe optional syntax and are not entered.

Matching is case-sensitive. If nothing matches, the documented result is #VALUE!. SEARCH instead ignores capitalization. FIND’s returned position still refers to the original string when a later starting position is supplied; the pinned calculation source adds the skipped offset back before returning its one-based result.

On a separate VendorFind sheet, enter the text Online Office in A1 and =FIND("line",A1) in C1. The official illustration shows 3. O and n occupy the first two positions; line begins at the third. This is vendor evidence rather than a new native observation.

Preserve the original eight text records

Create TextSearch, reserving A1:H12. Enter Source text in A1 and the following exact text values in A2:A9. Type no surrounding quote characters or formatting backticks.

Cell Source text
A2 ORD-4821-ON
A3 PO-1047-Toronto
A4 red-red-red
A5 INV|2026|0412
A6 INV-2025-0412
A7 sales@Example.com
A8 ABC-xyz-ABC
A9 PO-0008-WEST

For A5, enter actual vertical bars: INV|2026|0412. The table’s HTML escape only keeps the Markdown columns aligned. These are ordinary ASCII text examples; numerical conversion of fields such as 0008 would discard information.

Enter the six original searches

Each row below explicitly identifies its source. The result rows do not imply that every formula searches the A cell on the same row.

Result cell Formula Expected result
B2 =FIND("-",A2) 4
B3 =FIND("-",A2,5) 9
B4 =FIND("ON",A2) 10
B5 =FIND("on",A2) #VALUE!
B6 =FIND("Toronto",A3) 9
B7 =FIND("ABC",A8,2) 9

The second formula starts after the first hyphen and finds the one at position 9. The ON/on pair shows why capitalization is part of the search. The ABC query skips the occurrence at position 1 and finds the second at 9.

Keep B2:B7 intact. Put =SEARCH("on",A2,1) in D2 for the case-insensitive expected position 10. Put =FIND("Toronto",A9) in D3 for #VALUE!, because that label is absent.

Repeated words and different separators

Use the remaining free cells for these independent controls:

Cell Formula Expected result
D5 =FIND("red",A4) 1
D6 =FIND("red",A4,2) 5
D7 =FIND("red",A4,6) 9
F2 `=FIND(" “,A5)`
F3 `=FIND(” “,A5,5)`
F4 =MID(A5,F2+1,F3-F2-1) text 2026
F6 =MID(A6,5,4) text 2025
H2 =FIND("@",A7) 6
H3 =MID(A7,H2+1,LEN(A7)-H2) Example.com

FIND locates each requested literal separator; it does not infer that one string is an invoice or another is an email address. The domain-like text in H3 is an extraction example, not an email-validity check. MID and LEN supply the substring and its length.

Advanced: inspect a complete delimiter chain

Create ParsedOrders, reserving A1:F8. Put Code, First hyphen, Second hyphen, Middle, Tail and Prefix in A1:F1. Enter ORD-4821-ON, PO-1047-Toronto and PO-0008-WEST in A2:A4.

Enter these formulas in row 2 and fill B2:F2 down through row 4:

B2: =FIND("-",A2)
C2: =FIND("-",A2,B2+1)
D2: =MID(A2,B2+1,C2-B2-1)
E2: =MID(A2,C2+1,LEN(A2)-C2)
F2: =LEFT(A2,B2-1)
Row B C D: text E: text F: text
2 4 9 4821 ON ORD
3 3 8 1047 Toronto PO
4 3 8 0008 WEST PO

In D6 put the original single-cell extraction:

=MID(A2,FIND("-",A2)+1,FIND("-",A2,FIND("-",A2)+1)-FIND("-",A2)-1)

It has the same expected text 4821 as D2. LEFT gives the prefix without fixed prefix-length assumptions. The helper columns make each position and count easier to inspect than the nested version.

Limits and troubleshooting

Both hyphens must exist for that parser. On a copy named ExtraHyphen, change A2 to ORD-4821-ON-OLD. The first two positions remain 4 and 9, and the middle field stays 4821, but the tail becomes ON-OLD. Extracting fields does not establish the exact number of fields or permitted contents.

Keep case mismatches, missing text and unexpected punctuation visible when investigating a failure. IFERROR can supply a fallback, but does not prove that a code is valid or explain which component failed.

The help also describes FINDB for byte-oriented language scenarios. That is a separately named function, not a reason to assume all non-ASCII positions match FIND. The source snapshot and these ASCII exercises do not establish native Unicode, localized parsing, empty-query, fractional-position or invalid-position behavior across builds. Use the target editor’s displayed syntax when transferring the English comma-separated formulas.

FINDB: documented byte-oriented variant

FINDB(find_text, within_text, [start_num])

The first two arguments are required; start_num is optional and defaults to the beginning. Matching is case-sensitive. Positions in the ASCII controls are one-based and remain relative to the full source string.

Documentation and implementation are different evidence

The official FIND/FINDB reference describes FINDB for byte-oriented or double-byte-character-set language use. However, the pinned FINDB implementation directly inherits FIND, without a separate calculation override in that definition. This is a documented-contract versus inspected-implementation discrepancy, not proof that all clients implement a separate DBCS byte algorithm.

The added coverage was checked on October 19, 2026. Neither the first supported version nor a last supported version is established. The source revision is evidence about that revision, not native execution, a universal Unicode rule or cross-version compatibility.

Worked ASCII controls for FINDB

On a separate FindbControls sheet, enter the following formulas into individual empty cells. They contain their inputs, so they do not overwrite the earlier worksheets. Results are independently reasoned from ordinary ASCII and the inherited calculation, not observations from a running ONLYOFFICE editor. Text results remain text; “empty text” means a formula result of zero length.

Formula Expected result Explanation
=FINDB("-","ORD-4821-ON") 4 The first hyphen is at position 4.
=FINDB("-","ORD-4821-ON",5) 9 Starting at 5 finds the second hyphen at 9.
=FINDB("on","ORD-4821-ON") #VALUE! Lower-case on does not match upper-case ON.
=FINDB("Z","ABC") #VALUE! The requested letter is absent.
=FINDB("A","ABC",0) #VALUE! The inspected implementation rejects a nonpositive start.

A case-only change from ON to on fails in the third control. For a case-insensitive search use SEARCHB, while retaining the same byte-contract caution.

Migrating a workbook that uses FINDB

Keep a copy of the original formula and its source text. Compare the ASCII controls first, then separately check the real workbook’s Japanese, Chinese or Korean text, mixed-script strings, emoji and combining marks in the intended editor/build and locale. Record actual results instead of deriving them from these ASCII examples.

Do not equate the B suffix with UTF-8 file size, display width or user-perceived characters, and do not silently replace FINDB with FIND in a workbook whose author depended on byte positions. Matching names and inherited code do not establish import/export parity. Confirm formula separators and language in the destination editor; fractional counts, type conversions and unlisted error cases remain outside this evidence.