MID
Supported, behaves as documentedCategory: Text · Last tested 2026-08-06
Real, executed compatibility results for the MID function across Microsoft Excel, Google Sheets, and LibreOffice Calc — verified by actually running it. Syntax and links to each vendor’s official documentation are below.
Support matrix
| Engine | Documented | Live-tested | Verdict |
|---|---|---|---|
| Excel | Yes | Not yet | n/a |
| Google Sheets | Yes | Not yet | n/a |
| LibreOffice Calc | Yes | Yes (25.8.7.3, 2026-08-06) | Supported, behaves as documented |
LibreOffice version history
We executed the same test cases under each LibreOffice release to show exactly when MID’s support changed — not documentation claims, real results.
| LibreOffice version | Verdict | Tested |
|---|---|---|
| 24.2.0.3 | Supported, behaves as documented | 2026-07-19 |
| 24.8.7.2 | Supported, behaves as documented | 2026-07-19 |
| 25.2.0.3 | Supported, behaves as documented | 2026-07-24 |
| 25.8.7.3 | Supported, behaves as documented | 2026-08-06 |
Executed test cases
LibreOffice Calc 25.8.7.3 (tested 2026-08-06)
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =MID(A1,2,3) | Basic extraction of 3 characters starting at position 2 | xce | xce | Matched |
| =MID(A1,20,5) | start_num beyond the string length returns an empty string, not an error | Microsoft docs: "If start_num is greater than the length of text, MID returns \"\" (empty text)." Source: https://support.microsoft.com/en-us/office/mid-midb-functions-d5f9e25c-d7d6-472e-b568-4ecb12433028 |
Matched | |
| =MID(A1,3,100) | num_chars larger than the number of characters remaining returns just what's left, not an error or padded result | cel | cel | Matched |
| =MID(A1,1,5) | start_num=1 with num_chars covering the whole string returns the whole string | Excel | Excel | Matched |
Docs & syntax
- Excel: official documentation
- Google Sheets: official documentation
- LibreOffice Calc: official documentation
Related how-to recipes
- How to capitalize only the first letter (sentence case)
- How to extract the domain from an email address
- How to extract the last name from a full name
- How to extract numbers from text in a cell
- How to extract text between two characters
- How to flip "Last, First" into "First Last"
- How to extract the nth word from a cell
- How to use LEFT, MID, and RIGHT
- How to remove text before a character
- How to reverse a text string