Sorting w/ References to Other Sheets

Let's say I have the following in range A1:E5 of Sheet1:
a
=A1
=A$1
=Sheet2!A1
=Sheet2!A$1
ROW 1
b
=A2
=A$2
=Sheet2!A2
=Sheet2!A$2
ROW 2
c
=A3
=A$3
=Sheet2!A3
=Sheet2!A$3
ROW 3
d
=A4
=A$4
=Sheet2!A4
=Sheet2!A$4
ROW 4
e
=A5
=A$5
=Sheet2!A5
=Sheet2!A$5
ROW 5
COLUMN A
COLUMN B
COLUMN C
COLUMN D
COLUMN E
Now, if I sort the range based on column A descending, I get that:
e
=A1
=A$5
=Sheet2!A5
=Sheet2!A$5
ROW 1
d
=A2
=A$4
=Sheet2!A4
=Sheet2!A$4
ROW 2
c
=A3
=A$3
=Sheet2!A3
=Sheet2!A$3
ROW 3
b
=A4
=A$2
=Sheet2!A2
=Sheet2!A$2
ROW 4
a
=A5
=A$1
=Sheet2!A1
=Sheet2!A$1
ROW 5
COLUMN A
COLUMN B
COLUMN C
COLUMN D
COLUMN E
The outcome of the sort on columns B, C and E makes sense to me. Column D, however, mystifies me. Am I the only one who doesn't understand what "they" did and why? Thanks.

