How to create a column where each subsequent entry is added to the former?
How does one create a column, inside Numbers, where each subsequent cell is added, in value, to the preceding cell above it? For example, a column could be labeled "credit card subtotals for the month." In the first cell, one might insert a dollar value, eg., $24.00. The next credit card charge might be $100.00 and that would be added to the $24.00 to create a running subtotal.
Thank you.
Hi Jay,
Both formulas are written as they would appear entered into C2.
The 'special formula' is also written as it would appear in C2. Where I have used 'formula for C2' substitute your choice of the two formulas listed above the 'special formula' in my earlier post.
If you choose to use the first version, the finished 'special formula' will look like this in C2:
=IF(LEN(B2)>0,SUM(C1,B2),"")
Jerry's remarks regarding using conditional formatting to suppress the display of zeroes is well taken, but in this case, will not work as there are no zero values to be hidden.
In this case, either of the initial formulas will repeat the last 'running balance' in every cell from the last row containing an entry in column B to the bottom row of the table.
The formula checks, by counting the number of characters displayed, whether an entry has been made in the column B cell on the same row as the formula (B2 in the example in this post. IF an entry has been made, the formula calculates the sum of that entry and the previous running balance. IF no entry has been made (ie. there are no chanracters displayed in B2, the calculation is skipped, and the empty string ( "" ) is placed in C2, giving the appearance of a blank cell.
Example: the formula in this post is used in column C. Column D uses the core of that formula (with the C1 reference replaced by D1) without the IF statement. Both formulas are filed down to the bottom cell in their columns. Note the difference in rows 7 and below:
Regards,
Barry
Similar Messages
-
How to create a Game where each answer controls a flash animation?
Hi,
I need to create a quiz where each correct answer advances a character on a game board and each incorrect answer advances the "enemy" character. At the end the results need to be saved to a MySQL database. Is this possible with Captivate?
Currently I have the game developed, but I have done everything in Flash, I would like to use the quiz creation tools in Captivate to create the quiz since the quiz I created is not as fancy as what can be done with Captivate.
I have Flash CS3.
Thanks for your help.
LAIf I get that right: You created that "game" in Flash. The questions will be made in Captivate. So you will insert the swf. file (the game) onto your captivate slide.
Have you tried to access the Captivate variable "cpQuizInfoLastSlidePointsscored" within flash? So you could tell the game that if this variable is zero /or 10) the flash file should do something
About this MySQl thing
Mybe this will help:
http://www.adobe.com/devnet/captivate/articles/store_cpresults.html
http://pipwerks.com/journal/2008/09/07/send-captivate-quiz-data-to-javascript/
best regards
captiware -
How to create dynamics columns in oracle query1.
hi,
how to create dynamics columns in oracle query.its very urgent.
regards
prasad..Urgent is it?
Why? Have you forgotten to do your coursework and you'll get thrown off your course if you don't hand it in today?
What makes you believe that your request for help is more important than someone else who has requested help? It's very rude to assume you are more important than somebody else, and I'm sure they would like an answer to their issue as soon as they can get one too, but they've generally been polite and not demanded that it is urgent.
Also, you assume that people giving answers are all sitting here just waiting to answer your question for you. That's not so. We're all volunteers with our own jobs to do. How dare you presume to demand our attention with urgency.
If you want help and you want it answering quickly you simply just put your issue forward and provide as much valuable information as possible.
Looking at your post you haven't told us what database version you are using, you haven't provided any create table DDL's and insert statements to populate that with sample data, and you haven't even shown us that you've had a go at doing something yourself.
You will find if you post on here demanding your post is urgent then most people will just ignore it, some will tell you to get lost, and some will explain to you why you shouldn't post "urgent" requests. Occasionally you may find somebody who's got nothing better to do who will actually provide you with an answer, but you really are limiting your options by not asking properly.
/rant
As a basic example of dyanamic SQL:
DECLARE
cur PLS_INTEGER := DBMS_SQL.OPEN_CURSOR;
cols DBMS_SQL.DESC_TAB;
ncols PLS_INTEGER;
BEGIN
-- Parse the query.
DBMS_SQL.PARSE(cur, 'SELECT hiredate, sal FROM emp', DBMS_SQL.NATIVE);
-- Retrieve column information
DBMS_SQL.DESCRIBE_COLUMNS (cur, ncols, cols);
-- Display each of the column names
FOR colind IN 1 .. ncols
LOOP
DBMS_OUTPUT.PUT_LINE (cols.col_name);
END LOOP;
DBMS_SQL.CLOSE_CURSOR (cur);
END;
/ -
How to create a PR for each Maintenance Order
Dear All,
Please guide me how to create a PR for each Maintenance Order.
I test on Ides, I have some Maintenance Orders, all of them require the same stock material. When I run MRP, system always create one PR for all requirements. I don't know how to change.
Regards,
QuangDDHi,
As you planning for Stock Items, by running MRP, system will create single PR only. If it is non stock items, then it would be possible to create different PR based on Orders.
Regards,
Maheswaran. -
How to create some columns dynamically in the report designer depending upon the input selection
Post Author: ekta
CA Forum: Crystal Reports
how to create some columns dynamically in the report designer depending upon the input selection
how export this dynamic report in (pdf , xls,doc and rtf format)
report format is as below:
Element Codes
1
16
14
11
19
10
2
3
Employee nos.
Employee Name
Normal
RDO
WC
Breveavement
LWOP
Sick
Carers leave
AL
O/T 1.5
O/T 2.0
Total Hours
000004
PHAN , Hanh Huynh
68.40
7.60
76.00
000010
I , Jungue
68.40
7.60
2.00
5.00
76.00
000022
GARFINKEL , Hersch
66.30
7.60
2.10
76.00
In the above report first column and the last columns are fixed and the other columns are dynamic depending upon the input selection:
if input selection is Normal and RDO then only 2 columns w'd be created and the other 2 fixed columns.
Can anybody help me how do I design such report....
ThanksHi Developer life,
According to your description that you want to dynamically increase and decrease the numbers of the columns in the table, right?
As Jason A Long mentioned that we can use the matrix to do this and put the year field in the column group, amount fields(Numric values) in the details, add an filter to filter the data base on this column group, but if
the data in the DB not suitable to add to the matrix directly, you can use the unpivot function to turn the column name of year to a single row and then you can add it in the column group.
If there are too many columns in the column group, it will fit the page size automatically and display the extra columns in the next page.
Similar threads with details steps for your reference:
https://social.technet.microsoft.com/Forums/en-US/339965a1-8cca-41d8-83ef-c2548050799a/ssrs-dataset-column-metadata-dynamic-update?forum=sqlreportings
If your still have any problem, please try to provide us more details information, such as the data structure in the DB and the table structure you are currently designing.
Any question, please feel free to let me know.
Best Regards
Vicky Liu -
How to create sub columns in interactive report
can u tell me , how to create sub columns in
interactive report. i really need it.i search lot but i dont get proper information.
help plz...
example : -
|_____total_ persons _____|
| persons | male | female |
100 200 3000
400 500 600i am nile.
select id as id,
male as male,
female as female
from persons.
i want interactive report with main column total persons(static text) in that male , female.
e.g.
|___total persons_| - - - - -> main cloumn
| male | female | - - - - -> sub columns
100 200
300 400
Edited by: user9512075 on Aug 29, 2008 1:46 AM
Edited by: user9512075 on Aug 29, 2008 1:47 AM
Edited by: user9512075 on Aug 29, 2008 1:48 AM
Edited by: user9512075 on Aug 29, 2008 1:49 AM -
How to create two columns in a header?
Can anyone tell me how to create two columns in a header please?
Thanks!!Sandra,
I'm suspicious about your motives. It just doesn't seem logical to me to put so much content into a Header that two columns would be required.
You might consider the alternate header-like approach; use a Text Box set to two-column format and Format > Advanced > Move Object to Section Master.
Jerry -
How to create a matrix with constant values and multiply it with the output of adc
How to create a matrix with constant values and multiply it with the output of adc
nitinkajay wrote:
How to create a matrix with constant values and multiply it with the output of adc
Place array constant on diagram, drag a double to it, r-click "add dimension". There, a constant 2D double array, a matrix.
/Y
LabVIEW 8.2 - 2014
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
G# - Free award winning reference based OOP for LV -
How to create a window with its own window border other than the local system window border?
How to create a window with its own window border other than the local system window border?
For example, a border: a black line with a width 1 and then a transparent line with a width 5. Further inner, it is the content pane.
In JavaSE, there seems to have the paintComponent() method for the JFrame to realize the effect.Not sure why your code is doing that. I usually use an ObjectProperty<Point2D> to hold the initial coordinates of the mouse press, and set it to null on a mouse release. That seems to avoid the dragging being confused by mouse interaction with other nodes.
import javafx.application.Application;
import javafx.application.Platform;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.collections.FXCollections;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Point2D;
import javafx.geometry.Pos;
import javafx.scene.Node;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.ChoiceBox;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.StackPane;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
import javafx.stage.Window;
public class CustomBorderExample extends Application {
@Override
public void start(Stage primaryStage) {
AnchorPane root = new AnchorPane();
root.setStyle("-fx-border-color: black; -fx-border-width: 1px; ");
enableDragging(root);
StackPane mainContainer = new StackPane();
AnchorPane.setTopAnchor(mainContainer, 5.0);
AnchorPane.setLeftAnchor(mainContainer, 5.0);
AnchorPane.setRightAnchor(mainContainer, 5.0);
AnchorPane.setBottomAnchor(mainContainer, 5.0);
mainContainer.setStyle("-fx-background-color: aliceblue;");
root.getChildren().add(mainContainer);
primaryStage.initStyle(StageStyle.TRANSPARENT);
final ChoiceBox<String> choiceBox = new ChoiceBox<>(FXCollections.observableArrayList("Item 1", "Item 2", "Item 3"));
final Button closeButton = new Button("Close");
VBox vbox = new VBox(10);
vbox.setAlignment(Pos.CENTER);
vbox.getChildren().addAll(choiceBox, closeButton);
mainContainer.getChildren().add(vbox);
closeButton.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
Platform.exit();
primaryStage.setScene(new Scene(root, 300, 200, Color.TRANSPARENT));
primaryStage.show();
private void enableDragging(final Node n) {
final ObjectProperty<Point2D> mouseAnchor = new SimpleObjectProperty<>(null);
n.addEventHandler(MouseEvent.MOUSE_PRESSED, new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent event) {
mouseAnchor.set(new Point2D(event.getX(), event.getY()));
n.addEventHandler(MouseEvent.MOUSE_RELEASED, new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent event) {
mouseAnchor.set(null);
n.addEventHandler(MouseEvent.MOUSE_DRAGGED, new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent event) {
Point2D anchor = mouseAnchor.get();
Scene scene = n.getScene();
Window window = null ;
if (scene != null) {
window = scene.getWindow();
if (anchor != null && window != null) {
double deltaX = event.getX()-anchor.getX();
double deltaY = event.getY()-anchor.getY();
window.setX(window.getX()+deltaX);
window.setY(window.getY()+deltaY);
public static void main(String[] args) {
launch(args); -
How to creat a Business System and Tech System in SLD for the DB2 DataBase?
Hi,
How to creat a Business System and Tech System in SLD for the DB2 DataBase?
JosephHi,
Technical System
In SLD, click on technical landscape->New Technical System->WebAS ABAP.
Business System.
1.Goto Business Landscape->New Business System->Name the business system.
2. Choose the technical system that needs to be attached->WebAS ABAP->Technical System Name.
Go Through this links..
TBIT41:
https://websmp201.sap-ag.de/~form/ehandler?_APP=00200682500000001337&_EVENT=DISPLAY&COURSE=TBIT41&LANGUAGE=
TBIT42:
https://websmp206.sap-ag.de/~form/ehandler?_APP=00200682500000001337&_EVENT=DISPLAY&COURSE=TBIT42&LANGUAGE=
TBIT43:
http://www50.sap.com/useducation/curriculum/course.asp?cid=60161651
TBIT44:
https://websmp102.sap-ag.de/~form/ehandler?_APP=00200682500000001337&_EVENT=DISPLAY&COURSE=TBIT44
Also try elearning.
https://www.sdn.sap.com/irj/sdn/elearn
Thanks,
Satya Kumar -
How can i switch a song into a MP3 Version like in the former iTunes version ?
hello, how can i switch a song into a MP3 File like in the former Version from iTunes
Franky,
The Create New Version command always indicates the format that it presently set in your Import Setttings, which apparently is AAC. To change it to MP3, go to Edit > Preferences > General > Import Settings, and set "Import Using" to MP3 Encoder. Also select your preferred bitrate. OK out of there, and then look again at Create New Version. -
OBIEE:How to display row/columns where no data is present in pivot results?
I have a request from some team members to provide an OBIEE report of 7 teams and the number of open incidents for each team by week.
I was able to create the pivot listing the teams vertically and the age (by week#: 1 week, 2 weeks, 3 weeks, 4 weeks & > 4weeks) horizontally.
The dilemma I have is that of the 7 teams that have incidents tickets only 4 of them have data, thus only those 4 teams that have ticket data show up in my pivot. I would like to be able to reflect ALL 7 teams even if representing a dash or null value across the pivot for those teams that don't have data.
Does anyone know if this is possible and if so, how would I do this? I've tried searching the internet and found out how to replace a null value with a dash in columns/rows when a cell is null. But not how to display an entire row (or column) where no data is present.
Edited by: coutya on May 22, 2012 11:01 AM
Edited by: coutya on May 22, 2012 11:02 AMYou are correct; if there are no data at all, those teams won't show in a pivot table. NULLs or dashes only work if a particular column is null. There are two ways to accomplish what you wish. The first example I thought when I wasn't aware of being able to do a LEFT OUTER JOIN in Answers using the Advanced tab. The first method works nicely, though and is simpler to execute.
Read my solution here:
Re: Section Values showing NULL in Pivot
To do the LEFT OUTER JOIN read this:
http://gerardnico.com/wiki/dat/obiee/multiple_subject_area
Both will get you what you want... -
How to create a LOV where it is constrained by another field
I'm trying to figure out how to get a LOV to be limited by the value in a column
A complete hypothetical example (the actual app is quite different):
I have 2 tables
clientInfo, with fields fname, lname, age, city, zipcode
In another table named cityZip I have zip & city
So I create a report on a table form
select fname, lname, age, city, zipcode from clientInfo
This generates a nice table form, one entry for each client.... but I want the user to go down the selectList which represents the city column and select the city for each record in the table.
So I created a Select List (query based LOV),
I tried
select DISTINCT (code|| ' ' || city) d, zip_KEY r
from cityZip where cityZip.zip = :zipcode
The problem appears that the use of zipcode in the LOV query does not contain the value of the current record's zipcode so it doesn't work! Does anyone have any idea's how this might be done?Good morning,
The problem is that the data in your report is not contained in APEX items within your page. Try looking at the Form & Report combination and put your select list in the form. When you click "Edit" on a line, that data populates the form. You then have the information you need to limit the query for your LOV.
Good luck,
Don.
You can reward this reply by marking it as either Helpful or Correct :) -
How to create a column graph with colors per set of values
I need to create with Microsoft Excel, a column graph that based on different values, each column will contain different color.
To be precise:
E.g.:
- Green: If it is 0
- Orange: If it is between 0 and 10
- Red: If it is more than 10
I would appreciate to help me how to do this.Hi EriValidata,
According to your description, I get the result as shown in the following figure.
Is this a correct result? If yes, this is an excel chart with conditional formatting. Please try the following steps to create the chart.
To accomplish this task, you will need to create three additional columns of data and plot those three columns of data-and not the original column of sales data – in a stacked column chart. As shown in the figure.
And the formula in C2 is: =IF(AND(B2>0,B2<=10),B2,0). The formula shows the value in column C if it falls between the limits in rows 0 and 10; otherwise it shows 0. The formula is filled into the range C2:E4.
Then we select the source data with A2:A4 and C1:E4, as shown in the figure to insert a column chart. The chart now shows 3 sets of colored bars, one for each data range of interest.
And I upload a TEST2.xlsx file on OneDrive, you can download this file via this link:
https://microsoft-my.sharepoint.com/personal/v-lzng_microsoft_com/Documents/Shared with Everyone
Hope it’s helpful.
Regards, -
How to create a column that automatically creates a serial number?
How can I create a column that creates a serial number for each entry?
you could do something like this:
I assumed that the serial number only needs to be present if you have entered some information in the other columns of the corresponding row.
A2=IF(COUNTA(2:2)>0, REPT("0", 6−LEN(ROW()−1))&ROW()−1, "")
this is shorthand for... select cell A2, then type (or copy and paste from here) the formula:
=IF(COUNTA(2:2)>0, REPT("0", 6−LEN(ROW()−1))&ROW()−1, "")
To fill down:
select cell A2, copy
select column A by clicking the columne header (the "A" at the very top)
unselect cell A1 by holding the command key while single clicking cell A1
paste
Maybe you are looking for
-
When i plug in ipod, computer freezes
when i plug in my ipod, it charges but i cant use my mouse or type, does anyone else have this problem or know how to fix it? HP pavilion Windows XP
-
I have an ipad2. Ever since I upgraded to the IOS 5.5.1 I am having problems playing videos on Netflix or YouTube. I do to have this problem on my laptop, so it isn't in my wireless router. I have cleaned out the cache on the iPad and that didn't
-
Hi Access to Https port failed after changing the Keystore to "Custom Identity and Trust". I have generated the identity and trust certificates and placed the path info with passphrase. I have also set my SSL private key alias name to the key name ge
-
Navigation link for an existing view
I am currently using CRM 5.0. In CRM 5.0 how we can set up new navigation link for an existing view or view set.
-
Installing an ABAP Application Server for ECC6? I am getting a few errors!
Hi All I assumed that this was a simple procedure when installing an Application server. Run SAPinst and select Dialog instance and install My server has Java installed and runs fine until you get to the profile directory stage. and when I enter the