Sample Data
Column A contains text strings. Column B contains numbers representing how many characters to extract.
| Cell | Value |
|---|---|
| A1 | HelloWorld |
| A2 | ExcelFun |
| A3 | Spreadsheet |
| B1 | 5 |
| B2 | 3 |
| B3 | 6 |
Column A contains text strings. Column B contains numbers representing how many characters to extract.
| Cell | Value |
|---|---|
| A1 | HelloWorld |
| A2 | ExcelFun |
| A3 | Spreadsheet |
| B1 | 5 |
| B2 | 3 |
| B3 | 6 |
=LEFT(A1, B1)A B 1 | HelloWorld | 5 | 2 | ExcelFun | 3 | 3 | Spreadsheet| 6 |
A B C 1 | HelloWorld | 5 | Hello | 2 | ExcelFun | 3 | | 3 | Spreadsheet| 6 | |