Cell references in cell references

I can't figure out how to delete this topic. It's been posted in the more appropriate forum here: http://discussions.apple.com/thread.jspa?threadID=2197761

I found a workaround using VLOOKUP.
However, now I have a bunch of ugly nested IF statements. Ideally I'd be able to refer to the table name via a cell value instead of this mess. Any ideas?
=
IF($A16="data A",
VLOOKUP($B16,data A :: $A$2:$D$31,2),
IF($A16="data B",
VLOOKUP($B16,data B :: $A$2:$D$31,2),
0))

Similar Messages

  • Can I use a cell value to reference a table on another sheet?

    I'm not sure if this is possible and I have had no luck with searches, here is what I am attempting to do...
    On my first sheet I have a number of tables, each holding information on a service. Each table is named to match the service name.
    On another sheet I have a list of clients that use these services, with the service name (to match the table name on the first sheet) in a cell in the client's row.
    I would like to pull data from one of the cells on the Service table to include it in a concatenate formula in the clients row.
    I was hoping to be able to use the value of the cell with the service name in it as part of the formula to reference the service sheet...
    For example:
    ="something"&Services::B2::C6&"something"
    Is this possible, or is there a way I can work around the auto corrections that numbers keeps applying?
    Cheers

    you can construct the text of a cell reference as a string by concatenating information then use the function indirect() to turn the string into a reference.
    so you would do something like:
    =indirect("something"&Services::B2::C6&"something")
    this is assuming that "something"&Services::B2::C6&"something"  results in a string that would be a valid reference.

  • In Numbers, how can I make a cell reference a constant in a formula?

    This is a basic question, but I am not sure of the answer. I am trying to calculate a previous SUM that I have by a column. But when I calculate it, it keeps looking for data in the cells after the SUM that I already have.
    In other words, how can I get a constant cells value into my equation?
    Any help would be great!
    (In excel, I could do it just by placing $ around my cell field. Like H23 would be $H23$. THanks!)

    JJ,
    Numbers works exactly like Excel in this regard. To change H23 from a reference that will change if the formula is moved to a fixed cell reference, make it $H$23.
    Regards,
    Jerry

  • 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

  • Need to reference a cell using a variable or cell value.

    Hi.
    I am trying to build a master sheet and then have sub sheets that detail the information from the master. My master sheet looks like this:
    1 | 101 | Bob | Smith |
    2 | 104 | Sally | Jones |
    3 | 108 | Tim | Abbott |
    Then on separate sheets I want a summary for each line like this:
    1 | Name | Bob |
    2 | ID | 101 |
    Now, I know I could just build this by creating references to the master sheet, but in reality my sheets are far more complex and I really need to be able to reference them by line number. So I would like to have a hidden cell (say AA1) on each summary which designates the line and then reference Master:B{AA1}. I did this years ago on excel but have no idea how I did it or howo to do it in Numbers.
    Any help is greatly appreciated.
    Thom

    Hi 86,
    Rearrange your table then add another table to find the result:
    A2 in Table 1-1 will find the earliest date in Table 1 without having to sort Table 1.
    A2 contains this formula
    =MIN(Table 1::A)
    B2 in Table 1-1 uses VLOOKUP to find which ID matches that MIN date.
    The reason for rearranging your table (Table 1) is that VLOOKUP compares a search value to the values in the leftmost column of a specified collection.
    (in this case, it looks in the leftmost column of the range Table1::A:B, then returns a match from column 2 of that range).
    I forgot to include "Exact Match" in the VLOOKUP formula. Is that what you want, or "Close Match"?
    Edit: I don't suppose that matters because MIN will always give an exact match. Duh!
    Regards,
    Ian.

  • How can I dynamically reference a sheet based upon the contents of a cell

    I'm using Numbers to store specifications for various products. Each sheet stores specifications in a standard manner (i.e. same table and cell names) and the sheet is named according to the name of the product.
    On another sheet I've got a dropdown list containing the names of the product tabs. I'd like to dynamically pull data for a particular product when it's sheet is selected in the dropdown list by using the dropdown cell in a reference like:
    =B1::STC::A4, where B1 is the dropdown list and STC::A4 is the product specification table and cell reference.
    When I use this, the B1 reference fails.
    Any suggestions would be greatly appreciated.
    Thanks.

    Amos,
    you will have to use the indirect function to convert the string you are creating into a valid reference.
    Note:  The Sheet names, Table names and cell references must all match exacty.
    If the sheets are named "B1", "C1" and "D1" and the popup menu is in the cell A1 and contains the strings:
    B1
    C1
    D1
    The table name is "STC"
    then you can create a valid reference like this:
    = indirect(A1&"::STC::A4")
    if the table name were also dynamic and were stored in cell A2 you could create the reference like this:
    = indirect(A1&"::"&A2&"::A4")

  • How do I make the column portion of a relative cell reference change based on a separate cell

    I have a relative cell reference K8  in a formula (k8/c8) and I want to obtain the column portion (K) of this relative cell reference from another cell at the top of the column this formula is in. This will make it very easy for me to change many formulas
    all at once simply by changing the contents of the header cell to reflect the column that I want to reference in the original formula. For instance the other cell may contain the letter M which would then change all of the formulas to m8/c8.
    I know I can change on cell and copy the formula to the other cells but then I have to do a copy and format paste to get all of my unique formatting back. The original formula frequently change with respect to the columns being measured.
    Thank you...even if I can't get there from here.

    Let's say that cell A1 contains the letter K, and that your formula is in a cell in row 8. You can change the formula to
    =INDIRECT($A$1 & ROW()) / INDIRECT("C" & ROW())
    This formula can be filled down (or up).
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • Cell reference Parameters in Connection properties of Excel are not saved, how do I fix this?

    Hi!
    I'm using excels pivot table function to grab data from my MS access db through ODBC connection.
    I've set up the connections with parameters for my selection criteria or the "where" clause if you read the SQL statement. The parameters I use refer to cell values on in my workbook.
    My problem is that the parameters are empty every time I reopen the workbook. This creates several problems. If I attempt to refresh the connection Excel crashes. If I attempt to save the workbook excel will crash.
    So I have to manually re-input the parameters for each connection I have in the workbook. The parameters function and the ability to use cell values as the parameters is great and opens up for great possibilities. But it seems it's not working?
    I even opened the xml file in the .xlsx container and found where the information for the parameters reference is stored. And it was present the connections.xml as:
     <parameter name="From YYYYMM" sqlType="4" parameterType="cell" cell="Admin!$C$5" />
    Which tells me there is nothing wrong with my saved xlsx file.
    Is there any way around the problem?
    Regards, Erik

    Hi Jaynet, thanks for your reply.
    My cells do contain values so that's no problem. It's a very simple setup where I have 2x6 cells with a couple of parameters that are to be used by all my connections in the workbook.
    Using vb code to update the "forgotten" parameters inside the connections was something I also was thinking could be a solution. Just felt it would be a shame when the functionality for what I'm trying to do cleary has been built
    in to excel in a very simple way through the UI.
    Before I go down the vb route I'm gonna see if I can find more info about any fixes for this bug in excel, maybe a hot patch or something like that. (I can't speak vb so building such a thing is going to take a while for me as I have to take bits
    and pieces I find around the web to get stuff working) :)

  • Is it possible to reference one cell from the value of another?

    Is it possible to reference one cell from the value of another e.g.
    value of b1 = value of c(value of a1)
    So if a1 = 3 then b1 = c3, if a1 = 5 then b1 = c5.

    Excellent!
    Thanks Wayne. Just saved me many hours and a headache.
    Works like a dream.
    Thank you for your succinct (and accurate) answer.
    Mark

  • Is it possible to copy and paste a formula without changing the cell references?

    I am trying to paste a formula to a cell adjacent to where it currently is but when I do, the cell references in it change. I am trying to get exactly the same formula in the cell (without re-typing it).

    dedwards96 wrote:
    Just another quick question, is it possible to make a large number of cell references 'absolute'?
    Individual cell references in formulas may have four distinct states: relative, absolute column, absolute row, or absolute column and row. These are set using the popup menu on the reference itself. Click on the reference in the formula and choose one of the four states from the popup menu.
    Once set, you can fill the formula into the rest of a column or row using the Fill Handle (small circle at the lower right of a selected cell). Cell references in the new copies of the formula will remain absolute or adjst to their new position dependent on the setting for each reference. You can also copy and paste the cell (single click to select it, command-C to copy) with the same results.
    You can also copy/paste without changing the formula's cell references if you select the formula (Drag across the formula in the entry bar, copy, press tab to deselect and reconfirm the formula in the original cell) rather than the cell. Pasted into a new cell, the formula will appear as if you typed it in exactly as it was in the original cell—neither absolute references nor relative references will have changed.
    Regards,
    Barry

  • How do I reference a table in a cell so that when I type in a word, other cells in that row are automatically filled in?

    I'm making a cheat sheet for my fantasy football league. To this point I have separate sheets that list players at various positions (the sheets are characterized by the positions they cover i.e. quarterback/running back etc). I also have at the end a table that lists a team abbreviation (identical to how I would reference the team in the other sheets) with that team's bye week and schedule listed.
    I want to be able to type a team name next to a player's name and have that team's information be filled into the cells on the same row, by referencing that table I have at the end.
    Can anyone help? Very much appreciated. Thanks.

    Take a look at VLOOKUP in the iWork Formulas and Functions User Guide.
    You'll also find several discussions here on essentially the same question by searching for VLOOKUP. Also check the More Like This list to the right of these messages.
    Regards,
    Barry
    PS: The iWork Formulas and Functions User Guide may be downloaded via the Help menu in Numbers.
    B

  • Absolute cell reference in formula does not work when sorting. Previously posted solution does not work.

    I have two worksheets. Worksheet A has 5 columns. First Name, Last Name, Donation Amount, Donation Date, Contact Person. On the other worksheet I am trying to get the donations done or enabled by a certain
    contact person.  My formula is a simple addition: 
    ='Board_Donations_2013-2014'!D7+'Board_Donations_2013-2014'!D284
    It's a simple addition but when I sort Worksheet A by first name, or last name or any other way the amount/number on the cells change. D7 for example is $5,000, but when I sort the list by a different parameter
    it becomes $20,000 or whatever amount is on that cell now. I tried to use absolute reference, but it still changes.
    I want the amount/number on the cell (in this case D7 or D284) to stay consistent in the formula after sorting, not the cell location itself.
    I have office XP and Excel 2010.
    Any suggestions?
    Thanks,
    Rose

    Hi,
    Based on your required, we may add a Vlookup formula in the calculation process. It'll help us keep the relevant name & donation amount value after sorting. Please see the below image:
    Formula: =SUM(VLOOKUP("jonh",A2:E4,3,0),VLOOKUP("luna",A2:E4,3,0))
    http://office.microsoft.com/en-us/excel-help/vlookup-HP005209335.aspx
    Regards,
    George Zhao
    TechNet Community Support

  • How do I reference cells from a different table/ sheet in the same document

    Say I have a Sheet that contains two Tables: [A] and . Is it possible to cross-reference the content of a cell in Table [A] from Table and use it to create a function in Table ?
    Eg: =SUM[TableA(K20)]+[TableB(F20:F50)]
    Could I similarly cross-reference the content of cells in Tables in different Sheets?
    Thanks,
    Seb

    Seb,
    Yes, you can. With the cursor in the location where you want to place the external reference, navigate to your Sheet and Table of choice and click the cell that you wish to reference. The external reference will appear in the formula.
    Note however that we are talking about different sheets in the same Numbers file. We can't reference sheets or tables in other files.
    Jerry
    Message was edited by: Jerrold Green1

  • GetPivotData with cell reference in a Table

    I was told that this might be a better place to post this question than Microsoft Answers for Office.
    I have a Table in which I need to use a GetPivotData function.  I need to use a cell reference in that GetPivotData function.  I have done this before with no problem in a normal cell range, but it seems like the syntax when using a Table screws
    things up.  Can anyone help me out here?
    The GetPivotTable function would normally look like this if not in a Table.
    =GETPIVOTDATA("[Measures].[Total Blocked Dollars]",'Sheet2'!$A$4,"[Dim Prod Ctrl No].[By Prod Ctrl No]","[Dim Prod Ctrl No].[By Prod Ctrl No].&[18418]")
    That formula sits in a column called "Block" in my Table.  The 18418 sits in a column called "ID" in my table.  So what I have tried is:
    =GETPIVOTDATA("[Measures].[Total Blocked Dollars]",'--Report Blocks--'!$A$4,"[Dim Prod Ctrl No].[By Prod Ctrl No]",concatenate("[Dim Prod Ctrl No].[By Prod Ctrl No].&[",[@[ID]],"]"))
    I have tried a few combinations like this but I can't seem to use a cell reference from a table (which requires the [@[field]] syntax) to work with the GetPivotData.
    Any ideas?
    Thanks!

    That's not the issue.  The GETPIVOTDATA function is actually IN a table.  The arguments for the GETPIVOTDATA function need to reference a cell/column in the table, and it's only PART of the argument that needs to be replaced.  In the example
    below the 18418 needs to be replaced with the data in the same row of the table in a column named ID.
    =GETPIVOTDATA("[Measures].[Total Blocked Dollars]",'Sheet2'!$A$4,"[Dim Prod Ctrl No].[By Prod Ctrl No]","[Dim Prod Ctrl No].[By Prod Ctrl No].&[18418]")
    Does that clarify any?
    Thanks for the response!

  • How do i copy a cell reference to another tab in a sheet

    I need to copy a cell reference in another tab in a sheet, but do not know how..

    Connect the two computers by ethernet cable, LAN or Target Disk Mode, Transferring files between two computers using FireWire, and just drag the iPhoto Library package from Mac A to Mac B.

  • How do I make a cell reference the condition in a COUNTIF statement?

    I have a formula:
    =COUNTIF(Funds Under Management by Client :: D2:D91,">3.0")
    However, I want to replace the condition '3.0' with a reference to another cell eg B2 so that I can play around with different values and have them immediately reflected in the COUNTIF total. Problem is, I can't find the right syntax to achieve this. I want the formula to actually look something like this:
    =COUNTIF(Funds Under Management by Client :: D2:D91,">B2")
    Is this possible, and if so, how do I do it? Making the formula refer to a cell saves me from having to manually change 90 odd cells in the spreadsheet every time I want to vary the criteria.
    TIA
    Message was edited by: Basilisk

    Fantastic! That worked great. Many thanks for your help. Simple when you know how!
    Message was edited by: Basilisk

Maybe you are looking for

  • I Really Need Help With My IPod!!!

    Ok. Whenever I push a button on my ipod the apple pops up and then an ipod with a sad face pops up. I have reset it. That has done nothing. Whenever I put it into disk mode i'll connect it to my computer then the computer will read it but after a few

  • I Photo will not update after migrating from old I-Mac to new I-Mac with fusion drive

    I just migrated from 2009 I-Mac with Mountain Lion to New I-Mac with Mountain Lion with migration Assistant. Now... I tunes will not update although Apple says one is available

  • JFrame resizing setUndecorated(true)

    I have a JFrame that it's title bar has several Images. In Order to set these images I used setUndecorated(true) and added the images with panels to the north area of the panel. After this change my Frame has a fixed size. I implementes MouseListener

  • Error while configuring Crypto PKI in Cisco2911

    HI , I am trying to configure Crypto PKI in ciscio 2911, Once i configured the root certificate for the router , i can see the validity date wrongly but the same certificate is fine in the other devices . show crypto pki certificates CA Certificate  

  • Sharing the calendar of iPhone

    how can i share my iphone calender with my friends? can  i do that or i cant?