Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9788

Identify a Number from Language and then Identify if the Numbers are Correct + Output (Google Sheets)

$
0
0

I have 7 languages with their respective characters for 0 to 9 (except Hebrew which does not have a 0 so only 1 to 9 for Hebrew).

I want a user to input in B1 and only the following combinations are accepted:

  1. The input (B1) characters can only be of the same language i.e. cannot mix languages i.e. 三四五 (345 in Chinese) is accepted but 三4६ (3 in Chinese, 4 in English and 5 in Hindi) is not accepted

  2. The input can only be between 3 and 5 characters

Output Comment (Row 2) has one of the following two outputs:

If both 1 & 2 above are TRUE then:

  • Yes! This is a [insert correct language from Row 4] [insert character count i.e. 678 is 3 characters, חחחח is 4 characters etc.] Digit ENS. This is also [lookup non-English to English equivalent] in English.

e.g. if someone inputs 九六二九 it would say "Yes! This is a Chinese 4-Digit ENS. This is 9629 in English"

If either 1 or 2 above are FALSE then:

  • No, this is not a valid 3/4/5 Digit ENS. Please try again.

NOTE: Both Hebrew and Arabic read right-to-left...so the example in the picture ٦٤٠٣:

٣ is 3

٠ is 0

٤ is 4

٦ is 6

enter image description here


Viewing all articles
Browse latest Browse all 9788

Latest Images

Trending Articles

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>