In typical spreadsheet applications, when entering a formula into a host cell, selecting the host cell into which the formula is being entered results in the insertion of a reference to the host cell in the formula, creating a circular reference which results in an error.
Various embodiments of the invention are disclosed in the following detailed description and the accompanying drawings.
The invention can be implemented in numerous ways, including as a process, an apparatus, a system, a composition of matter, a computer readable medium such as a computer readable storage medium or a computer network wherein program instructions are sent over optical or communication links. In this specification, these implementations, or any other form that the invention may take, may be referred to as techniques. A component such as a processor or a memory described as being configured to perform a task includes both a general component that is temporarily configured to perform the task at a given time or a specific component that is manufactured to perform the task. In general, the order of the steps of disclosed processes may be altered within the scope of the invention.
A detailed description of one or more embodiments of the invention is provided below along with accompanying figures that illustrate the principles of the invention. The invention is described in connection with such embodiments, but the invention is not limited to any embodiment. The scope of the invention is limited only by the claims and the invention encompasses numerous alternatives, modifications and equivalents. Numerous specific details are set forth in the following description in order to provide a thorough understanding of the invention. These details are provided for the purpose of example and the invention may be practiced according to the claims without some or all of these specific details. For the purpose of clarity, technical material that is known in the technical fields related to the invention has not been described in detail so that the invention is not unnecessarily obscured.
Preventing the inclusion of a reference to a host cell in a formula to avoid a circular reference in the formula is disclosed. In some embodiments, an indication of a selection or an attempted selection of a host cell into which a formula is being entered is received wherein the selection or attempted selection is made by a user via a user gesture associated with adding to a formula a reference to a selected cell or range of cells with respect to which the user gesture is made, and a reference to the host cell is not inserted into the formula in response to the indication. In some embodiments, a host cell is not allowed to be selected.
As used herein, the term “cell” refers to a cell associated with at least standard spreadsheet functionality. The term “at least standard spreadsheet functionality” in the context of a cell includes the ability to define the content of one cell in such a way that the content of the one cell is determined based at least in part on the content of one or more other cells, and the content of the one cell is updated automatically without further human action if the content of one or more of the one or more other cells is changed. As used herein, the term “host cell” refers to a cell in a formula editing mode, i.e., a cell into which a formula is being entered. In some embodiments, cells in a spreadsheet application are organized into one or more individual tables or table objects, each of which includes a desired number of rows and columns of cells. In such cases, a sheet of a spreadsheet document may include a desired number of table objects. Although in many of the examples described herein the cells of a spreadsheet application are organized into such table objects, the techniques described herein may be similarly employed with respect to other cell configurations or organizations, such as the (seemingly) infinite single grid or table of cells in each sheet of some typical spreadsheet applications that includes an unlimited (or very large) number of rows and columns of cells. Although many of the examples provided herein are with respect to a spreadsheet application, the techniques described herein may be similarly employed with respect to any application, spreadsheet or otherwise.
References to one or more cells and/or ranges of cells can be included in a formula. While entering a formula into a host cell, references to one or more cells and/or cell ranges can be manually entered into the formula and/or can be automatically inserted into the formula by clicking on (e.g., using a mouse or other selection tool) or otherwise selecting the one or more cells and/or cell ranges while in the formula editing mode in the host cell. In some embodiments, as disclosed herein, a reference to the host cell into which a formula is being entered is not allowed to be included in the formula so that a circular reference (and resulting error) can be avoided. In some embodiments, a host cell is prevented from being selected, e.g., even when it is attempted to be selected, preventing a reference to the host cell from being inserting into the formula being entered into the host cell. In such cases, for example, when drag (or otherwise) selecting a range of one or more cells while in a formula editing mode in a host cell, the host cell is prevented from being selected or included in the range, e.g., even when it is attempted to be selected or included. Alternatively, in some embodiments, although a host cell may be allowed to be selected, a reference to the host cell is not inserted into the formula being entered into the host cell in response to a selection of the host cell. In such cases, for example, when drag (or otherwise) selecting a range of one or more cells while in a formula editing mode in a host cell, although the host cell may be selected with the range, a reference to the host cell is excluded from a reference to the range inserted into the formula of the host cell in response to the selection of the range. In some embodiments, while in a formula editing mode in a host cell, a reference to the host cell is not allowed to be manually entered into the formula being entered into the host cell.
As described herein, not allowing a host cell to be selected and/or not allowing a reference to a host cell to be inserted into a formula being entered into the host cell prevents a circular reference from being included in a formula as well as errors associated with including a circular reference in a formula.
Although the foregoing embodiments have been described in some detail for purposes of clarity of understanding, the invention is not limited to the details provided. There are many alternative ways of implementing the invention. The disclosed embodiments are illustrative and not restrictive.
Number | Name | Date | Kind |
---|---|---|---|
5276607 | Harris et al. | Jan 1994 | A |
5790435 | Lewis et al. | Aug 1998 | A |
20050091206 | Koukerdjinian et al. | Apr 2005 | A1 |
20060048044 | Genesereth et al. | Mar 2006 | A1 |
20090083615 | Kotler et al. | Mar 2009 | A1 |
Number | Date | Country | |
---|---|---|---|
20090044092 A1 | Feb 2009 | US |