Basing one cell value off of another

Hello
I have been searching the internet for the last few hours, and have come up empty handed, so I figured I would post here.
Lets say I have a "Pop-up" menu with three items in cell A4.  The Pop up menu values are 1, 2, and 3
Now lets say I have a different cell (B6 for example) whose values I want to change based upon the Pop Up Menu selection.
Normally I would do something along the lines of this in cell B6.
=IF(A4=1,"7", IF(A4=2,"6", IF(A4=3,"5"))) or something like that.
However what I am trying to do is make B6 editable after my selection.  So pretty much when I select say "2" from the pop up menu, I want B6 to display 6 and then I want to be able to change that value (in this case 6) manually without getting rid of the formula.  Putting it in simpler terms, I want to be able to select a "preset" for a few cells from the pop up, and then edit the "preset" to my liking.  I have no idea how to go about this in numbers, and have been searching for the last few hours, so any help would be appreciated. My guess is that no such thing can exist, but any solution, hint or tip, would really help me out.
Thanks.

Hello,
At its core, this is the same question as you posed later under the heading Editing a cell without deleting the formula. Your guess is correct. Further details in your other thread.
Regards,
Barry
PS: As written your formula will return the text strings "7", "6" or "5" for numerical values of 1, 2 or 3 respectively in A4. If you want the results to be numbers, rather than text, leave off the quotation marks. Also missing from your formula is the specification of what result to return if A4 contains a value other than 1, 2 or 3.
B

