Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Fix Google Sheets RTL?

Tags:

I am trying to use the Kharosthi script in Google Sheets, which is Right-to-Left. In Google Sheets, the script shows up properly while in cell-edit mode, but once it is confirmed it goes back to Left-to-Right.

Selected
Deselected

like image 202
Daniel Reynolds Avatar asked Mar 12 '20 21:03

Daniel Reynolds


1 Answers

go to File > Spreadsheet settings and change locale to RTL language


last option would be to use formula or script to reverse the string

function REVERSE(string) {
  if (typeof string != 'string') {
    return null;
  }
  return string.split('').reverse().join('');
}

=REVERSE(A1)

or without script:

=JOIN(, INDEX(MID(A2, LEN(A2)-ROW(INDIRECT("1:"&LEN(A2)))+1, 1)))
like image 160
player0 Avatar answered Oct 23 '22 11:10

player0