Spreadsheet question: How to apply formula to entire row?

I am updating cells which already contain formulas. Can I select the entire row, and apply an additional formula (i.e.: 1.5*) or do I have to do it individually for each cell (there are hundreds)? I need the original formulas to stay in place, and they vary.

Hi Pamela,
Welcome to Apple Discussions and the AppleWorks forum.
(The following was begun before Niel's post, and completed, with a few breaks, some time after it. It addresses a shortcoming with the solution suggested above, so I haven't altered it beyond adding this paragraph.)
I'm not certain as to exactly what you're requesting here. Do you mean you currently have the same formula in these cells (eg. =(A1-A2) ) and you want to change all of those formulas to (same eg. =1.5*(A1-A2) ). That's cetainly possible if the formulas are in contiguous cells (or in separater groups of contiguoous cells). For the example, select the first cell containing the formula and all the others contiguous to it. Make the change in the entry box, then press command-R to fill the changed formula to selected cells in the same row and to the right, then command-D to fill the formula to all selected cells below the row containing the edited cell.
OTOH, if you want to make the change to separate (ie. non-contiguous) cells, or to cells which do not contain what's essentially the same formula (with only the cell references changed to reference a cell located in the same relative position), I don't see any way to do it directly within the spreadsheet.
If the existing formulas are such that you can write a description of where to insert the change, it may be possible to make such a global change through an AppleScript, or through transferring the spreadsheet content to a word processing document, using Find/Change to make the revisions there, then transferr the result back to the spreadsheet (or more cautiously, to a new spreadsheet).
An AppleScript is someone else's territory. Here's how it could be done using the word processor.
For the example, I'll assume you want to change ALL formulas in the spreadsheet by adding the instruction to multiply the (result of the) current calculation by 1.5.
• Open the spreadsheet.
• Go Options > Display...
• Check the box "Formulas", Click OK.
• Select ALL of the cells containing data or a formula.
• Copy.
• Open a new word processing document.
• Paste.
• Press command-F to open the Find/Change dialogue.
• Enter "=" in the Find box, press tab, enter "=1.5*" in the Change box (no quotes in either case).
• Click Change All. OK the two alerts that follow. Close the Find/Change dialogue.
• Press command-A to Select All. Copy.
• Open a new spreadsheet document.
• Paste.
• Done.
Limitation: This will work only if the amended formula will give the expected result. Consider the example above, =(A1-A2) with 2 in A1 and 1 in A2.
As written, the original formula ( =(A1-A2) ) returns a result of "1", and the amended formula ( =1.5*(A1-A2) ) returns the expected result 1.5.
But it's unlikely the original will have included the parentheses,as they're not necessary to a correct result.
If the original is =A1-A2, the result is still 1, but the amended formula ( =1.5*A2-A1 ) will return the result "2", not 1.5.
Revising the beginning of the altered formula to add an opening parenthesis is easy. The difficulty here is telling Find/Change (or AppleScript) how to add the matching closing parenthesis to fomulas but not to the contents of cells containing labels, other text, or nothing at all..
*An alternate approach:* Rather than revising the existing spreadsheet's formulas, this method transfers the labels and results to a new section of the spreadsheet, multiplies the original results by 1.5, and displays the new result.
For discussion purposes, I'll assume the current spreadsheet contains 25 columns (A..Y) and 100 rows (1..100) of data and labels.
• Go Format > Document...
• Change the default 40 cells wide to 52 (or enough to accomodate twice as many columns as you have containing data now).
• Click OK
• Select a cell to the right of the cells containing data in the current spreadsheet. (For the example, choose cell AA1)
• Enter the following formula:
        =IF(ISTEXT(A1),A1,IF(ISBLANK(A1),"",A1*1.5))
