ExcelFlux

LEFTB function

the leftmost characters from a text value.

Text · Guided Excel example

Where can you use it?

Data preparation and reporting teams. Use this group to clean, split or reformat IDs, names and descriptions before using them in reports.

Scenario in the workbook

Take the opening two bytes in a legacy formula. These ASCII inputs return two characters.

A worked example from the workbook

RowA
6Code
7ABC-X
8AB-42
9SKU-X
Record 1
=LEFTB(A7,2)

Illustrative outputAB

See the inputs and instructions for all 3 examples

Worked examples

Take the opening two bytes in a legacy formula. These ASCII inputs return two characters.

Column F provides expressions as text. Satisfy the stated requirements, then paste into an empty Excel cell and compare with column G. The result was not verified in desktop Excel here.

Row A
6 Code
7 ABC-X
8 AB-42
9 SKU-X
Trial Expression Sample output
Record 1 =LEFTB(A7,2) AB
Record 2 =LEFTB(A8,2) AB
Record 3 =LEFTB(A9,2) SK
Microsoft Excel reference