Referring to Cells in Formulas problem.

I have 2 Tables (and one chart) on one sheet. Table 1 has 3 columns viz. Dates, Electricity & Gas
The Dates column looks like this
01/01/11 - 31/01/11
01/02/11 - 28/02/11
01/03/11 - 31/03/11
01/04/11 - 30/04/11
etc etc
Table 2 calculates the number of gas units and kWh of electricity used during the date intervals in Table 1. What I've (unsuccessfully) tried to do is when Table 2 calculates the number of gas units and kWh of electricity these are automatically entered in the appropriate cell next to the relevant date interval in Table 1.
For example in Table 2 the number of Gas units is calculated in cell D11 and the kWh of electricity in cell I11 for a particular date interval corresponding to that in Table 1. The data in Table 2 are manually entered for each date interval given in Table 1. What I would like to do is get Numbers to automatically enter the value that is calculated in cells D11 & I11 in Table 2 into the appropriate cells in Table 1 e.g. for 01/01/11 - 31/01/11 the cells in Table 1 would be C4 & D4 for 01/02/11 - 28/02/11 the cells in Table 1 would be C5 & D5 and for 01/03/11 - 31/03/11 the cells in Table 1 would be C6 & D6 and so on up to 01/12/11 - 31/12/11 whose cells would be C15 & D15.
I've tried doing what is suggested in the *'Referring to Cells in Formulas*' help page but I must be doing something wrong as it just isn't working for my Sheet and Tables. If anyone can hopefully understand my problem and point to a solution I'd be very grateful.
If anyone wants a copy of the sheet to play around with they are more than welcome to have it it's just that I don't know how to make it available on this forum or show the tables as they are set out here on the forum.
Thanks
Thanks

As Yvan said, it can't be done the way you want. I personally like to have the backup data behind calculations whenever possible, versus overwriting the older data. I would use separate tables instead of a single Table 2.
I can't quite figure out your "dates". Is it one column or two? For example, is "01/01/11 - 31/01/11" in a single cell? I'm going to assume that's how it is and that it is column A.
Here is how I might do it:
1) I would move Table 2 to a different sheet (Sheet 2) and give it a name _exactly the same as the first period in column A_. In other words, it would be named "01/01/11 - 31/01/11" (without the quotes). This table will be for this period only. I would also go to the inspector and click "name" so the table name is shown above the table.
2) In Sheet 1, Table 1 (your Table 1) I would use the following formula in what you said was column C and a similar one for column D
=IFERROR(INDIRECT("Sheet 2::'"&A&"'::I11"),"")
Note that '"&A&"' has triple-quotes around it. The first one is an apostrophe followed by a quote. The second is a quote followed by an apostrophe. The apostrophes are required due to some of the characters being used in the table names. Normally you wouldn't need them.
3) For the next month, duplicate Table '1/01/11 - 31/01/11' by right clicking on it in the sidebar and choosing "duplicate". Reposition the duplicate on your sheet, rename it with another set of dates (make sure it matches exactly; copy/paste can be your friend), and enter the data for that period. Table 1 will find it automatically.

