

So if, for example, the data to be analysed is stored in the range H1 to J5: the number of the columns to the right of the search column) It, therefore, needs three pieces of information: Step 2: it then returns the contents of the cell that is a set number of columns to the right of the data found in step 1 Step 1: the function searches the first column of a range of data for a set string Using Vlookup to Find Data in a Calc Spreadsheet However, they can also make use of the data in other ways, for example, by using vlookup. It's then possible for a user to use formulae to analyse the data in those columns:Īnd then the user can see the results of that formula: Calc is an incredibly useful tool whether it's used at home or in the office, and it makes an excellent replacement for the very popular (but relatively expensive) Microsoft Excel both of these applications share many useful functions, and one of these functions is also one of the most useful, but least understood, functions - vlookup.ĭata in Calc (like any spreadsheet) is normally stored in columns, something like:

This tutorial will show you how to use it effectively. Sheets(nameOfTableOfContentsWorksheet).Cells(i + 5, 2).SelectĪ is one of the most useful, but least understood, functions in OpenOffice Calc (and Microsoft Excel). Sheets(nameOfTableOfContentsWorksheet).Cells(i + 5, 2) = tempWorksheetName TempLink = "'" & tempWorksheetName & "'!R1C1" 'Create the link from the current worksheet and link it to cell A1 Range("B3") = nameOfTableOfContentsWorksheet NameOfTableOfContentsWorksheet = "TableOfContents"ĪctiveSheet.Name = nameOfTableOfContentsWorksheet The macro is supposed to do the same steps: Walk through all sheets, create a list entry for each sheet and insert a hyperlink to each sheet.ĭim tempWorksheetName, tempLink, nameOfTableOfContentsWorksheet As String As the first two methods works but is quite troublesome – especially for large workbooks – we’ll take a look at a third method: A VBA macro.
