Read CR as negative and DR as positive
Turn 125.50 CR into -125.5 and 310.20 DR into 310.2.
Download Excel templateMicrosoft 365
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | TEXTAFTER(A8," ",-1) | Takes the marker after the last space, called k. | "CR" |
| 2 | NUMBERVALUE( … ) | Reads the amount before that space as a number, n. | 125.5 |
| 3 | SWITCH(k, … ) | Makes CR amounts negative and keeps DR positive. | -125.5 |
| 4 | "Review CR/DR marker" | Shown when the marker isn't CR or DR. | Not used for row 8 |
| 5 | LET( … ) | Names the marker and amount, then gives the answer. | -125.5 |
A period marks decimals. The amounts are made-up.
=LET(k,TEXTAFTER(A8," ",-1),n,NUMBERVALUE(TEXTBEFORE(A8," ",-1),".",","),SWITCH(k,"CR",-n,"DR",n,"Review CR/DR marker"))How to use it
Yellow bar at the top? Click Enable Editing.
- See it work. The Example tab shows 20 made-up examples with the formula already in.
- Use your own amounts. Paste amounts like 125.50 CR into the green column of the Template tab. The numbers fill in by themselves.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
Use this only when your source says CR is negative and DR is positive. Some systems use the opposite.
Microsoft's help: NUMBERVALUE function
OTHER ROUTES YOU MIGHT LIKE

Read exact 1,234.50 amount text
1,234.50 → 1234.5; 1,23.00 → Review amount pattern
Get the template →
Turn cents into amounts, flag part cents
12345 cents → 123.45
Get the template →
Read amount text 00000123M as -12.34
00000123M → -12.34
Get the template →
Show $1,234.50 instead of 1234.5 in a mail merge
1234.5 → $1,234.50
Take this route →