• Select the block of cells extending right and down from AA1 that matches the size of the original block (for the example, AA1..AY100).
• Fill the formula Right (command-R) and Down (command-D).
The formula will copy the text from cells containing text, keep cells blank ("") where the originals were blank, and enter the results, multiplied by 1.5, for cells where the originals contain a formula with a numerical result or a number.
Limitation: The formula does not distinguish between an entered number and one generated by a formula contained in the referenced cell. All numeric values will be multiplied.
Regards,
Barry

Similar Messages

  • How can we pass the entire rows of a table to a web service in a VC model ?

    Hi,
    On the click of the submit button, I have to pass the rows of two tables into an enterprise service. This service also takes other fields of a form as an input.
    How can we pass the entire rows of a table into a service ?
    Regards,
    Nitin

    Hi Nitin,
    It seems that you have two or three different structures to pass data using your webservice. In your main question, two tables, you can join both in one table and from there call the webservice. In order to pass the entire table you need:
    1. Draw a line between your joinned table and your service,
    2. Map the fields,
    3. Create a 'SUBMIT' in your table tool bar. Right click on your table and choose 'Create Toobar', '+', name and choose 'Submit' as your event.
    4. Go to Configure Element (Table View) 'Multiple' at Selection Mode.
    Reward points if helps you to solve your question.
    Regards,
    Gilson Teixeira

  • How to apply =Hyperlink() to entire column

    I created the following formula:   =HYPERLINK("http://www.somewhere.com/search.aspx?kw="&C2, C2),   where C2 is relative to the cell in which apply the formula. So in effect I am attempting to create relative Hyperlink URLs down a column.   Here's my problem, I cannot copy-and-paste this formula to entire column because the cell I need to copy is now a hyperlink.

    Open the hyperlink inspector:
    and check the box "Make all hyperlinks inactive".  Now copy and paste the formula, then select the whole column and paste

  • How to apply formula field for a chart object in crystal report XI

    Hi
    how to add formula field for a chartobject, i tried the following code but returns invalid condition field.
    i want to show  different chart in same crystal report viewer with different coursestatus values.
    please suggest where ia m wrong.
                   FormulaField oFormulaField;
                   oFormulaField = new FormulaField();
                   oFormulaField.Name = "Status1";
                   oFormulaField.Text = "{CSP_PROCESS_REPORT.Coursestatus} = 'Mastered'";
                   oFormulaField.Syntax = CrFormulaSyntaxEnum.crFormulaSyntaxCrystal;
                   oFormulaField.Type = CrFieldValueTypeEnum.crFieldValueTypeStringField;
                    boChartObject.ChartDefinition.ConditionFields.Add(oFormulaField);
    regards,
    Padmanaban V

    i missed the following line in my code.
    rcDoc.DataDefController.FormulaFieldController.Add(oFormulaField);
    now it works......
    my next issue is that,
    chart returns True & False captions. but i want to show actual value. how its to be done
    regards,
    Padmanaban V

  • Apply formula to entire column

    I am putting together a spreadsheet using Numbers 09.  I can apply a formula to an individual cell. I want to add the revenue in C2 + E2 to give me a sum in F2.  What I want to do is apply the formula to all of the cells in  Column F.    I know there is a way to apply a formula for every cell in Column F as i have done this before.  I can't remeber how I did it.  Any suggestions?

    Waughaw,
    There are two ways to do this:
    1. Enter the expression in F2. In your case the expression would be:
    =C+E
    Copy the F2 Cell. To do this reliably, you can click off F2, then click once on F2 to highlight the cell (not the content of the cell) and Command-C.
    Then Click on the Column Tab (the letter F in this case). This Selects the entire column. Command-Click on the Header cell to De-Select just that cell. Finally, Command-V. Your formula will now be inserted in every cell of Column F except the Header Cell.
    2. Enter the expression in F2.
    Again, the expression will be C+E
    Select the cell F2, as  above, and then examine the border of the cell.
    There will be a small open circle in the lower right corner of the cell. That's called the Fill Handle.
    Drag the Fill Handel to the bottom of the column.
    That's it.
    Jerry

  • Powershell: How to colorize cells or entire row

    Hi, 
    I have a little question:
    Goal: Colorize cells or row only on certains values for multiple tables. 
    i.e. Table 1: colorize red all cells in column "xx" with values >10 ; Table 2: colorize green all cells in column "xx" with values <5  ecc
    Problem: 
    $1 = Get-WBSummary |Select-Object NumberOfVersions, CurrentOperationStatus, LastSuccessfulBackupTime, NextBackupTime, LastBackupResultDetailedHR, DetailedMessage | ConvertTo-Html -PreContent "table1</p>" -Fragment
    $2 = Get-WBSummary |Select-Object NumberOfVersions, CurrentOperationStatus, LastSuccessfulBackupTime, NextBackupTime, LastBackupResultDetailedHR, DetailedMessage | ConvertTo-Html -PreContent "<p>table2</p>" -Fragment
    $x = ConvertTo-HTML -Title "test" -Body "$1 $2"
    There is a way to find different data in different table and colorize cells or row?
    Thanks
    Andrea Gallazzi
    windowserver.it - blog:
    andreagx.blogspot.com
    This posting is provided AS IS with no warranties, and confers no rights.

    This requires knowing a lot about how HTML and PowerSHell work
    Start here:
    http://tech-comments.blogspot.com/2012/08/powershell-use-vbscript-to-color-table.html
    How to dynamically colr HTML generated by PowerShell.
    http://tech-comments.blogspot.com/2012/07/powershell-dynamically-color-posh.html
    ¯\_(ツ)_/¯

  • How to use total/sum of values obtaind by applying formula on restricted KF

    Hi all
    I am using formula on restricted keyfigure i.e I want to apply formula on quantity for particular material say 100007,100990.I want to use total of values in some other formula,obtained by aaplyin formula on their respective quantities(obtained by using restricted keyfigure). if I use SUMCT or SUMGT it is not taking total of these 2 values instead taking value obtained by applying formula on result row.
    Is there any other way to use this 'total ' value in some other formula
    KIindly help
    Regards
    Megha

    have you tried: key figure properties -> calculations -> calculation directions
    hope it helps,
    Leo

  • How to return the entire row from a table

    Hi guys,
    Tabl A
    FirstName varchar2(10),
    Age Number,
    Add varchar2(100),
    Table B
    Filedname varchar2(200), -- contains all the fields of table A
    Datatype varchar2(100), -- Contains the datatypes of the filedname
    Length Number -- contains the length of the fileds
    Now how can i return the entire row from table A with the datatype and its length.
    Any help would be appreciated ?
    Here is the query I wrote but it how to take the datatype and its length..
    create or replace procedure disp_table_data
    as
    type r_cursor is REF CURSOR;
    c_A r_cursor;
    er A%rowtype;
    begin
    open c_A for select * from A;
    loop
    fetch c_A into er;
    exit when c_A%notfound;
    dbms_output.put_line(er.FirstName||'--'||er.Age);
    end loop;
    close c_A;
    END;
    /

    Guys,
    I want column value from table A and its corresponding data_type and length from table B. I think I cant do it through joins.
    Any idea would be appreciated ?.
    Example ..
    Tabl A
    FirstName varchar2(10),
    Age Number,
    Add varchar2(100)
    insert into A values('John',24,'Boston');
    Table B
    Filedname varchar2(200), -- contains all the fields of table A
    Datatype varchar2(100), -- Contains the datatypes of the filedname
    Length Number -- contains the length of the fileds
    insert into B values('FirstName','varchar2',10); -- this is coming from table A.
    Output should be like this...
    John,Varchar2,10
    Here (John is the FirstName - coming from table A, Varchar2 is a Datatype and 10 is the Length which are coming from table B ). Only column values are coming from table A , corresponding datatype and length are coming from B.
    Any idea would be appreciated ?
    Thanks.

  • How can I make an Equation apply to an entire column, but only use the values in the specific rows?

    I am working on a research project using Numbers 09 and have columns for values that require me to use formulas using values in other columns. Becuase I am lazy and have 180 rows of data, I would like to find a way to have a formula apply to an entire column so that I don't have to go row by row inputting the formula.
    Essentially, I want to be able to have N(X)=F(X)+G(X). Where X is the row number. Is this possible?
    The real formula I want to have is (4*(F(X))^2)/G(X)
    Thanks! 

    Place this formula in your chosen column in the first row containing data in columns F and G.
    =(4*F^2)/G
    Press enter to confirm the entry. The result will appear in the cell.
    Click (once) on the cell containing the formula.
    Shift Click on the cell in the same column on the last row containing data in F and G to select all cells between. .
    Go Insert > Fill > Fill down.
    Done.
    Regards,
    Barry

  • When I open numbers, my spreadsheet appears blank.  yet, when I moveacrossa row, data appears in the formula bar.  How can I fix it so I can see the sheet?

    When I open numbers, my spreadsheet appears blank.  yet, when I moveacrossa row, data appears in the formula bar.  How can I fix it so I can see the sheet?

    I had the same issue for several days (and several reboots).  During that time I found I could print the spread sheet as a pdf, though I couldn't see it except cell by cell.
    Suddenly the problem disappeared.  I never did know why the problem appeared nor why it disappeared.
    In the interim I ran the disk utility several times and repaired permissions twice.  That may have helped, but I don't know.

  • Formula Question: What is the formula to find how many duplicates I have in my table of data. e.g Sally, Sally, Sally, Tom, Tom, Ben. Answer by formula Sally 3, Tom 2, Ben 1

    Example of Data:
    A1
    2222222345
    2222222345
    2222222345
    2222222345
    2222222346
    2222222346
    2222222347
    2222222347
    2222222347
    2222222347
    2222222347
    2222222347
    Examplae of answer I would like the formula to provide:
    I also can not manually type coullum A I need the formula to auto full that aswel. As there is to much data.
    A2
    B2
    2222222345
    4
    2222222346
    1
    2222222347
    6

    Hi Jessica,
    Here's my take on it, using the sample data in your original post, and using the same solution with the names in your question.
    In the Data table, column A contains the list of numbers in your original post. I've rearranged them in random order to demonstrate that the order of entry does not matter for this method.
    Data::Column B contains the names in your question, each assigned to one of the numbers in the body of your post.
    Column C contains an index showing the first occurrence of each distinct number in Column A. This index is used to fill both columns in the Summary by Number table.
    Column D contains an index showing the first occurrence of each distinct name in Column Bt. This index is used to fill both columns in the Summary by Number table.
    Both formulas are the same, except for the columns referenced (highlighted in the second formula below).
    Formula: Data::C2: =IF(COUNTIF($A$2:A2,A2)=1,MAX(C$1:C1)+1,"")
    Formula: Data::D2: =IF(COUNTIF($B$2:B2,B2)=1,MAX(D$1:D1)+1,"")
    Both formulas require that row 1 be a Header Row, and that the contents of C1 (and D1) be Text, nothing, or a zero. Both formulas are filled to the end of their respective columns.
    Summary by Number contains two formulas.
    A2: =IF((ROW()-1)>MAX(Data :: $C),"",LOOKUP(ROW()-1,Data :: $C,Data :: $A))
    B2: =IF(LEN(A2)>0,COUNTIF(Data :: A,A2),"")
    Both are filled down to the end of their respective columns.
    The first formula checks if its row number minus 1 is greater than the maximum value in the index column. If that is TRUE, there are no more values to look up, and the formula returns an empty string (which appears 'blank'). If it is FALSE, the LOOKUP the value in Data::column A corresponding to the value of ROW()-1 in Data::column C.
    The second formula checks the LENgth of the entry in the column to its left. If the length is greater that 0 characters, there is a countable value in the cell, and the formula passes control to COUNTIF, which counts the number of times that value is found in Data::column A. If the length of the value in the cell to the left is zero, then the cell contains an empty string, and the formula passes control to the part after the last comma, which enters an empty string in the cell containing the formula.
    The formulas in Summary by Name are identical to these except for the (bolded) references. These are incremented to the right; C -> D, and A -> B to match the Data:: columns containing the names and the names index.
    Regards,
    Barry

  • Macbook pro numbers applying a formula to all rows

    macbook pro, numbers: applying a formula to all rows...
    I am trying to apply the same formula to successive row in a spreadsheet that I am using...how do I go about this?

    Apologies for not replying immediately! I have now managed to organise my entire stock list for my business; I just had a major brain blockage as to how to copy and paste formulae in columns, added to which I've never had any formal training in IT.  I'm not too old to try and have a can do attitude and so far I managed ok. Now I've started my own business I'm putting what I've taught myself in to practice and I'm pleasantly surprising myself with the results.
    Thank you again for your help,
    Regards....charlie.

  • Newbie question - trying to apply info from a table to a cell

    I'm a trucker who has purchased a MBP and want to use a spreadsheet to calculate cost for fuel. I am familiar with spreadsheets, but not that in depth. I want to be able to apply state taxes for fuel cost, but not sure how to apply it using a table. I want to use a cell to type in the state abbreviation and have the cell apply the state sales tax to my spreadsheet from a table with all the states and sale taxes. Here the table I have set up in my spreadsheet.
    STATE RATE
    AL $0.19
    AK $0.08
    AZ $0.26
    AR $0.225
    CA $0.367
    CO $0.205
    CT $0.26
    DE $0.22
    DC $0.00
    FL $0.3057
    GA $0.141
    HI $0.00
    ID $0.25
    IL $0.367
    IN $0.27
    IA $0.225
    KS $0.26
    KY $0.222
    LA $0.20
    ME $0.279
    MD $0.2425
    MA $0.21
    MI $0.28
    MN $0.20
    MS $0.18
    MO $0.17
    MT $0.2775
    NE $0.27
    NV $0.27
    NH $0.18
    NJ $0.175
    NM $0.21
    NY $0.3685
    NC $0.299
    ND $0.23
    OH $0.28
    OK $0.13
    OR $0.24
    PA $0.381
    RI $0.30
    SC $0.16
    SD $0.22
    TN $0.17
    TX $0.20
    UT $0.25
    VT $0.26
    VA $0.195
    WA $0.34
    WV $0.315
    WI $0.329
    WY $0.14
    Any help would be appreciated a great deal.
    "El Capitone"
    P.S. if you need to see the actual spreadsheet, I can send it to you by email. I tried to attach it to this message, but was unable to do so.

    El Capitone,
    I'm assuming you want to find the total amount of state taxes paid to each individual state, but I'm not sure what these rates mean or how they are to be applied. Actually, their application may vary from state to state. However, two possiblities are shown here and if this is not what you want you'll get back to us.
    1. If the rates mean $ per gallon then tax paid is is shown in column D below and the formula is:
    =IF(ISBLANK(Gals),"",Tax Rate*Gals)
    2. If the rate means a percent of the pump price after all other taxes and charges are added in, the result appears in column F:
    =IF(ISBLANK(Tot Cost),"",Tot Cost-Tot Cost/(1+Tax Rate))
    As I say, I have the feeling this problem may be more complex.
    pw

  • Beginner Question: How to put 5 V on an output?

    Hi everybody,
    I am an absolute beginner here, a Biology student that has to do electronics in Labview now...
    I want to do as much of this myself as possible, but need truly beginners hints, hoping to be clever enough to put it together myself with your information.
    I need to control some outputs, and monitor some inputs. I am focusing on the outputs at the moment.
    Questions:
    How do I make a block in my block diagram that can put a variable voltage on an output? I need two controls, one that puts a voltage on an output of 0 to 10 V continuously, the other puts a voltage on an output of 0 to 5 V in increments of 0.1 V
    Any hints will be highly appreciated. I have Labview 6 to work with. Pointers like 'look at p
    age XX of the manual' will do, but descriptions here, or through my mail... anything will be highly appreciated.
    Thanks in advance

    In article <[email protected]>,
    "Erado" wrote:
    > That's the beauty of this, I am not entirely sure (yet) I am going to
    > get a good look of the setup in about a month, but they want me to
    > prepare a concept VI before then. To me that made little sense, but my
    > comments on it hit a brick wall...
    Well, for me and my past gigs this has been a very common situation. When
    I worked for telecom we would have to develop apps for instruments that we
    wouldn't receive for six months. Luckily we had the basic concept of how
    they were supposed to run and this was adequate for development. It
    sounds like you're in a similar situation.
    > What I do know is that over two of the terminals there is a 5V voltage
    > applied in steps of 0.1 V. So I should put in something that makes it
    > possible for me to control this output in 50 steps of 0.1 V.
    Lemme see if I understand you from this post and your first one. You
    would like to buid a user interface that includes the following:
    1) A boolean control that gives these two options:
    a) output a continuous voltage in the range of 0-10 volts b) output a
    ramping voltage starting at 0 (or 0.1) volts and ending at
    5 volts using 0.1 volt increments with a dwell time of x mseconds
    2) A boolean to stop the application
    (perhaps another one to pause it)
    3) Several numeric controls:
    a) numeric control for the output voltage b) numeric control for the
    dwell time (optional) c) numeric control for the voltage increments
    (optional) for if the
    user wants to use values other than 0.1 volts
    4) An indicator that shows what the measured output voltage is. This is
    good for verifying your output signal. A chart would be nice.
    This is a top down approach which is helpful for laying out the
    application's user interface. The next thing you want to do is build some
    subVIs to simulate your voltage signals. Once you get some hardware you
    can simply replace these simulation subVIs with the real ones that
    actually communicate the hardware.
    I'm not sure if your measuring the output voltage too. I kinda just
    assumed this but that would require another subVI. I won't tell you how
    to build the subVIs (I can't take all the fun out this) but I hope I've
    pointed you in the right direction.
    Merry x-mas!
    -Kevin
    PS: learn how to play with control references. they're very convenient
    when you need to update the front panel indicators with data from a subVI
    sitting in its own continuous loop. it avoids global variable abuse.

  • How to change the semantic color of entire rows in a table.

    Hi, in the past I already managed to change the semantic color of a cell by a condition (for example all the cells with negative number -> I set negative semantic color)
    My question is how can I change the semantic color of the entire row where this cell belong, and not only the cell. Im using NW2004.
    BTW, Im not a java programmer, neither a Webdynpro expert, just an ABAP Programmer. So try to be very explicit, Thx.

    Rodrigo,
    You can just bind correspondign property of every cell editor (TextView) of every column to the very same context attribute. Next, when you change attribute value for certain elemnt, the whole row (every cell editor in row) will get same value.
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

Maybe you are looking for

  • Field for resource allocation in project online

    Hi, I'm running Project Pro for Office 365. I'm trying to build some Business Intelligence reports. I would like to make a PivotChart in excel where the X-Axis is the time and the Y-axis is the allocation percentage. I would have a filter to select t

  • Need to create PAR files from JSP

    Hi, In my project we are creating portal archives from JSP iviews . Using NWDS we can easily create par files by going to Enterprise Portal workspace  .But in my project we are not using NWDS or any other JSP editor . Can anybody tell me how to creat

  • Cache directory structure

    I clear my Cache regularly (with EACH shutdown at minimum). I am aware of and use the Cache location setting "browser.cache.disk.parent_directory". Is there a setting to go back to the Cache directory structure of 3.6? I am not experiencing Cache acc

  • Pricing for Ship to party

    Hi Experts, I have created sales order with one sold and 3 different ship to partys. Now I want maintain different pricing information for each ship to party. Is it possible? Note: it is using Same sales area and Same customer pricing procedure. Rega

  • How many itens can I put inside a JComboBox or JList?

    How many itens can I put inside a JComboBox or JList? Thanks Renato de Melo