I suspect that the reason no one has responded is that your question is cast in terms of spreadsheets, which are a bit hard to grok when you’re used to traditional programming languages. So I dusted off my copy of Numbers and looked up the VLOOKUP function. It seems to be equivalent to Swift’s array subscripting. For example: let sheet: [[Int]] = [ [1, 2, 3], [4, 5, 6], [7, 8, 9], ] let row = 1 let column = 2 print(sheet[row][column]) // prints “6”If you read the documentation on arrays and subscripts, that might put you on the right path.Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic:
Programming Languages
SubTopic:
Swift
Tags: