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

Similar Messages

  • 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.

  • 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)

  • 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.

  • Can't drag down a cell containing formula

    I've created a simple balance sheet (incoming outgoing) as I've done many times before.
    I can't drag down a cell containing the formula which creates the total balance, which I normally do by clicking on the cell, hovering over the bottom right hand corner until the + appears and then drag that down to cells below, which usually continues the formula.
    Here's the thing - I used to be able to do this in this document and I still can in another group of cells within the same document. It appears that this cell has become locked.
    I've tried deleting the entire column and starting from the top, but again, it won't drag down.
    Any ideas?
    Thanks in anticipation.
    Phil

    Hello
    Having the sheet in front of me gives the soluce.
    You merged cells from column F and cells from column G.
    When this is done we can't use the fill down feature.
    Use Split into Columns to separate cells F from cells G and you will get the original behaviour
    Yvan KOENIG (from FRANCE vendredi 18 avril 2008 16:47:49)

  • Click on a cell in formula doesn't return value, only text. why?

    When doing a simple formula like =c4-c5 in one of my sheets, when i click on the cell, it doesn't return the value, only text.
    What setting do i have enabled/disabled?
    thanks
    hamdog

    HI Hamdog,
    What you are seeing is the formula that is in that cell.
    The setting you have turned on is the first one in the bottom section of the General page of Numbers Preferences. In the English versions, it looks like this:
    With the checkbox unchecked (as mine is), the formula would read:
    =L10-P10
    Column L is labeled "Tips", Column P is labeled "Lenka", Row 10 is labeled "9. 2. 2013"
    To Copy and Paste the result, 462, click (once) on the cell and Copy, then click (once) on the cell where you want to paste the result and go Edit > Paste Values. This should be the seventh item (not including the separator line) in the Edit menu.
    Regards,
    Barry
    Regards,
    Barry

  • 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

  • Referencing single cells in formulas

    Hello there.
    Let us assume the following expression:
    =$D$4
    What I am doing:
    1. Select a cell and tap twice to show the keyboard.
    2. Tap =
    3. Tap cell D4. The input panel shows D4 with an arrow.
    4. Tap the arrow and select Start: preserve row and preserve column. Leave End untouched.
    5. The reference becomes =$D$4:D4 when I want just =$D$4
    Please, what is wrong?
    Numbers Brazilian Portuguese version.
    Best regards,
    Otávio

    Hi Otávio
    If you want to keep your D4 cell, as a permanent cell, you will have to turn on "Preserve Row" and "Preserve Column" in both Start and End. Then it will give you $D$4.
    If you do only turn it on in start, i suppose, that it wont change that number, if you copy the formula to a lower row or column. So just tick on all options
    Best regards
    Ole

  • Use arrows to select another cell in formula??

    In Numbers, say I need to reference another cell when i enter a formula, is there a way to use arrows for example to select the cell i want for my formula just like MS Excel?

    Hi weiliang,
    On my machine (Macbook Pro, Numbers 3.0.1, OS X Mavericks) the arrow keys simply move the cursor within the Formula Editor. They do not move to another cell. I have to click on another cell (or type the cell reference) to include it in a formula. Same in Numbers 2.3 (Numbers '09).
    Regards,
    Ian.

  • Simple "Find" question -- How to find values in cells with formulas?

    Sorry if this is a stupid question but I don't find the answer. I have a table with values that are all computed via complex formulas. I want to FIND, say, when the value is 19. I can't find a way to do it: If I use the "find" command and type 19, the program finds when 19 is written INSIDE the formulas, e. g., it finds the cell where a formula is thus defined:
    =Table Correct Responses :: A19
    but does NOT find the cell with VALUE 19.
    Tried different syntax combinations without success. Any idea?
    Cheers,
    l.

    My two cents:
    Select the entire table.
    Cells Inspector.
    Define a rule like the one I uses here.
    It will highlight the cells whose value matches the condition.
    Yvan KOENIG (from FRANCE lundi 26 mai 2008 17:53:33)

  • Importing cells and formulas from Excel?

    We are currently using Excel for our time sheets. We are trying to get away from that and are looking into using Adobe reader for our users to fill in their information. We use LiveCycle to design our forms, and I was wondering if there was a way to import out page layout and formulas from Excel to LiveCyle? If not, is there an easy way to set up formulas similar to =SUM(C19:C25)?

    Page layout, yes. Formulae, no. You would need to learn the equivalent
    Acrobat or Designer concepts and convert each file, each field.
    Aandi Inston

  • Chart cells with Formulas?

    I am attempting to chart a row of calcuated percentages. When I select the row and create a 3D line chart its blank with no series. Why?

    That's not a bug, Michael, it's the designed behaviour. Labels are picked up from the header row or column automatically, as may be seen in the example in my previous post.
    Row 1, containing the labels, is a header row. Column A, containing the series label, is a header column. Note that the labels in this row appear as category axis labels on the chart, and the "Percentage" label in column A appears as the series label in the legend below the chart.
    Apple provides some excellent documentation for Numbers; the Numbers '09 User Guide, downloadable via the Help menu in Numbers. As a newcomer to Numbers, you would benefit greatly by reading at least the first four chapters of this guide. With respect to your curent question, you'll find a more detailed answer in Chapter 7, Creating Charts from Data. The rest can be set aside for reference on an as needed basis.
    If you are writing formulas for your spreadsheet documents, you will also want the iWork Formulas and Functions User Guide, available via the same route.
    Regards,
    Barry

  • Referring to cells in another file

    I'm trying to link to values inside cells to a different Numbers file. Is this possible? I've searched the forums, the web, and the help file of Numbers but couldn't find an answer.
    In Excel, I simply pressed the equal sign, browsed the file and clicked the cells i needed.
    Thanks in advance!

    Hello
    At this time this feature is unavailable.
    Maybe it will be unavailable for ever because the Numbers'team may think that there is no need for such a feature as we may gather what we where accustomed to put in different documents in a single Numbers one.
    For instance, I gathered my annual checkbooks in a single documents and I divided every annual one in monthly tables.
    If you really want this feature,
    go to "Provide Numbers Feedback" in the "Numbers" menu
    and describe what you want and why you need it.
    Yvan KOENIG (from FRANCE lundi 29 octobre 2007 14:33:14)

  • How can I get an image in a cell to copy to another cell using formula?

    I have an jpeg image in a table that I want to be copied to 2 other tables automatically?
    Thanks for any help provided

    This is not possible in Numbers as-is.  Perhaps with an Applescript.

Maybe you are looking for