Similar Messages

  • Referring to Cells in Formulas

    Hi Everyone
    This might sound like a really easy question for you guys but I am new to using numbers. When I select a cell to enter a formula and refer to a cell eg C2, and multiply it by another cell (D2), i keep getting an error message which says " the operator "*" expects a number, but cell 'Mass (kg)' Jupiter contains a string". It is like it thinks I am referring to the cells which have the titles in them, Mass (kg) is cell C1 and D1 is what says Jupiter but i want it to multiply the numbers that are in cells C2 and D2.
    Does anyone have any ideas?
    Cheers
    Ken

    Ken Herington wrote:
    This might sound like a really easy question for you guys but I am new to using numbers. When I select a cell to enter a formula and refer to a cell eg C2, and multiply it by another cell (D2), i keep getting an error message which says " the operator "*" expects a number, but cell 'Mass (kg)' Jupiter contains a string". It is like it thinks I am referring to the cells which have the titles in them, Mass (kg) is cell C1 and D1 is what says Jupiter but i want it to multiply the numbers that are in cells C2 and D2.
    Does anyone have any ideas?
    Hi Ken,
    Two. One on the formula, and one on the unit you've used.
    Formula:
    =C2*D2  Placed in any cell (except C2 or D2) will return the product of the numbers in C2 and D2, provided both cells either contain numbers or are empty.
    =C*D     Placed in any cell in row 2 (except C2 or D2) will return the product of the numbers in C2 and D2, provided both cells either contain numbers or are empty.
    =C*D$2  Placed in any cell in row n (except Cn or D2) will return the product of the numbers in Cn and D2, provided both cells either contain numbers or are empty. This would allow you to make Row 2 a header row, place the 'Jupiter factor' in D2, list the 'Mass (kg)' (see comment below) starting in row 3, and calculate the product in column D, starting at row 3.
    The error message may, as Yvan notes, result from the formula referring to cell C1, where it finds the text string 'Mass (kg)', or, if the formula is not referencing C1, the cell which it is referencing may include text (eg. '100 kg' instead of '100'), or may have been formatted as text. Inclusion of any non-numeric characters (with a few exceptions) in the cell will cause the contents to be interpreted as a text string. Formatting a cell as text will cause anything in that cell (including a number or a formula) to be interpreted as a text string.
    Units:
    The mass of an object is an intrinsic property of that object, and does not change as the object is transferred from planet to planet. A 1 kg object has a mass of 1 kg whether it is on Earth, the moon, Jupiter or en route from one to another of these bodies. Measuring the object's mass using an equal arm balance or a counterpoise balance will give the same reading (1 kg) in each location (although mechanical considerations may limit the precision of that measurement).
    The weight of an object, on the other hand, is a measure of the vertical force exerted on the object due to the gravitational attraction of another object. That weight depends on the mass of the object itself, the mass of the 'other' object(s), and the distance separating the pair. That 1 kg object above will have a different weight on each of the planets, and will vary by about 0.5 percent when determined at different locations on Earth (heaviest at the poles, lightest atop a high mountain at or near the equator). Weight can be measured using a spring scale, which measures the force necessary to support an object against the local gravitational force on that object.
    The proper unit of weight in the International System of Units is the Newton, but in common and commercial use (on earth) when we 'weigh' something, we're actually determining its mass, so using the mass unit to report the result is appropriate. Here, though, my interpretation is that you want to determine the 'weight' of the object, not its 'mass', and you should make that distinction in your labels.
    Regards,
    Barry

  • Cell formula problem

    Hello,
    I have created a query in which there are about 12 colums.
    In cell definition i want to write the same formula in every coumn.So,is there any way to copy the formula from one cell to other.
    Regards,
    Pratighya

    Hi,
    Above post is correct. If you have same selections and same formula for all the rows then cell defintion is not required.Let me try to give another example i.e I have two rows and 3 columns(Actual,Budget,Variance) . My first row is based on Actual-Budget and the second row is based on Budget-Actual . So in this case if I use the query designer, I will get only one variance (either actual-budget or budget-actual) for both the rows. But i need two separate formulas,so i need to use 'Cell definitions ' to define the different formulas for each rows.
    But if your selections and formula is same for all the rows you can simply use the column by creating 10 selections with the different fiscal period.
    Thanks.

  • Cell reference percentage problem

    Hi Experts,
    My scenario is like this I have two structures and I have created a cell reference for all the column in Col 1 like RF1. Now in Col2  I am writing my formula which would be like this
         Col1     Col2
    Row1      RF1     RF1
    Row2        RF2     (100 * RF2)/RF1
    Row3        RF3          (100 * RF3) / RF1
    Another option is I could use RF1 A% RF2
    But the problem I am facing is the moment I use two reference in a formula I am getting a blank result.
    Please suggest how do I go about.
    Thanks.
    Points shall be awarded 

    Are you working on some finance reports, where in you have to compute figures like Operating cost / net sales.
    also, please let me know if you get an answer to this q, as i too am looking for a similar problem.
    Kind Regards

  • Numbers formula problem

    I have the following numbers, 20 in total. Numbers are from 0-9.
    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
    3 7 8 1 2 6 6 7 3 1   0   7   0   1   2    2   1   6   8   2
    i have another row where I want to put all the numbers that exist in the row 2. numbers that do not appear in that row should not appear in my other row.
    But i just want to display the numbers once. The result would be like this:
    0 1 2 3 6 7 8
    Each number in a different cell.
    4,5 and 9 do not appear.
    I Hope you could understand my problem. I could post a screenshot, but this forum is buggy.
    many thanks,

    Splitting a series of data into more than one column or row complicates life.  But if it is important to do that (perhaps for ease of data entry) then here is one way to accomplish what I understand you are looking for:
    This is the sample data table (I reduced the number of columns for demonstration purposes):
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    DATA 1
    16
    15
    17
    16
    19
    17
    16
    16
    16
    18
    15
    14
    14
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    DATA 2
    11
    9
    12
    10
    12
    14
    13
    11
    12
    14
    15
    13
    14
    15
    18
    Then you can create a "Helper Table" that looks like this (in practice it will have many more rows):
    Value
    Distinct
    Ranked
    DATA 1
    DATA 1
    9
    16
    16
    10
    15
    15
    11
    17
    17
    12
    16
    13
    19
    19
    14
    17
    15
    The formula in A2 of the Helper Table, copied down as far as you can go until you get a red triangle range error is, is:
       =INDEX(UNION.RANGES(FALSE,Data::$A$1,Data::$2,Data::$4),1,ROW())
              (The $2 and $4 appear in this pasted formula means to anchor to those rows. You get that by clicking the row number to select the row)
    The formula in B2, copied down, is:
       =IFERROR(IF(COUNTIF(A$1:A2,A2)=1,A2,""),"")
    The formula in C2, copied down, is:
        =IFERROR(SMALL(B,ROW()−1),"")
        (The B here is the column B address token which you get by clicking the column letter to select the column.)
    Your summary table would look something like this:
    Durchmesser
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    The formula in B2, copied right until you get a blank, is:
       =IFERROR(INDEX(Helper Table::$C,COLUMN()),"")
    SG

  • Referring to cell for  Custom Formuale in WEBI

    Hi,
    I have the data some thing like this
    Region     Rev
    APJ          10
    EMEA       50
    Now I want to create a custom formulae like I want to take 50% of APJ revenue and 20% of EMEA value . In excel the I can point to the APJ revenue cell that is  (100.5 )and point to the EMEA cell that is ( 50 0.2)
    So the custom formuale will be 100.5+500.2. So can I refer to the particular  data cell when creating the formulae in WEBI. If so pl slet me now how can I do this

    Hi A,
    I don't clear what do you mean with creating cusom formula like excel do.
    is this in webi or not?
    as i know if you want to create custom formula you can use Formula Editor.
    just choose which measure you already define then give the formula and you get your custom formula in new columns or rows.
    hope it can help you solve problems.
    thanx
    Regards,
    Febry Kurniawan

  • Frustrating Formula Problems

    I'm having a frustrating problem in Numbers. When I press the equals key and click on a cell in another table it returns as an invalid formula error. The formula is:
    [='Table 10' :: B7]
    But when I hit return it changes to
    [=Table 10 :: B7]
    I have tried to enter the formula manually but Numbers keeps changing what I enter. Every other cell works except that one.
    Could anyone replicate this for me? I want to know if it's Numbers or just me, here's how.
    I have three tables "Table 9", "Table 10" and "Table 11"
    Table 10 has five links to Table 9
    B2 [='Table 9' :: A9]
    B3 [='Table 9' :: A10]
    B4 [='Table 9' :: A11]
    B5 [='Table 9' :: A12]
    B6 [='Table 9' :: A13]
    And the sum of those linked values
    B7 [=SUM(B2:B6)]
    Table 11 should link to the sum in Table 10
    B2 [='Table 10' :: B7]
    BTW, ignore the stuff in bold that's the cell coordinates.

    CP264 wrote:
    I'm having a frustrating problem in Numbers. When I press the equals key and click on a cell in another table it returns as an invalid formula error. The formula is:
    [='Table 10' :: B7]
    But when I hit return it changes to
    [=Table 10 :: B7]
    When I try to enter +='Table 10' :: B7+ into a cell in some other table using a US English Numbers, the quotes around the +Table 10+ disappear when I type the B in B7. The behavior is as if Numbers is saying that the quotes are not necessary. It seems that Numbers is reparsing the formula with each key I type.
    I have tried to enter the formula manually but Numbers keeps changing what I enter. Every other cell works except that one.
    In a cell in another table when I type = and then click on cell B7 in Table 10, it creates the cell reference +Table 10 :: B7+ (no quotes).
    Could anyone replicate this for me? I want to know if it's Numbers or just me, here's how.
    I have three tables "Table 9", "Table 10" and "Table 11"
    Table 10 has five links to Table 9
    B2 [='Table 9' :: A9]
    B3 [='Table 9' :: A10]
    B4 [='Table 9' :: A11]
    B5 [='Table 9' :: A12]
    B6 [='Table 9' :: A13]
    And the sum of those linked values
    B7 [=SUM(B2:B6)]
    Table 11 should link to the sum in Table 10
    B2 [='Table 10' :: B7]
    Note, as indicated above, I'm unable to get Numbers to accept the quotes around the +Table XX+ notation.
    Pardon my ignorance, but what localization do you use in Australia? This whole thing smells a bit like a localization issue of which there have been several in Numbers (Yvan is the resident expert on this topic).
    So in some cell formulas you have quotes around the +Table XX+ and in others you don't? Do these cells all have the same format setting?

  • Transferring the values from a known range of cells (containing formulas) in Excel using Applescript

    I have my AppleScript iterating thru email messages and pasting data (which arrives via email from a web form) into following cells: range "A1:A50"
    My Excel parsing of data occurs in cell formulas on Row 52, cells in range "A52:AZ52"
    I want to copy the cells in row 52 and paste the Values (not the formulas) in successive rows underneath the formula cells, starting with row 54: range "A54:AZ54"
    In pseudo code the code snip is:
    tell worksheet "sheet1" of workbook "Example" application "Microsoft Excel"
         repeat i from 1 thru to (count emails)
              paste some of the contents of (email item i) into sheet range "A1:A50"  
                                            # the above forms about twenty lines of code to get it
                                                  into Excel's cell object list or lists
              copy or get row 52   # or range "A52:AZ52" if that's easier/faster/better
              paste or set the values of row 52 into row (53+i)
         end repeat
    end tell
    Not sure whether to use the clipboard with "paste speical…[range] with []" or copy and set value statements. I only know how to reference existing ranges, not the cell contents of the range. I really need to know how to get contents of cells into a AppleScript object (list) that I can transfer. The 2004 Excel AS documentation is not helping me, please throw me a life line someone. :-)

    One other question if I may hijack my thread, if I wanted to set the column of the range programatically how would I do that?
    I know how to programatically set the row eg.
         set x to 54
         set r to range "A" & x & ":AZ" & x
         set tVlaue to value of r
    But I need something like Column (x) to make one of {"A","B","C",…}
    but column(2) gives me $B:B$
    and: "column(2) as text" (so I can halve it) beachballs Script Debugger and Excel and I have to stop the script and restart Excel!

  • Different format in one cell by formula?

    Hi there,
    does someone know if it is possible to grab and connect text with the & operator and set different formats (bold, italic...) with a command in the formula?
    For example I have different lines in one cell done with the CHAR(10) and want to have the last line in bold format. Is this kind of manipulation possible?

    As far as I know, there is no such function.
    We may apply different styles in a cell by hand, not by a formula.
    I checked that the concatenation of the contents of cells with different styles result with a string in standard style.
    Yvan KOENIG (from FRANCE samedi 13 décembre 2008 19:44:03)

  • Cell Info Display Problem

    Past 2 days , my Nokia N71 cell info display gets stuck only showing one area or doesn't show at all, even though moving to another area doesn't change. To update cell info display i need to restart my phone or i need to go settings then i select cell info display then change to off then again on. But i have also Nokia 5700 XM but it doesn't face the same problem and it is also subscribed to same network as n71.
    my N71 fimware is V 2.0642.1.05
    Please someone give the solution to the problem.
    Best Regards

    Hi Yogeshwar,
    The Cell info display now a days displays only some Offers that are dished out by the Operator. Once upon a time it was showing the AREA where you are but thats no more there I think. Not atleast on the Vodafone network in India. And its the same on all handsets, not only Nokia X1-01. Recently I had contacted Vodafone in this regard and was told that the duration for which the info is flashed can not be increased.
    As for the signal problem hope that the Antenna is not covered by any other object.. Refer Pg.No. 7 of the User_Guide ...Else you may have to get the phone inspected by Nokia Care...

  • Numbers formula problem (sorry for that boring title)

    So I have got the following table:
    A
    B
    C
    D
    E
    F
    G
    2
    4
    3
    9
    7
    8
    1
    What I want:
    A2 = A1
    B2 = A1+B1
    C2 = A1+B1+C1
    D2 = A1+B1+C1+D1
    I want that automatically, so that I can apply that to as many columns as I have. I want a formula for the first cell and then copy the formula to the next cell, so that it chooses the right values. I don't want to type the whole alphabet.
    Many thanks for any suggestions and ideas.

    A2=sum($A$1:A1)
    this is shorthand for... select cell A2 then type (or copy and paste from here) the formula:
    =sum($A$1:A1)
    select A2, copy
    select A2 thru the end of the row, paste

  • Installed new version of numbers, when I click on cell the formula edit box will not appear what change?

    Installed iOS 8.1.2 and a new version of numbers this morning now when I attempt to edit a cell and change a formula the keyboard displays but the formula box does not display.  What changed?

    Caused by the Ask Toolbar extension in Firefox 3.6.13+, disable that extension or un-install it.

  • Dynamic calc member formula problem

    Hello Gurús!
    We are using a member called "Full Year" that is a Dynamic calc with a member formula that calls another dynamic calc. For any reason, it is not working when we try to retrieve it from Excel Add-in.
    Any ideas? Any problem for put a Dynamic Calc as member formula of antoher Dynamic calc?
    Thanks for your time!
    Regards,
    Ariel

    that can be the problem, depending on what dimension they are in, the order the two pass occurs could couse you issues. In cases like this I've had to put the entire calculation into the member I wanted to calculate and bypass the dependency

  • GETPIVOTDATA formula problem with apostrophe

    Excel 2010 on Win7 - Having a problem with the GETPIVOTDATA formula.
    GETPIVOTDATA(data_field, pivot_table[, field1, item1]
    If "data_field", "field1" or "item1" contain a value that has an apostrophe (i.e. single quote), the function returns a #REF! error. It works fine in all other cases. I tried placing those values within brackets (ex: "[Moody's]")
    and using the old SQL trick of doubling up the apostrophe (ex: "Moody''s"), and combining both those methods. But no luck. Has anyone else been able to solve this problem?
    Thanks.

    Hi Marak,
    Thank you for posting in the MSDN Forum.
    Since the issue is more relate to the end-user, I'd like to move it to Excel IT pro forum.
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
    Thanks for your understanding.
    Best regards
    Fei
    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.

  • Formula problems

    Hello,
    I've a problem with a formula in CR XI which I can't solve. I hope that some here can help me.
    The problem is:
    Sum({@formule})
    The warning is:
    Cannot summarize this field.
    How can I solve this?

    Hi Erwin,
    Try below Steps:
    1. Create these three formulas:
    @Formula 1
    WhilePrintingRecords;
    NumberVar RunningTotal;
    RunningTotal := 0
    @Formula 2
    WhilePrintingRecords;
    NumberVar RunningTotal;
    RunningTotal := RunningTotal + {@formula field}
    //Substitute your formula field name for {@formula field}, In your case it is @formule
    @Formula 3
    WhilePrintingRecords;
    NumberVar RunningTotal;
    RunningTotal;
    2. Insert the formulas on the report:
    u2022 Place {@Formula 1} in the Group Header section (you can suppress this formula if you want)
    u2022 Place {@Formula 2} in the Detail section (you can suppress this formula if you want)
    u2022 Place {@Formula 3} in the Group Footer section.
    To change how often this running total resets or displays, you can move @Formula 1 and/or @Formula 3 to other sections. For example, to have this running total act like a grand total, move @Formula 1 to the Report Header, and move @Formula 3 to the Report Footer.
    In your case, you can try below:
    u2022 Place {@Formula 2} in the section where you have placed your @formule field (Place this formula next to the @formule field)
    u2022 Place {@Formula 3} in the section where you want the Grand total to be displayed. (For instance Report Header)
    Regards,
    Alpana

Maybe you are looking for