{"text_format":"3","workbook":"xls","n_sheets":2,"sheets":["Read Me","Index"],"not_rendered":{"external_links":1,"defined_names":5},"read":"whole","date_system":"1900","formulas":"cached_only"}

{"sheet":"Read Me","index":0,"n_rows":11,"n_cols":1,"rows_kept":11,"flags":["formulas_cached_only"]}
["This spreadsheet contains various test cases for lookup functions: VLOOKUP, HLOOKUP, LOOKUP and MATCH"]
["Name of the main junit test class which uses this spreadsheet:"]
["org.apache.poi.ss.formula.functions.TestIndexFunctionFromSpreadsheet"]
["(The content of cell 'Read Me'!A3 is confirmed by the test)"]
[]
["Every sheet besides this first one contains formula evaluation test cases in a standardised format."]
["On row 4 of each sheet, in columns B,C,D there are the column headings \"Formula\", \"Expected Result\" and \"Comment\""]
["The test iterates down from row 5 onward  until a the text \"<end>\" is found in column A.   Rows with \"<skip>\" in column A are ignored (useful for currently unsupported behaviour).  Otherwise column A can be used for commenting the group of rows below. "]
["If the evaluated result of column B does not match the expected result in column C, the junit test will report a failure.  Test failures get annotated with the section and row comments, if any."]
["Besides the first 4 columns, row 5 onwards, the junit test does not inspect any other cells in the sheet.  The other cells can be used freely to set up test data."]
["Care should be taken to not only make the values in column C match those in column B, but also to make sure column C contains only simple literal values.  This can be achieved easily by 'pasting special' from column B to C, selecting the 'as values' option."]

{"sheet":"Index","index":1,"n_rows":139,"n_cols":14,"rows_kept":139,"flags":["formulas_cached_only"]}
[null,"Sheet Comment:","Simple tests of INDEX using basic argument values"]
[]
[null,"Formula","Expected Result","Comment"]
[{"$nulls":4},"threeByThree area with both index args"]
[null,"g","g",null,1,1,{"$nulls":3},"a","b","c","d","e"]
[null,"l","l",null,2,1,{"$nulls":3},"f","g","h","i","j"]
[null,"h","h",null,1,2,{"$nulls":3},"k","l","m","n","o"]
[null,"s","s",null,3,3,{"$nulls":3},"p","q","r","s","t"]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},null,0,0,{"$nulls":3},"u","v","w","x","y"]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},null,-1,-1]
[null,{"$error":"#REF!"},{"$error":"#REF!"},null,4,1]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},null,-1,0]
[null,{"$error":"#REF!"},{"$error":"#REF!"},null,1,0]
[]
[]
[{"$nulls":4},"threeByThree area with one index arg"]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},null,-1]
[null,{"$error":"#REF!"},{"$error":"#REF!"},null,0]
[null,{"$error":"#REF!"},{"$error":"#REF!"},null,1]
[null,{"$error":"#REF!"},{"$error":"#REF!"},null,3]
[null,{"$error":"#REF!"},{"$error":"#REF!"},null,4]
[]
[]
[{"$nulls":4},"singleRow with one index arg"]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},null,-1]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},null,0]
[null,"f","f",null,1]
[null,"i","i",null,4]
[null,"j","j",null,5]
[null,{"$error":"#REF!"},{"$error":"#REF!"},null,6]
[]
[]
[{"$nulls":4},"singleRow with both index args"]
[null,"f","f",null,1,1]
[null,"g","g",null,1,2]
[null,"j","j",null,1,5]
[null,{"$error":"#REF!"},{"$error":"#REF!"},null,1,6]
[null,"f","f",null,0,1]
[null,"i","i",null,0,4]
[null,"j","j",null,0,5]
[null,{"$error":"#REF!"},{"$error":"#REF!"},null,0,6]
[null,{"$error":"#REF!"},{"$error":"#REF!"},null,2,1]
[null,{"$error":"#REF!"},{"$error":"#REF!"},null,2,0]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},null,2,-1]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},null,5,-5]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},null,2,-1]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},null,-1,1]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},null,1,-1]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},null,0,-5]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},null,0,0]
[]
[]
[{"$nulls":4},"singleColumn with one index arg"]
[null,"b","b",null,1]
[null,"g","g",null,2]
[null,"q","q",null,4]
[null,"v","v",null,5]
[null,{"$error":"#REF!"},{"$error":"#REF!"},null,6]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},null,-1]
[]
[]
[{"$nulls":4},"singleColumn with both index args"]
[null,"b","b",null,1,1]
[null,"g","g",null,2,1]
[null,"v","v",null,5,1]
[null,{"$error":"#REF!"},{"$error":"#REF!"},null,6,1]
[null,"b","b",null,1,0]
[null,"q","q",null,4,0]
[null,"v","v",null,5,0]
[null,{"$error":"#REF!"},{"$error":"#REF!"},null,6,0]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},null,0,1]
[null,{"$error":"#REF!"},{"$error":"#REF!"},null,0,2]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},null,-1,2]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},null,-1,3]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},null,-1,0]
[null,{"$error":"#REF!"},{"$error":"#REF!"},null,6,0]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},null,6,-1]
[]
[]
[{"$nulls":4},"oneByOne with both index args"]
[null,"m","m",null,0,0]
[null,"m","m",null,0,1]
[null,"m","m",null,1,0]
[null,"m","m",null,1,1]
[null,{"$error":"#REF!"},{"$error":"#REF!"},null,1,2]
[null,{"$error":"#REF!"},{"$error":"#REF!"},null,0,2]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},null,-1,1]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},null,0,-1]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},null,2,-1]
[null,{"$error":"#REF!"},{"$error":"#REF!"},null,2,0]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},null,5,-5]
[]
[]
[{"$nulls":4},"oneByOne with one index arg"]
[null,"m","m",null,0]
[null,"m","m",null,1]
[null,{"$error":"#REF!"},{"$error":"#REF!"},null,2]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},null,-1]
[]
[]
[{"$nulls":4},"missing second arg - area"]
[]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},null,null,1]
[null,"a","a",null,null,1,null,null,"a","b"]
[null,"c","c",null,null,1,null,null,"c","d"]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},null,null,1]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},null,null,1]
[null,"a","a",null,null,1,null,null,"a","b"]
[null,"c","c",null,null,1,null,null,"c","d"]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},null,null,1]
[]
[{"$nulls":4},"missing second arg - row"]
[null,"a","a",null,null,1]
[null,"b","b",null,null,2,null,null,"a","b"]
[]
[{"$nulls":4},"missing second arg - column"]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},null,null,1]
[null,"a","a",null,null,1,null,null,"a"]
[null,"b","b",null,null,0,null,null,"b"]
[null,{"$error":"#VALUE!"},{"$error":"#VALUE!"},null,null,1]
[]
[]
[{"$nulls":9},4,2,3,5]
[{"$nulls":9},0.1,0.3,0.2,0.5]
[{"$nulls":9},10,20,50,40]
[]
[{"$nulls":4},"whole row, whole column results"]
[null,135.1,135.1]
[null,135.1,135.1,null,0,0]
[null,14,14,null,1]
[null,1.1,1.1,null,2]
[null,120,120,null,3]
[null,{"$error":"#REF!"},{"$error":"#REF!"},null,4]
[null,14.1,14.1,null,null,1]
[null,22.3,22.3,null,null,2]
[null,53.2,53.2,null,null,3]
[null,45.5,45.5,null,null,4]
[null,{"$error":"#REF!"},{"$error":"#REF!"},null,null,5]
["<end>"]