REPT
Supported, behaves as documentedCategory: Text · Last tested 2026-07-04
Support matrix
| Engine | Documented | Live-tested | Verdict |
|---|---|---|---|
| Excel | Yes | Not yet | n/a |
| Google Sheets | Yes | Not yet | n/a |
| LibreOffice Calc | Yes | Yes (24.2.7.2, 2026-07-04) | Supported, behaves as documented |
Executed test cases
LibreOffice Calc 24.2.7.2 (tested 2026-07-04)
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =REPT("ab",3) | Basic repetition | ababab | ababab | Matched |
| =REPT("ab",0) | number_times=0 returns an empty string, not an error | Microsoft docs: "If number_times is 0 (zero), REPT returns \"\" (empty text)." Source: https://support.microsoft.com/en-us/office/rept-function-04c4d778-e712-43b4-9c15-d656582bb061 |
Matched | |
| =REPT("ab",-1) | A negative number_times is invalid -> #VALUE! | #VALUE! | #VALUE! Documented behavior: REPT does not accept negative number_times and returns #VALUE! (per Microsoft's REPT reference and its documented remarks on the number_times argument) |
Matched |
| =REPT("ab",2.9) | A non-integer number_times is truncated toward zero before repeating | abab | abab Documented: "If number_times is not an integer, it is truncated." |
Matched |
Docs & syntax
- Excel: official documentation
- Google Sheets: official documentation
- LibreOffice Calc: official documentation