Text All versions ◉ 10 views

=MIDB()

Returns a portion of text starting at a specified position based on bytes

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

⬇ Download Sample Workbook

A dedicated .xlsx for =MIDB() 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 MIDB.xlsx — Coming soon ~ 8–12 KB · No macros

⇪ Share

Send this function to friends

🧠 🧠 Quiz this function

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

◧ Arguments

ArgumentTypeRequiredDescription
text Text Required Source text
start_num Number Required Starting position in bytes — ≥1
num_bytes Number Required Number of bytes to extract — ≥0

▣ Examples

xc =MIDB("Excel",2,2)

✦ Tips

  • تابع MIDB منسوخ شده است. در کتاب‌های کار با Compatibility Version 2، تابع MID جفت‌های جانشین را یک نویسه می‌شمارد.

⚠ Common Errors

#VALUE! start_num is invalid
Fix: Use ≥1

💬 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.