SHARE
TWEET

Untitled

Siri0n May 7th, 2015 246 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //функция вычисляет номер столбца Excel по его буквенному обозначению с помощью сил тьмы
  2. function index(addr){
  3. return parseInt(addr.split("").map(function(c){return "123456789ABCDEFGHIJKLMNOP0"[c.charCodeAt(0)-64]}).join(""),26)+parseInt((addr+"$").split("").map(function(c){return "Z".indexOf(c)+1}).join(""),26);
  4. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top