Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

started work on breakOutRanges

  • Loading branch information...
commit b8cc6b25a6a51c7f4c36a571551cfa9f0ebc6f54 1 parent 5799cc7
@josh3ennett authored
Showing with 5 additions and 7 deletions.
  1. +5 −7 src/ExcelFormulaUtilities.js
View
12 src/ExcelFormulaUtilities.js
@@ -616,20 +616,16 @@
function breakOutRanges(rangeStr, delimStr){
//Quick Check to see if if rangeStr is a valid range
- if ( @(/\w{1,4}\d+:\w{1,4}\d+/gi).test("A1:B2") ){
+ if ( (/\w{1,4}\d+:\w{1,4}\d+/gi).test("A1:B2") ){
throw "This is not a valid range: " + rangeStr;
}
//Make the rangeStr lowercase to deal with looping.
- rangeStr = rangeStr.toLowerCase();
-
ranges = rangeStr.split(":");
-
startRow = range[0].match(/[0-9]+/gi)[0];
startCol = range[0].match(/[A-Z]+/gi)[0];
-
endRow = range[1].match(/[0-9]+/gi)[0];
endCol = range[1].match(/[A-Z]+/gi)[0];
@@ -637,7 +633,7 @@
//String.fromCharCode();
}
- //Check out http://en.wikipedia.org/wiki/Hexavigesimal
+ //Modified from function at http://en.wikipedia.org/wiki/Hexavigesimal
function toBase26( value ) {
value = Math.abs(value);
@@ -665,6 +661,7 @@
return converted;
}
+ // This was Modified from a function at http://en.wikipedia.org/wiki/Hexavigesimal
// Pass in the base 26 string, get back integer
function fromBase26(number) {
number = number.toUpperCase();
@@ -1050,9 +1047,10 @@
// If in the sum function break aout cell names and add
case "sum":
console.log(tokenString);
+ debugger;
//TODO loop through and add ranges together
break;
- // By Default return an array containing all cell names in array
+ // By Default return an array containing all cell names in array
default:
//TODO create array for ranges
break;
Please sign in to comment.
Something went wrong with that request. Please try again.