Miten käytän funktiota SUBSTITUTE Excelissä?
Substitutes occurrences of text with new text. Funktioon SUBSTITUTE kirjoitetaan Text, Old text, New text tässä järjestyksessä, ja valinnaiset argumentit lisätään tarpeen mukaan.
Substitutes occurrences of text with new text.
SUBSTITUTE(text, old_text, new_text, [instance_num])text
PakollinenValue for text.
old_text
PakollinenEnter a text value (wrap with quotes when needed).
new_text
PakollinenEnter a text value (wrap with quotes when needed).
instance_num
ValinnainenEnter a numeric value.
Use SUBSTITUTE to in cell B2 (Name in column B), replace occurrence number 1 of "␣" with an empty string.
| # | AEmployee ID | BName | CEmail | DPayment Amount | EAmount Text |
|---|---|---|---|---|---|
| 2 | E001 | Taro Tanaka | t.tanaka@example.com | 1200 | 1200 |
| 3 | E002 | Hanako Suzuki | h.suzuki@example.com | 980 | 980 |
| 4 | E003 | Ken Sato | k.sato@example.com | 2450 | 2450 |
| 5 | E004 | Aya Takahashi | a.takahashi@example.com | 3000 | 3000 |
| 6 | |||||
| 7 | |||||
| 8 |
Näin käytät sitä (kaava)
=SUBSTITUTE(B2, " ", "", 1)Tulos
TaroTanaka
Substitutes occurrences of text with new text. Funktioon SUBSTITUTE kirjoitetaan Text, Old text, New text tässä järjestyksessä, ja valinnaiset argumentit lisätään tarpeen mukaan.
Tämän sivun harjoituspainikkeesta aloitat suoraan tehtävät funktiosta SUBSTITUTE.
Tärkeimmät argumentit ovat Text, Old text, New text, Instance number. Aloita pakollisista argumenteista ja lisää valinnaiset tarpeen mukaan.