wer340 / trick

0 stars 0 forks source link

Excel 📶 #6

Open wer340 opened 3 months ago

wer340 commented 3 months ago

Convert Persian number to English number

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1, "۰", "0"), "۱", "1"), "۲", "2"), "۳", "3"), "۴", "4"), "۵", "5"), "۶", "6"), "۷", "7"), "۸", "8"), "۹", "9")
wer340 commented 3 months ago

🔥تابع سفارشی🔥 بروید به منوی "Extensions" و سپس "Apps Script" را انتخاب کنید. کد زیر را جایگزین کد موجود در پنجره باز شده کنید:

function faNumber(value) {
  return value.replace(/۰/g, "0").replace(/۱/g, "1").replace(/۲/g, "2").replace(/۳/g, "3").replace(/۴/g, "4").replace(/۵/g, "5").replace(/۶/g, "6").replace(/۷/g, "7").replace(/۸/g, "8").replace(/۹/g, "9");
}
wer340 commented 3 months ago

برای تنظیم رنگ پس زمینه سفید برای ردیف‌های فرد و خاکستری all own row selected format > conditional formating ➡️Format cells if 🔻Format cells if

=ISEVEN(ROW())

then Formatting style➡️change color