Hi,
The reason is that you are using relative Cell reference in Column B and absolute Cell reference
in Column C. A dollar sign ($) and a number "1" mean to make an absolute reference to row 1.
By default, a cell reference is relative.
Relative cell
reference:
In a formula, the address of a cell based on the relative position of the cell that contains the formula and the cell referred to. If you copy the formula, the reference automatically adjusts. A relative reference takes the form A1.
If you want to maintain the original cell reference when you copy it, you could make the cell reference
absolute.
Absolute cell reference: In a formula, the exact address of a cell, regardless of the position of the cell that contains the formula. An absolute cell reference takes the form $A$1.
In your sample, after sorting, the data of row 1 be moved to row 5, all the absolute cell reference won't change and the relative reference in Column B will change. For Column D and E, since they are making reference to another sheet, the position will
not change no matter relative reference or absolute reference.
If you copy the original row 1 to the row 10, the result will be
a      =A10     =A$1     =Sheet2!A1      =Sheet2!A$1    Row 10
More details please refer to
Switch between relative, absolute, and mixed references
By the way, for more questions about the client feature of Excel application, I suggest you posting in
Excel IT pro forum for more effective responses since this forum is to discuss questions about Excel development.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Numbers hangs on documents with references to other sheets

    When I made the first edit (only) on a Numbers document that has references to other sheets in that document, Numbers hangs for about 2 minutes. (This problem doesn't happen on documents without references.) This has been true for some time and I hoped the newest Numbers version would fix it. But, alas. (Numbers 2.1)

    If you change the formula to have a reference to Sheet1, column B will act like column D.I saw an answer that says the sort is practically a
    copy.
    "Sorting formulas is essentially the same as copying formulas. If a formula goes from row 2 to row 4 and that would be the same as if the formula were copied from row 2 to row 4 then there is not problem with the formulas. if copying the formulas would result
    in different results the sort would not work as desired."
    Although, when investigating this solution manually, a problem manifested in Column E. But I think as far as the actual Excel behavior, this (copy) is a better explanation than the cell being cut.
    I speculate that the programers made Excel short-circuit (i.e. not move) when the formula is specified as a local cell.
    I don't see an answer, but
    this documentation alludes to differing behavior based on formula results:
    "Check to see if the values returned by a formula have changed    If the data that you have sorted contains one or more formulas, the return values of those formulas might change when the worksheet is recalculated. In
    this case, make sure that you reapply the sort to get up-to-date results."
    It looks like you're keen to the behavior, so now you should be more proficient to use the types of references for differing situations.

  • Preventing further changes to sheets in a document that reference other sheets

    I am working on an inventory/cost/profit document for my restaurant. I have created one sheet that has all of the costs of separate ingredients and calculated cost of each individual dish (my "menu/cost" sheet). I created a new sheet template for my daily bookkeeping which references the previous sheet (e.g. uses the cost from the "menu/cost" sheet to estimate the amount of profit made from units sold that day). I then have a monthly sheet, which takes the totals of each daily sheet to give me an overview of my monthly sales.
    The problem is, when a variable in the "menu/cost" calendar changes (ex: the price of a certain ingredient goes up) I want it to affect all of my subsequent daily sheets based off of the template, but not the sheets of days past. I could export each day as a separate document as the day passes, but I still need the monthly totals to reference the data contained therein.
    Is there a way I can lock down the data contained within a table/sheet so that the data that have been generated don't change, even if they are based on data in other tables still subject to change?
    Thanks,
    D

    Hi D,
    The easiest way to do this is to:
    Click in cell A1 of the table to be 'fixed', press command-A to Select All, then copy.
    Go Edit > Paste Values.
    This replaces all formulas in the table with the last calculated value. The change is not reversable (except through the Undo command, if done before closing the file—and stepping back through all other changes made since the Past Values was done).
    Not an issue if you use a template to create each month's document.
    Regards,
    Barry

  • Order creation  with reference to other order in B2B shop

    Hi Experts,
    In our project we have a B2B scenario in internet sales where we have to create a order (Item category TANN) with reference to other existing order (item category TAN) . How can we do that?
    We have both transaction types in transaction group which was assigned to the webshop.
    Thanks in advance

    Hi Rao,
    You are right. CRM 5.0 ISA allows multiple transaction types per webshop. But there is no followup transaction cpacity is build into the webshop. One alternate way to achieve this functionality is to create an order template using one transaction type and then use the second order type to create a followup from the template. Other alternate approach is to quotation to order follow-up process, where you choose one transaction type as quotation and then create the order using a followup for the quotation.
    <b>Do not forget to reward if it helps,</b>
    Regards,
    Paul Kondaveeti

  • PI 7.1: Importing a wsdl file with references to other xsd files

    Hi Experts,
    I am trying to import a wsdl file that has got references to other xsd files. When i do this with SOAP UI, i can get the full message structure for the other xsd files. But when i try to import the same wsdl in the ESR, i only get to the messages and not the referenced xsd.
    Any ideas!
    Thank you in Advance,
    Danny

    Hi,
    First convert your main WSDL in to XSD,use Stylus or any XML editors to convert the same,thecn check the genarated XSD refering sun XSD tsrutures.then zip the all xsd in to one File and import in PI,then select you main xsd in the folder,and select root element.
    Normally withour converting in to XSD only if you group al import it in to PI,it wil work.
    or
    if you have some good knowledge about XSD then convert WSDL in to XSD and remove referece tags and include XSD content of sub xsds in to main XSD,and validate that one,and imnprt one XSD.
    Regards,
    Raj

  • Import comments to an other sheet

    is it possible to import comments to an other sheet. Not in the same sheet where ist was exported (acrobat 8)

    No. Comments are defined on certain page number. You can move them (even
    using a script) later on, but not when importing them.
    On Thu, Dec 11, 2014 at 8:12 AM, santaclaus001 <[email protected]>

  • How export a report in Excel where show Page Header in one sheet and the Body in other sheet?

    Hi,
    I need help!, because I need export a report in Excel where the Page Header shows in one sheet and the Body in other sheet. I have SQL 2008 R2, is it possible?
    Thanks a lot for your answers.
    Sukey Nakasima
    Sukey Nakasima

    Hi Sukey,
    If I understand correctly, you hope the Page Header shows in one sheet, the body and hidden page headers in another sheet when exports a report to Excel. To achieve this goal, we can put page header content into a rectangle, then set the visibility of rectangle
    using expressions. For more details, please refer to the following steps:
    1. Add a rectangle to the page header, then drag the page header content into it.
    2. Click the rectangle, in the Properties window, click Visibility, in the Hidden text box, click Expression, type the following expression:
    =IIf(Globals!RenderFormat.Name="EXCEL" and Globals!PageNumber <>1,true,false)
    3. In the Report Body, right click the Table Header row of the first tablix and select Tablix Properties, check Add a page break before check box.
    4. Click the tablix, in the Properties window, click PageBreak, in the Disabled text box, click Expression, type the following expression:
    =IIf(Globals!RenderFormat.Name="EXCEL",TRUE,FALSE)
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu

  • I want run Macro using other sheet when open the workbook in server,how do?

    HI ,
       I save the workbook in BI server using one query.And I Insert a lot of sheet in the workbook.I want to change other sheet base "table"'s varient. I wirte some Visual Basic script (VBS) In the event of workbook's open . but it doesn't run . I think the reason is that the analyzer change the varient after opened the workbook .how can I do? thank you

    UP..

  • Ejb-ref element references to other beans

    Hello,
    Can anyone tell me what ejb references to other beans are for? (ejb-ref element).
    I am completely missing the point and would be grateful if someone could tell me why I should have the overhead of writing this:
    <ejb-ref>
    <ejb-ref-name>ejb/waUserMgr</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>com.reuters.pds.webapp.bl.user.api.WAUserMgrHome</home>
    <remote>com.reuters.pds.webapp.bl.user.api.WAUserMgr</remote>
    <ejb-link>WAUserMgrEJB</ejb-link>
    </ejb-ref>
    Any comment welcome..
    Julien.

    Hi,
    The <ejb-ref> element is optional, you could use the actual JNDI name instead.
    The advantage with using <ejb-ref> is that, if you deploy the bean on another server, probably with a different JNDI name,
    your code can still continue using the same name as defined by <ejb-ref-name>.
    Internally, the <ejb-ref-name> will be mapped to the actual JNDI location, maybe using symbolic links.

  • Correct references to other classes

    I'm working on a student project and I'm in some troubles.
    I have a schema "2010_12209" on faculty 11g Oracle DB.
    I have successfully loaded Class A (that has no references to other class) in Oracle DB using SQL Developer.
    Then I try to load Class B (that has references to class A) and I get error: java.sql.SQLException: ORA-24344: success with compilation error ORA-06512: at line 1
    which I'm pretty sure that's from the incorrect classes references.
    So what's the correct syntax to properly reference to class A
    ex: 2010_12209.A or ???

    References to other classes will be links only if the class is in the one of the packages you generate the javadoc in, or if you use the -link option to link your javadoc to other javadocs.

  • How to pass Method Inner Class reference to other method?

    Hi All,
    I am trying to pass the reference of "method inner class".
    Can any one explain me how to pass the reference and where other method will sit in the class, I mean either in Outer Class or in Inner Class ?
    Thanks in advance for ur reply :)
    package methosInnerClass;
    public class MethodLocalInnerClass {
         private String outerName;
         private static String statOuterName;
         public MethodLocalInnerClass(String name, String statName) {
              outerName = name;
              statOuterName = statName;
         public void methodWithLocallClass() {
              class MethodInnerClass {
                   String innerName;
                   MethodInnerClass(String name) {
                        innerName = name;
                   public void displayOuterInner() {
                        System.out.println("Outer Name: " + outerName + "\nOuter StatName: " + MethodLocalInnerClass.statOuterName + "\nInner Name: " + innerName);
              MethodInnerClass methodInner = new MethodInnerClass("Harish");
              methodInner.displayOuterInner();
                    *Pass above reference to other method*
         public static void staticMethodWithLocallClass() {
              class MethodInnerClass {
                   String innerName;
                   MethodInnerClass(String name) {
                        innerName = name;
                   public void displayOuterInner() {
                        // We can not access the non-static instance variable since this method is a static method
                        //System.out.println("Outer Name: " + outerName + "\nOuter StatName: " + MethodLocalInnerClass.statOuterName + "\nInner Name: " + innerName);
                        System.out.println("Outer StatName: " + MethodLocalInnerClass.statOuterName + "\nInner Name: " + innerName);
              new MethodInnerClass("Shakshi").displayOuterInner();
         public static void main(String[] args) {
              new MethodLocalInnerClass("Abhishek","Neeshu").methodWithLocallClass();
              System.out.println("Calling innerClass within static method !!!");
              staticMethodWithLocallClass();
    }

    package donald.test.inner_class;
    public class OutterClass {
         private String outerName;
         private final OutterClass outterClass;
         public OutterClass() {
              outterClass = this;
         public void methodWithInnerClass(final String strValueToPassToInnerClass) {
              class InnerClass {
                   private InnerClass innerClass;
                   private String innerName;
                   InnerClass(String name) {
                        innerName = name;
                   public void displayOuterInner() {
                        System.out.println("Non-Static:\tOuter Name: " + outerName + "\tInner Name: " + innerName);
                        System.out.println("");
                        System.out.println("final String strValueToPassToInnerClass = " + strValueToPassToInnerClass);
                    * @return the innerClass
                   public InnerClass getInnerClass() {
                        return innerClass;
                    * @param innerClass the innerClass to set
                   public void setInnerClass(InnerClass innerClass) {
                        this.innerClass = innerClass;
                    * @return the innerName
                   public String getInnerName() {
                        return innerName;
                    * @param innerName the innerName to set
                   public void setInnerName(String innerName) {
                        this.innerName = innerName;
              InnerClass methodInner = new InnerClass("Inner.Donald");
              methodInner.displayOuterInner();
              System.out.println("My OutterClass " + outterClass.getOuterName());
        // Unknown "MethodInnerClass "
         public void passReferenceOfInnerClassToOtherMethod(     ) {
          * @param args
         public static void main(String[] args) {
              OutterClass outterClass = new OutterClass();
              outterClass.setOuterName("Outter.Donald");
              outterClass.methodWithInnerClass("This Donald is so very cool...!!!  Yeah...!!!");
          * @return the outerName
         public String getOuterName() {
              return outerName;
          * @param outerName the outerName to set
         public void setOuterName(String outerName) {
              this.outerName = outerName;
          * @return the outterClass
         public OutterClass getOutterClass() {
              return outterClass;
    }

  • Best Way to store references to other objects

    Hi there,
    I want to design a class, that has several references to other instances. What is the best way to store such references within the class? As a vector? As a Hash-Table?
    What I need are:
    -get a certain element in this data-structure fast (let's say the fifth)
    -be able to list all elements referenced
    -delete a certain element (e.g. 5th one out of 10)
    What I do not necissarily need is:
    -to be able to search if a certain object is referenced by this one
    What do you propose?
    Any ideas?
    Thx
    Karlheinz Toni

    Any thoughts on hashtables etc?
    I used them in an application where i needed to get
    objects quickly. It allowed me to get the objects
    based on a criteria instead of by the object itself.
    It was really useful for me.Use HashMap instead of Hashtable. HashMap would also work but you can't get element 5 unless you use the element number as a key. If you do use the element number as the key, it's kind of like using a List except it won't renumber itself, which you may or may not want. For example, if you remove element 5 from a List element 6 (if it exists) becomes element 5. If you remove key 5 from the HashMap you just don't have an element 5 anymore i.e. the map will return null for get(new Integer(5));

  • Cell references to other tables, keep from changing

    Here's what I am trying to do. I have two tables, in two sheets. Sheet 1::Table 1 and Sheet 2::Table 2.
    The cells in Table 2 are all referenced to cells in Table 1 (with a formula that looks like =Table 1::X7).
    I want to be able to move the rows in Table 1 around but have the formulas in Table 2 not change their reference. Now it seems they follow along. So the reference in Table 2 is =Table 1::X7 and I move row 7 in Table 1 so that it becomes row 6, my reference in Table 2 changes to =Table 1::X6. I don't want it to change. Changing the reference from relative to absolute doesn't seem to change this.
    Any suggestions?
    Thanks! Brian

    "I looked at INDEX and OFFSET but from what I can tell they don't accept a parameter for a different table."
    OFFSET's base can be set as a cell on a different table. If that cell is in a Header row, it will not be included in sorts of the table, so in many cases cell A1 is chosen as 'base' (with row 1 set as a Header row), and offsets are calculated from that cell.
    The example below shows results using OFFSET in columns B and C, and INDEX and OFFSET in column D, all of Table 2, to retrieve values from column X of Table 1. The yellow-filled row on Table 2 retrieves the values from the same cell as your =Table 1::X7 formula above. X7 is in the green filled row of Table 1.
    The second pair of tables shows duplicates of the same pair of tables. Table 1 in this row has been sorted on the values in column B. Note that what was Row 7 of Table 1 is now Row 4 (although it is still labeled Row 7 in column A). Table 2 has not been sorted. The yellow-filled row is still in the same position and the formula in each of the three cells remains the same as it was in the first version of the table. The value retrieved is from cell X7 on the sorted Table 1.
    Formulas (all in Table 2, entered in row 2, then filled down to row 10):
    B2: =OFFSET(Table 1 :: $A$1,ROW()-1,23)
    C2: =OFFSET(Table 1 :: $X$1,ROW()-1,0)
    These two are pretty much the same.
    The first uses A1 as the base, and requires a column offset of 23 steps to arrive at column X.
    The second uses X1 as the base, and requires a column offset of 0 to remain in column X.
    The row offset for both is set by the row in which the formula resides. ROW() returns the row number, from which 1 is subtracted to give an offset from row 1 of one step less than the row number of the formula's position.
    D2: =INDEX(OFFSET(Table 1 :: $X$1,0,0,ROWS(Table 1 :: $X)),ROW())
    This one uses OFFSET's ability to capture several values in an internal array, triggered here by adding a fourth argument to the function ( ROWS(Table 1::$X) ), to define the row-range as 'all of the rows in column X'. The values are extracted using INDEX.
    Although INDEX has its uses, here I think it is redundant, and would use either of the two previous examples.
    Regards,
    Barry

  • Is there a way to create a table then apply it to other sheets and have it mirror changes across all the sheets? Like a sync'ed table that will be the same on multiple sheets

    I have a budget spreadsheet with a couple recurring tables. As months go by, I sometimes make changes to these tables and would like those changes to be synced across the different sheets in the spreadsheet. Is there a way to sync content across multiple pages, essentially having one true table that appears on multiple sheets?

    Abdur,
    In the sheet :: table :: cell that is going to receive the data, type an equals sign, then click on the cell that the data will come from and press Return.
    This will require that you navigate to the origin cell by choosing the proper sheet.
    Jerry

  • Is there a way to reference just a sheet (not table and cell)

    I want to have a profile overview sheet tat will draw from individual profile sheets. Is there a way to set up a cell with which table and cell to draw from, but then make it draw the sheet name from a different cell. That way I can fill in the sheet name in the appropriate cell, and all the other cells would automatically draw from the appropriate sheet.
    Any tips or advise would be appreciated.

    =IFERROR(INDIRECT(A1 & " :: Table 1 :: A2"),"")
    or
    =IF(A1="","",INDIRECT(A1 & " :: Table 1 :: A2"))
    The first will capture errors caused by A1 being blank and errors caused by A1 specifying a non-existent sheet (i.e., typos). The second one prevents errors caused by A1 being blank but will still give an error if you specify a non-existent sheet..

Maybe you are looking for

  • Bug in the Forms 5 ?

    Hi All! I develop with a Forms Builder 5.0.6.18.1 and I've found a serious bug I think. Just try to do the following things: 1.Connect as user "A". 2.Create a stored procedure which does something like this: function c is x number; begin select count

  • Safari can't find server...cannot connect to internet

    I Keep getting "Safari can't Rind Server" and I cannot connect to the Internet.  any suggestions?

  • 14 hive folder in SharePoint 2013 environment?

    Hi, I have two separate standalone SharePoint 2013 setup one is development and one is production. My problem is when I go to "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\14" location in development server then I see below fo

  • Converting greyscale images to single spot colour

    Hi there. I'm trying to convert a greyscale image into a single spot colour image. The spot colour is PMS425C, a grey version but as I'm only printing 2 colours I need to convert these images into one spot colour. Can somebody please assist? Thanks

  • SAP Business Objects Universe Desgin Problem

    Dear Experts, I getting Problem to create the below Scenario in SAP Business Objects Universe level The data base is M-SQL 2008 The data is below liek this Tabel1: Note: Due to clear under standing i mantained the & for each data spearation Fields: E