Similar Messages

  • Dragging one cell value(copy) across columns or across rows in ALV layout

    Hi friends,
    In bps layouts, data is displayed in ALV grid as interface. At plng folder level, can i incorporate excel feature like dragging one cell value across columns or across rows?  Simply if user enter one value in cell of ALV grid, that should be copied automatically across rows/columns while dragging?
    Second question, even i chose in layout builder excel as interface, that layout showed in plng folder as ALV grid layout. Why it happens so. I read documentation in UPSPM of that particular plng folder, it tells same thing(even if u choose excel, it will show in ALV only). So how can i get excel interface in plng folder?
    Regards,
    Kumar

    requested property is not possible at ALV layout level. Provided text document load facility to user. So user can directly load excel to plng folder.
    Issue resolved.

  • Custom itemRenderer component based on cell value: error 1009

    I'm working on an item renderer for a dataGrid that has different states depending on the cell and row values.
    The cell value is a toggle (true or null), and sets whether content should be shown in the cell or not
    The row properties determine what is shown when the cell value is true.
    The dataGrid dataProvider is populated based on user id input.
    I created the itemRenderer as a custom actionscript component, closely following this example:
    360Flex Sample: Implementing IDropInListItemRenderer to create a reusable itemRenderer
    However, my component results in Error #1009 (Cannot access a property or method of a null object reference) when a user id is submitted.
    package components
         import mx.containers.VBox;
         import mx.controls.*;     import mx.controls.dataGridClasses.DataGridListData;
         import mx.controls.listClasses.BaseListData;
         import mx.core.*;
         public class toggleCellRenderer extends VBox
              public function ToggleCellRenderer()
              {super();}
              private var _listData:BaseListData;   
                   private var cellState:String;
                   private var cellIcon:Image;
                   private var imagePath:String;
                   private var imageHeight:int;
                   private var qty:String = data.qtyPerTime;
                   private var typ:String = data.type;
              public function get listData():BaseListData
                   {return _listData;}
              public function set listData(value:BaseListData):void
                   {_listData = value;}
              override public function set data(value:Object):void {
                   super.data = value;
                   if (value != null)
                   //errors on next line: Error #1009: Cannot access a property or method of a null object reference.
                   {cellState = value[DataGridListData(_listData).dataField]}
              override protected function createChildren():void {
                   removeAllChildren();
                   if(cellState=='true'){
                        cellIcon = new Image();
                        addChild(cellIcon);
                   //there is another state here that adds another child...
              //next overrides commitProperties()...
    There are no errors if I don't use an itemRenderer--the cells correctly toggle between "true" and empty when clicked.
    I also tried a simple itemRenderer component that disregards the cell value and shows in image based off row data--this works fine without errors or crashing. But I need to tie it to the cell value!
    I have very limited experience programming, in Flex or any other language. Any help would be appreciated.

    Your assumption that the xml file either loads with "true" or nothing  is right.
    After modifying the code to the following, I don't get the error, but it's still not reading the cell value correctly.
    package components
         import mx.containers.VBox;
         import mx.controls.*;   
         import mx.controls.dataGridClasses.DataGridListData;
         import mx.controls.listClasses.BaseListData;
         import mx.core.*;
         public class toggleCellRenderer extends VBox
              public function ToggleCellRenderer()
               super();
              private var _listData:BaseListData;   
              private var cellState:Boolean;
              private var cellIcon:Image;
              private var imagePath:String;
              private var imageHeight:int;
              private var qty:String;
              private var typ:String;
               public function get listData():BaseListData
                 return _listData;
              override public function set data(value:Object):void {
                   cellState = false;
                   if (listData && listData is DataGridListData && DataGridListData(listData).dataField != null){
                       super.data = value;
                       if (value[DataGridListData(this.listData).dataField] == "true"){
                           cellState = true;
              override protected function createChildren():void {
                   removeAllChildren();
                   if(cellState==true){
                        cellIcon = new Image();
                        addChild(cellIcon);
                   //there is another state here that adds another child...
              //next overrides commitProperties()...
    - didn't set the value of qty or typ in the variable declarations (error 1009 by this too--I removed this before but wanted to point out in case its useful)
    - added back in the get listData() function so I could use the listData
    - changed the null check
    All cells are still returning cellState = false when some are set to true, even if I comment out [if (value[DataGridListData(this.listData).dataField] == "true")] and just have it look for non-null data. That shouldn't make a difference anyway, but it confirms that all cells are returning null value.
    Swapping out the first if statement in set data with different variables results in the following:
    [if (listData != null)]  all cells return null (cellState=false for all)
    both [if (value != null)] and  [if (DataGridListData != null)]  results in error 1009 on a line following the if, so I assume they return non-null values.
    All rows have data, just not all fields in all rows, so shouldn't listData be non-null?  Could it be that the xml file hasn't fully loaded before the itemRenderer kicks in?
    I also realized  I had removed the item renderer from many of the columns for testing, and since some columns are hidden by default only one column in the view was using the itemRenderer--hence the single alert per row I was worried about earlier.
    Thanks for your help so far.

  • Find a range of numbers in one cell and output in another

    Here I am again with something I just can't seem to find an answer to:
    I need to find the range of numbers in one cell and place that value in another, like so:
    Cell A1 says: "3 - 8"
    Cell A2 returns: 5
    Any simple formula to do this?

    Hi gunkie83,
    Yvan's formula does perform properly. He stated: Here the decimal separator is comma so Numbers use the semi-colon as parameters separator but the formula is OK. CAUTION, here I left the semi-colons.
    Yvan is in France using the French version of iWork. For the U.S.A. semicolons need to be changed to a comas as I have in the following formulae.
    =VALUE(LEFT(A,SEARCH("-",A)-1))-VALUE(RIGHT(A,LEN(A)-SEARCH("-",A)))
    this returns -5
    =ABS(VALUE(LEFT(A,SEARCH("-",A)-1))-VALUE(RIGHT(A,LEN(A)-SEARCH("-",A))))
    this returns 5
    One important observation in cell A2 the text reads as 3 - 8 not 3-8. Also it can be inputted as 3 -8 but not 3- 8. Watch those spaces. Fun huh.
    Hope this helps. Again Yvan thank you.
    Cordially,
    RicD

  • How do I use the formula = to enter one cell as a % of another cell

    I wish to enter into a seperate cell what one cell is as a % of another cell in numbers. How do I enter this % formula into the required cell.
    Peter

    Jalna,
    In "a separate cell" write: one-cell's-address / another-cells-address.
    Format separate-cell to %.
    Jerry
    Edit: I just noticed that your question is about iOS Numbers. So, the answer for iOS Numbers would probably be something like:
    Click in "a separate cell". Enter formula mode. Click on "one-cell", select  "/" operator, click on "another-cell". Exit formula mode. Format as %.
    Can you tell I'm just guessing?
    J.

  • Conditional Formatting - how to change cell colour based on cell value

    I am in the process of moving some Excel spreadsheets into Numbers on my iPad. The Excel spreadsheet had conditional formatting in certain cells. If the cell value was less than a certain amount (<46 for example), the cell background would automatically turn yellow.
    Is there any way to make Numbers on iPad do this?
    Thanks for any help you can provide.
    Scott

    I beleive this is one of those doable tings on desktop that gets taken out on ipad. If you would like to suggest this as an idea for apple to put in, please go to http://www.apple.com/feedback

  • Entire row conditional formatting based on cell value

    What is the best way to apply conditional formatting to an entire row based on the value of one of the columns on that row? For example, I just want to highlight the entire row (make it red color) if the value of one of the columns is greater than 0. The method described in the past discussions is just way to difficult to apply in real life scenarios. I think it should work without any tricks as it's just a very basic functionality of spreadsheets.

    The other idea is to make a second table, which has a single column and is as wide as the first table.  This second table will reference the value in the first table which indicates how to shade and is formatted with conditional formatting.  The second table is slid behind the first, AND the first is made transparent.
    - Bottom table refers to original (top) table
    bottom table contains conditional formatting as:
    Now make the original table transparent by selecting the table and changing the background fill to none.
    Now send the second table to the back by selecting the table then the menu item "Arrange > Send to Back"
    Now slide the second table under the original

  • Conditional Format based on cell value

    For example; want to turn a cell yellow if its value is less than another cell value.
    Is this possible?
    Conditional format rules don't seem to like cell references.

    There are many ways to call attention to a value that needs to be emphasized because of its relationship to other values. What you decide to do will be influenced by how particular you are about the end result vs. the trouble that you will have to go through to achieve it. When other cells need to reference a cell that may be either text or numeric, you can use the TRIM function, or other text functions, to remove interfering characters. Here's an example, where you can see the last row multiplying the previous, manipulated row, by 2.
    Also, all the cells are formatted as Currency, with to ill effect. In the example I left the cells with the conditional format in default alignment so you could see the added space character against the left margin of the cell.
    I think the easiest way to call attention to a cell is to add an adjacent row of column with a conditional expression that 'lights-up' when there is an alarm condition.
    Jerry

  • Insert values to one table based on a value inserted into another table

    Hi,
    I've got a form based off a report which creates a new project. I've added an additional process to this form to insert four new values into another table as soon as the new project is created and the PK for that project is generated. This was working last week (of course!) and now seems to not work at all. It's complaining that the PK I was getting from my first insert was null. Here is one the the statements in my process I'm trying to run:
    insert into week_group values(week_group_seq.nextval, (SELECT trunc(NEXT_DAY(SYSDATE, 'FRIDAY')) FROM dual), 0, '', :P45_PROJECT_SEQ, sysdate, :APP_USER);
    The complaint I get that it's getting null where :P45_PROJECT_SEQ should be.
    Thoughts?
    Thanks,
    Jon

    Hi Andy,
    Thanks for the tip. Those two values didn't match and I updated them so they do and I'm still getting a "cannot insert NULL..." error.
    When I turn on debug I see that I'm getting the PK and I see the value. Here's my debug output:
    0.24: ...Process "Get PK": PLSQL (AFTER_SUBMIT) declare function get_pk return varchar2 is begin for c1 in (select PROJECT_SEQ.nextval next_val from dual) loop return c1.next_val; end loop; end; begin :P45_PROJECT_SEQ := get_pk; end;
    0.25: ...Session State: Saved Item "P45_PROJECT_SEQ" New Value="252"
    0.25: ...Process "Process Row of PROJECT": DML_PROCESS_ROW (AFTER_SUBMIT) #OWNER#:PROJECT:P45_PROJECT_SEQ:PROJECT_SEQ|IUD
    0.26: ...Session State: Save "P45_PROJECT_SEQ" - saving same value: "252"
    0.26: ...Process "reset page": CLEAR_CACHE_FOR_PAGES (AFTER_SUBMIT) 45
    0.27: Nulling cache for application "120" page: 45
    0.27: ...Process "Add Week Groups": PLSQL (AFTER_SUBMIT) insert into week_group values(week_group_seq.nextval, (SELECT trunc(NEXT_DAY(SYSDATE, 'FRIDAY')) FROM dual), 0, '', :P45_PROJECT_SEQ, sysdate, :APP_USER); insert into week_group values(week_group_seq.nextval, (SELECT trunc(NEXT_DAY(SYSDATE, 'FRIDAY') +
    0.28: Encountered unhandled exception in process type PLSQL
    0.28: Show ERROR page...
    0.28: Performing rollback...
    I notice that when it runs my process "Add Week Groups" it's not displaying all of the SQL. But the SQL is fine, it's right here:
    insert into week_group values(week_group_seq.nextval, (SELECT trunc(NEXT_DAY(SYSDATE, 'FRIDAY')) FROM dual), 0, '', :P45_PROJECT_SEQ, sysdate, :APP_USER);
    Hmmm....what about the "reset page" action in the last of the 0.26 lines?
    Thanks,
    Jon

  • Problem updating a control on one panel based on a value change in another control on a different panel

    Hi,
    I am trying to update the value of a control on one panel when the value of another control on a different panel is changed.  The two panels are saved in two different .uir files, so there are two associated .h files generated by CVI.  The problem is that, inside the callback function for the control that is being modified (Ctrl_Id_A on Panel_A), when I call SetCtrlVal(Panel_B, Ctrl_Id_B, Value); 'Panel_B' and 'Ctrl_Id_B' (which have the same numeric values as Panel_A = 1 and Ctrl_Id_A = 2 in their respective .h files) are being interpreted as Panel_A and Ctrl_Id_A.  I never understood how CVI makes this distinction, eg. knowing which of PANEL_A = 1 and PANEL_B = 1 is being referred to, but didn't worry about it since I never needed cross-communication between panels until now.  Any help on how to implement this would be greatly appreciated.  Thanks!
    Solved!
    Go to Solution.

    This is a basic issue on which you can find tons of forum posts
    The online help for the function recitates:
    int SetCtrlVal (int panelHandle, int controlID, ...);
    Parameters
    Input
    Name
    Type
    Description
    panelHandle
    int
    Specifier for a particular panel that is currently in memory. You obtain this
    handle from LoadPanel, NewPanel, or DuplicatePanel.
    controlID
    int
    The defined constant, located in the .uir header file, that you assigned to the control in the User Interface Editor, or the ID returned by NewCtrl or DuplicateCtrl.
    value
    New value of the control. The data type of value must match the data type of the control.
    That is, you must not use the panel constant name in the first parameter of SetCtrlVal, use the panel handle instead. The system guarantees that all panel handles are unique throughout the whole application whichever is the number of panels used in every moment.
    int SetCtrlVal (int panelHandle, int controlID, ...);
    Purpose
    Sets the value of a control to a value you specify.
    When you call SetCtrlVal on a list box or a ring control, SetCtrlVal
    sets the current list item to the first item that has the value you
    specify. To set the current list item through a zero-based index, use SetCtrlIndex.
    When you call SetCtrlVal on a text box, SetCtrlVal appends value to the contents of the text box and scrolls the text box to display value. Use ResetTextBox to replace the contents of the text box with value.
    Note   This function updates the displayed value immediately. Use SetCtrlAttribute with ATTR_CTRL_VAL to set the control value without immediately updating the displayed value. For this reason, SetCtrlAttribute with ATTR_CTRL_VAL is generally faster than SetCtrlVal. However, if the control in which you are setting the value is the active control in the panel, SetCtrlAttribute with ATTR_CTRL_VAL displays the value immediately.
    Note   This function is not valid for graph and strip chart controls.
    Parameters
    Input
    Name
    Type
    Description
    panelHandle
    int
    Specifier for a particular panel that is currently in memory. You obtain this
    handle from LoadPanel, NewPanel, or DuplicatePanel.
    controlID
    int
    The defined constant, located in the .uir header file, that you assigned to the control in the User Interface Editor, or the ID returned by NewCtrl or DuplicateCtrl.
    value
    New value of the control. The data type of value must match the data type of the control.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Creating table, two cells side by side but alignment in one cell throws off the other!

    Hello,
    I have a website that I am trying to display a table with two columns side by side and one column at the bottom.
    so I use the following:
    <table>
    <tr>
    <td></td>
    <td></td>
    </tr>
    <tr>
    <td></td>
    </tr>
    </table>
    My problem is that I can't get the alignment to work right wit the first two <td> columsn that are side by side.  i put text in both and an image but it doens't align properly even without the image. Every time press <return> it adjust the alignment in the other column. as you can see below, it doesn't align correctly. I can't get it to work right.  images don't align, button doens't align, and the text on top doesn't align either.
    If I press <return> in the right column at the bottom, then it moves the left column down and still doesn't align (auugh!)
    Here is my code:
    <table width="685">
                             <tr>
                             <td width="338" class="vline">
                             <p class="indentmain">Point 7.4 Service Pack 2 is available! </p>
                               <p class="indentpar">Point 7.4 SP2 (release date March 30, 2011), includes the newly required Anti-Steering disclosure along with other necessary compliance updates and functional enhancements<img src="../images/SideBar/customer_care.jpg" alt="" width="162" height="87" hspace="6" vspace="6" align="right" /></p>
                               <p class="indentpar"><strong>MyCalyx Administrators: </strong>Be sure to log into your <a href="https://www.mycalyx.com">MyCalyx</a> account and update the user's version of Point to 7.4SP2.</p>
                               <p class="indentpar"><strong>
                               Click</strong> for comlete release notes.</p>
                              <p class="indentpar">
                                 <input type="button" class="button_Download" value="Download Instructions" onclick="window.open('http://www.calyxsupport.com/downloads/index.htm?tab=1&col6=open#CollapsiblePanel6#TabbedPa nels1')" />
                               </p>
                              <p class="indentpar"> </p>
                             </td>
                             <td width="335">
                             <p class="indentmain">PointCentral 7.3 Server Update</p>
    <p class="indentpar">The PointCentral 7.3 Server Update is available for download, (released March 24, 2011). The server update addresses field mapping issues that causes data fields to <img src="../images/SideBar/page_in_book.jpg" alt="" width="162" height="87" hspace="6" vspace="6" align="right" />inaccurately appear when generating reports and adding the owner's title policy setting under the Utilities menu. </p>
                               <p class="indentpar"> </p>
                               <p class="indentpar"><a href="http://kb.calyxsupport.com/kb/article.php?id=557">Click here</a> for release notes.</p>
                               <p class="indentpar">
                                 <input type="button" class="button_Download" value="Download Instructions" onclick="window.open('http://www.calyxsupport.com/downloads/index.htm?tab=1&col6=open#CollapsiblePanel6#TabbedPa nels1')" />
                               </p>
                               <p class="indentpar"> </p>
                               </td>
                             </tr>
                             <tr>
              <td height="8" colspan="2"></td>
                </tr>
                            <tr>
                              <td style="display: inline" height="5" colspan="2"><img border="0" src="/images/bottom_border.gif" width="100%" height="5"></td></tr>
                           <tr>
                              <td height="8" colspan="2"></td>
                </tr>
                <tr>
                <td colspan="2"><p class="indentmain">What to look for in Point 7.4</p>
                  <p class="indentpar">There have been peculiar incidents with the Transmittal Summary and calculations on the Fees Worksheet, such as transfer taxes and up-front mortgage insurance. You can prevent or avoid such mishaps by understanding the  process that provoke or produce these incidents.</p>
                  <p class="indentpar">We also understand that since the release of MyCalyx.com and the non-distribution of an installation CD, installing and upgrading Point is new but still simple and easy, but just takes some getting use to.</p>
                  <p class="indentpar">We have provided a list of commonly used articles to help guide you through using MyCalyx.com and avoiding irregularities with the Fees Worksheet.</p>
                  <p class="indentpar">
                    <input type="button" class="button_Download" value="Download Instructions" onclick="window.open('http://www.calyxsupport.com/downloads/index.htm?tab=1&col6=open#CollapsiblePanel6#TabbedPa nels1')" />
                  </p></td>
                </tr>
                             </table>

    Tables work that way, that's why CSS styling is preferred for layouts.
    http://apptools.com/examples/pagelayout101.php
    If you must use tables, try nesting tables inside cells of an outer table .

  • Need help w a popup based on cell value

    I have a spreadsheet that when the value of any cell in column  H between rows 2 & 71 is greater than cell K1 I would like a popup to say "Winner"
    Thank you in advance for any help
    Dustin Shepard

    Hello,
    where would you like the popup? How are the values in H2 to H71 getting changed? If they are changed by manual user entry, you could use a worksheet change event like this:
    copy the code below. Right-click the sheet tab, select "View Code" and paste the code into the big, white code window:
    Private Sub Worksheet_Change(ByVal Target As Range)
        If Not Intersect(Target, Range("H2:H71")) Is Nothing Then
            If Target > Range("K1") Then
                MsgBox ("The Winner is cell " & Target.Address)
            End If
        End If
    End Sub
    Close the VBA editor and change a value in your sheet.
    If this is not what you want to achieve, please provide more background.
    cheers, teylyn

  • Data Merge - Is there a way to selectively hide rows/columns from layouts based on cell values?

    I'm using data merge to generate pages from a product spreadsheet. The complication is, some columns should exist for some products (like "qty per bundle") but need to be hidden for others. Is there a way for InDesign to automatically include or remove rows for some pages but not others, based on something like "qty = 0"?

    For logic-based data merge, I use Em Software's product InData.
    Depending upon the design, ID's merge can remove blank fields thereby removing there paragraph or position on a line. Unless, of course, you have static text along with it. Which I almost always do. that's why I use Em Software's solution. It has a trial version. One needs to get familiar with the language statements. But for me it was worth the price and learning curve.
    And there are other plug-ins but for "simple" merging they are overkill in my circumstances (and so cost more).
    Mike

  • Setting JTable Background Row Color based on cell Value

    I am new to Java and JDeveloper (so bear with me). I have managed to create a Swing form using BC4J (Jdev 10g preview) which contains a scrollpane with a view object represented as a table. I would like to be able to color the rows that are displayed within the table differently depending on the value of a cell/column within the row. Its not obvious to me from the property inspector how to do this - I assume it is possible as all the other bells and whistles appear to be in place.
    Thanks in advance
    Simon

    Simon,
    in Swing this is not done through properties but a custom cell renderer. You can check the Swing tutorial on http://java.sun.com for how to modify the default behavior of a JTable component. A very good book to learn Swing is "Java Swing" from O'Reilly (ISBN 0-596-00408-7).
    ADF JClient uses Swing components and therefore everything you can do in Swing you can do with JClient.
    Frank

  • Data from one cell to another

    Hi when I type in one cell can that data automatically appear in another?

    Hello Phij,
    Yours is a very basic spreadsheet question. It would be a good idea for you to download the Numbers User Guide PDF that's available from the Numbers Help Menu. There are sure to be many other similar questions that will also be answered by taking a look at the guide.
    You can cause the content of one cell to appear in another cell by entering a reference to the first cell in the second one. If the first cell is located at B2 (second column, second row), the equation to make the content of B2 appear in another cell is =B2, in the second cell.
    Regards,
    Jerry

Maybe you are looking for