Text All versions ◉ 33 views

=REPLACEB()

Replaces part of text by bytes (DBCS)

Applies To: Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016
=REPLACEB(old_text, start_num, num_bytes, new_text)
Hover argument names in the table for details.
Output typeText
Popularity41 / 100
VolatileNo
Dynamic ArrayNo
Download sample .xlsx ▦ Try in Playground Dedicated file for this function — safe & lightweight · sample data + live formulas
Share:

⬇ Download Sample Workbook

A dedicated .xlsx for =REPLACEB() with Persian sample data & live formulas — open in Excel and practice.

  • Sheet “Sample” — data table + formula in place
  • Sheet “Guide” — syntax, arguments & tips from this page
  • Instant & secure (token + rate limit)
Download REPLACEB.xlsx ~ 8–12 KB · No macros

⇪ Share

Send this function to friends

Quiz this function

%d questions — syntax, example & errors — test yourself!

◧ Arguments

ArgumentTypeRequiredDescription
old_text Text Required Source text
start_num Number Required Starting position in bytes
num_bytes Number Required Number of bytes to remove
new_text Text Required Replacement text

▣ Examples

EPRel =REPLACEB("Excel",2,2,"PR")

§ Remarks

  • اگر old_text یا new_text حاوی نویسه‌های دوبایتی باشد، هر نویسه دوبایتی دو بایت شمرده می‌شود.
  • این تابع برای پشتیبانی از زبان‌های DBCS مانند ژاپنی، چینی و کره‌ای ارائه شده است.

✦ Tips

  • تابع REPLACEB هر نویسه دوبایتی را دو بایت حساب می‌کند؛ برای زبان‌های تک‌بایتی تفاوتی با REPLACE ندارد.
  • در کتاب‌های کار با نسخه سازگاری ۲، رفتار REPLACE بهبود یافته و جفت‌های جانشین را یک نویسه حساب می‌کند، بنابراین در اغلب موارد استفاده از REPLACE توصیه می‌شود.

💬 Comments & Q&A 0 approved

🔒 Your comment will be published after review.

Share your thoughts — visible after admin approval

No comments yet — be the first!

✍️ Add comment / question

captcha
🔒 Your comment will be published after review.