How can I make a column of sums out of a repeating pattern of 24 changing numbers

How can I make a column of sums out of a repeating pattern of 24 changing numbers in Numbers.
I have a long list of 8760 numbers of which I need to take the sum (and store in a column) of each 24 numbers.

Here's one way. I've reduced the example, taking groups of five numbers from a set of 20. I've used 3 as the data number in all cases to make the sum easily recognizable.
Original column of numbers in Data::column A.
Data::B2 (and filled down): =QUOTIENT(ROW()+3,5)
This adds 3 to the row number, then divides by 5, returning the quotient and ignoring the remainder.
The result is a 'group number' for each group of five rows.
Sums of each group are reported in the Sums table.
Sums::A2 (and filled down): =ROW()-1
Sums::B2 (anf filled down): =SUMIF(Data::$B,A2,Data::$A)
For your example, assuming the 8760 numbers are listed in column A of a table named Data, starting at cell A2:
Add a second column to the table (column B).
In B2 enter the QUOTIENT formula above, with these two revisions:
=QUOTIENT(ROW()+22,24)
Fill down to all cells in the column.
Provided you have named the first table "Data", both formulas in the Sums table will be as written above. You will need to extend the Sums table to 366 rows (including the Header row) to accommodate all 365 groups of 24.
Regards,
Barry
PS: For details on the functions used, see the iWork Formulas and Functions User Guide. You can download the guide via the Help menu in Numbers '09.

Similar Messages

  • How can I make a column of sums of the column next to it up to the row each sum is on?

    Hi Forum,
    I would like to find a fast way to do this:
    Numbers
    Sums
    1
    1 [sum of cell 1]
    2
    3 [sum of cells 1 and 2]
    3
    6 [sum of cells 1 through 3]
    4
    10 [sum of cells 1 through 4]
    5
    15 [sum of cells 1 through5]
    6
    21 [sum of cells 1 through 6]
    7
    28 [sum of cells 1 through 7]
    8
    36 [sum of cells 1 through 8]
    9
    45 [sum of cells 1 through 9]
    10
    55 [sum of cells 1 through 10]
    I have 500 cells.  I know how to do the SUM function one sum at a time, but I am hoping for an easier technique.
    Bruce

    the first thing to realize is that each sum is the sum of all the previous rows plus the row you are on.  This means that each row can simply add itself to the previous sum.
    row 1 is a special case because there is no row before it so B1 = A1.
    All other rows in B are:
    Bn = B(n-1) +An   (where n is the current row number)
    Wayne
    Message was edited by: Wayne Contello

  • How can i make hidden column in JTable

    hi, how can i make hidden column in JTable,
    basically i have a ID field in JTable, i have to use this ID , but i also dont want to show this ID in JTable.
    any idea how ??

    staiji its not working
    i did this :
    first :
    TableColumnModel columnModel =
    usersTable.getColumnModel();TableColumn column =
    columnModel.getColumn(1);
    usersTable.removeColumn(column);
    then when i trying to get this :
    Integer userId =
    (Integer)usersTable.getValueAt(UserBrowser.this.usersTa
    le.getSelectedRow(), 0);
    it not give me ID column's value .
    i have a column in JTable like :
    ID | Username | First name | Last name
    i want to hide ID column , but get this ID's value
    when user clicks on JTable row.Hi, if you would read the documentation about JTable.getValueAt(...) you will find, that there is a significant difference between this method and the datamodels getValueAt(...) method. JTables getValueAt(...) method interprets column-index as index in its TableColumnModel - in your TableColumnModel there is no column any longer that holds ID values, therefore you were not able to get it by JTable.getValueAt(...). Do not use these methods for the purpose you want it for - you will also get the wrong values, if the user has repositioned columns - the column index is always interpreted as index in the currently used TableColumnModel and IS NOT A MODELINDEX.
    greetings Marsian

  • How can I make a small swf file out of InDesign

    I have a 200 page book (PDF). I am trying to make a flip book to preview in web browser. How can I make a small swf file out of InDesign with the PDF I have?

    There is another point:
    if you are using JPEG images together with SWF as output file format, you could get smaller images by:
    1. using the Export For Web menu for generating size optimized JPEGs in PhotoShop opposed to Save As JPEG
    2. stripping all color management (ICC) information off the files (SWF is not very good in color management besides sRGB, I think…)
    Uwe

  • I do not have master card,visa card to make my apple ID,tell me how can I make my apple ID with out master card and visa card

    I do not have master card,visa card to make my apple ID,tell me how can I make my apple ID with out master card and visa card

    It will if you follow, exactly, the instructions on the page that lllaass included in the post above yours : Create an iTunes Store, App Store, or iBooks Store account without a credit card or other payment method

  • How can I make my app available with out logging in

    Hi guys,
    How can I make my application available with out logging in. In other word, it should work as a normal website no user name or pass word is required ?
    Best Regards,
    Fateh

    Hi Fateh,
    Edit your page, and under the security of your page change the authentication from page requires authentication to page is public
    Authentication: page is PublicSo, that your page wont ask for a login.
    Brgds,
    Mini
    Mark Answers Promptly

  • How can I make Mobile column ?

    we here in Egypt have specific format for mobiles number ..... it's like that :-
    0129231239
    0109283746
    0168483873
    ect,.
    so .... I want create table with mobile column whither this column be ten numbers only no more no less , and first two numbers be (01)
    I did that code but didn't work !
    create table mob ( Mobile varchar2(10) check (length(mobile)='10' , substr(mobile,1,2)='01');
    what's the right code for what I need ?!
    and thanks in advance

    but I can't see what's the point from use it here ?!!! Well as said - the point is to refuse to insert characters:
    SQL> create table mob ( mobile varchar2(10) check (length(mobile)=10 and translate(mobile,'0123456789','01')='01'))
    Table created.
    SQL> insert into mob values ('0123456789')
    1 row created.
    SQL> insert into mob values ('01A3456789')
    insert into mob values ('01A3456789')
    Error at line 10
    ORA-02290: check constraint (MICHAEL.SYS_C0013702) violatedIsn't that what you wanted?
    Just realized: It is still not perfect. But I am sure you or someone else can modify accordingly in case ;)
    Message was edited by:
    michaels

  • How can I make two columns in DropDownList

    like this
    I remember that the solution met.
    Except alignment spaces in a text string.

    from the Documentation
    Creating multi-column lists
    In list controls (ListBox, DropDownList, TreeView), a set of ListItem objects represents the individual
    choices in the list. Each choice can be labeled with a localizable string, an image, or both, as specified by
    the text and image properties of the ListItem (see “Displaying images” on page 72).
    You can define a ListBox to have multiple columns, by specifying the numberOfColumns creation
    parameter. By default, the number of columns is 1. If you specify multiple columns, you can also use the
    creation parameters to specify whether headers are shown, and the header text for each column.
    If you specify more than one column, each ListItem object that you add to the box specifies one selectable
    row. The text and image of the ListItem object specifies the label in the first column, and the subitems
    property specifies labels that appear in that row for the remaining columns.
    The subitems value is an array, whose length is one less than the number of columns. That is, the first
    member, ListItem.subitems[0], specifies the label in the second column. Each member specifies one
    label, as a JavaScript object with two properties:
    { text : displayString , image : imageFileReference }
    For example, the following fragment defines a list box with two columns, and specifies the labels in each
    column for the two choices:
    // create list box with two titled columns
    var list = dlg.add ('ListBox', [0, 0, 150, 75], 'asd',
    {numberOfColumns: 2, showHeaders: true,
    columnTitles: ['First Name', 'Last Name']});
    // add an item for the first row, with the label value for the first column
    var item1 = list.add ('item', 'John');
    // add the label value for the second column in that row.
    item1.subItems[0].text = 'Doe';
    // add an item for the second row, with the text for the first column label
    var item2 = list.add ('item', 'Jane');
    // add the label text and image for the second column in the second row
    item2.subItems[0].text = 'Doe';
    item2.subItems[0].image = File ("~/Desktop/Step1.png");

  • How can i make custom column added to inbox sortable

    I had a requirement to add custom column to workflow inbox, i was able to achieve this without much difficulty.
    But i have noticed this custom column is not sortable, against the OOTB columns.
    Not sure what i am missing, Thanks in Advance
    in the json, i dont see any different between OOTB column values and custom column values
    startTime: 1359678539512,
    lifestage: "Approve",
    duedate: 1368769500000,
    Environment CQ 5.5

    Hi efish,
              I followed steps specified at below post. The column is sortable.
              http://forums.adobe.com/message/5032804#5032804
    Thanks,
    Sham

  • How can I Make one column into Multiple columns

    Id
    SCM-01-015
    SCM-01-020
    SFA-02-021
    SFC-02-042
    STB-03-035
    STP-04-167
    SVF-06-150
    I want the output like this
    Id 01 02 03 04 06
    SCM-01-015 5
    SCM-01-020 10
    SFA-02-021 15
    SFC-02-042 15
    STB-03-035 20
    STP-04-167 50
    SVF-06-150 5
    thank you in advance

    Hi,
    801668 wrote:
    Id
    SCM-01-015
    SCM-01-020
    SFA-02-021
    SFC-02-042
    STB-03-035
    STP-04-167
    SVF-06-150
    I want the output like this
    Id 01 02 03 04 06
    SCM-01-015 5
    SCM-01-020 10
    SFA-02-021 15
    SFC-02-042 15
    STB-03-035 20
    STP-04-167 50
    SVF-06-150 5
    thank you in advanceWhenever you post formatted text (such as query output) on this site, type these 6 characters:
    \(small letters only, inside curly brackets) before and after formatted text, to preserve spacing.
    Do you want output something like this, which is from the scott.emp table?ENAME ANALYST CLERK MANAGER PRESIDENT SALESMAN
    ALLEN 1600
    JONES 2975
    FORD 3000
    CLARK 2450
    MILLER 1300
    SMITH 800
    WARD 1250
    MARTIN 1250
    SCOTT 3000
    TURNER 1500
    ADAMS 1100
    BLAKE 2850
    KING 5000
    JAMES 950
    (ALLEN is a SALESMAN, JONES is a MANAGER, ..., JAMES is a CLERK.)
    If so, do a pivot, somehting like this:SELECT     ename
    ,     MIN (CASE WHEN job = 'ANALYST' THEN sal END)     AS analyst
    ,     MIN (CASE WHEN job = 'CLERK' THEN sal END)     AS clerk
    ,     MIN (CASE WHEN job = 'MANAGER' THEN sal END)     AS manager
    ,     MIN (CASE WHEN job = 'PRESIDENT' THEN sal END)     AS president
    ,     MIN (CASE WHEN job = 'SALESMAN' THEN sal END)     AS salesman
    FROM     scott.emp
    GROUP BY ename
    Always say which version of Oracle you're using.
    The query above will work in Oracle 8.1 or higher, but starting in Oracle 11 there's a better way:  SELECT ... PIVOT.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • The inline line object in the header is offset in facing pages. How can I make it align with the outer margin?

    I have a Pages document with a header that contains both text and a line (a shape, inline) below the text. When I make the document two-sided (facing pages), with a 1" inside margin and a .75" outside margin, the line offsets either left or right in each section of the document. When a section starts with a right-hand page, the line is right justified on ALL the pages in the section (1" from the left and .75" from the right), even though it should be .75" from the LEFT on the LEFT-HAND pages. When a section starts with a left-hand page, the line is left justified on ALL the pages in the section.
    Is there any way to get the header  line to align with the margins properly in facing pages?

    Hi Debra,
    Click on Inspector > Layout > Section > Configuration
    Is there a tick in 'Left and right pages are different'?
    Please post a screen shot of your headers. That will help to show what you are trying to achieve.
    To take a screen shot, hold down the shift and command keys, then type 4. The cursor will change to crosshairs. Release the shift and command keys. Drag over that part of your screen then release the mouse/trackpad. A screen shot will appear on your desktop. In a reply to a message, click on the camera icon in the Toolbar above your reply and
    Choose File > Choose > Insert Image
    You may have to try this twice. Camera icon sometimes needs a wake-up call, but works the second time.
    Remove any personal details before taking the screen shot.
    Regards,
    Ian.

  • How can I make different catalogs from the same image

    How can I make different catalogs from the same image where that image has been changed in some way between the catalogs. For instance if I wanted to have a catalogs for cropped images and have 3 catalogs one for 4x6 , 5x7 and 8x10 cropping. When I tried this , if I changed a file in one catalog that same image in the other would change also.

    Do not confuse the creation of the crops and the display in collections per crop ratio.
    Of course one virtual copy (VC) per crop ratio is needed. If the same image should be cropped in all 3 mentioned ratios there would be 3 VCs.
    The OP asked how to have/see a set of same-crop-ratios.
    After having created the virtual copies for whatever crop ratio he wants, the way to display this result in the fashion asked for is via smart collections, provided they can be found. Without a plugin the naming of the VC with the crop ratio applied is a straight way to achieve that.
    IF the wish is to get new crops automatically added. (See my answers 2+3)
    IF the wish is to creat static collections per crop ratio for a certain set of images, I'd go as follows:
    1. Select all images you want to have cropped in that way,.
    2. With this selection click on the + to add another collection and fill the dialog box like this:
    Then navigate into this newly created selection and perform the 4x6 crop - according to taste individually or by synchronizing the first crop.
    Cornelia

  • HT2534 how can i make a apple id without a credit card

    How can i make a apple id with out a credit card?

    I followed the instructions 3 times
    - on my daughters iPod Touch (old iPhone 4).  My daughter purchased a book from i Books which I why I need to find a way to not associate a credit card with an Apple ID.
    - on my iPhone 5
    - on my Macbook Pro via iTunes running Mountain Lion
    In all three cases the behavior was very similar.  I was never presented with the "None" option.  Most of the time I was presented with only credit card options and the last time I was presented with an option for a credit card or paypal.
    How can there not be an option for a child to download free apps and books (age appropriate) without being able to purchase apps, games and books?

  • How can I make my query to compare only columns of two tables... not the storage information?

    11GR2
    =-----------------------------------
    I am using below querry to compare two table that has same name, under two different users... But after making storage information false like below and  if the storage information is different on column level than it create "Alter modify " statements for the column ... How can I make my query to compare only columns of two tables... not the storage information?
    begin
    DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'PRETTY', TRUE);
    DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'SQLTERMINATOR',TRUE);
    DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'SEGMENT_ATTRIBUTES', FALSE);
    DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'STORAGE', FALSE);
    DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'TABLESPACE',FALSE);
    DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'CONSTRAINTS',FALSE);
    DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'REF_CONSTRAINTS',FALSE);
    DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'CONSTRAINTS_AS_ALTER',FALSE);
    End;
    select REGEXP_REPLACE(dbms_metadata_diff.compare_alter('TABLE','TABLE_NAME_A','TABLE_NAME_A','USER1','USER2'),('USER1...'),'', 1, 0, 'i') from dual

    I am using below querry to compare two table that has same name, under two different users... But after making storage information false like below and  if the storage information is different on column level than it create "Alter modify " statements for the column ... How can I make my query to compare only columns of two tables... not the storage information?
    If you want help you have to SHOW us what you are doing and how you are doing it; you can't just try to tell us in your own words.
    We can't see your computer screen.

  • How can I make a detailed form widget into TWO columns?

    how can I make a detailed form widget into TWO columns? I have a contact form with a lot of fields.

    Hi Whatsmyjam9999,
    You can place a blank composition widget then click tigger 1, click inside target 1 and from menu--> files--> place the image and adjust it's dimensions, you can repeat the same steps for trigger 2 and 3
    Here is a video link http://ghai2.worldsecuresystems.com/jing/2013-07-22_1442.swf

Maybe you are looking for

  • Logic Pro not working right:  HELP!!!!!!!

    Logic Pro is no longer sending audio signals to the mixer. The Output display is no longer available in the Mixer. Do I need to do a major reinstall of Logic from scratch? This was not my initial problem, but developed as I tried to "fix" a different

  • Acrobat Standard XI - Sending fillable forms to people who only have Reader?

    Hi there, I really hope someone can help me, as I am quite frustrated. I have thought about buying Acrobat for a while but my most recent need is what really encouraged me to buy it -- I want to create an interactive, fillable form for our customers

  • Whether my Fortran Installation in Solaris is wrong

    As per F95 Manual The following libraries needs to exist. where as I am not finding libfui, libf77compat that too, other libraries are in .so format only and .a format libs (static libs) doesnt exist. Whether my fortran installation is wrong. If it i

  • PreparedStatement.setFloat does not enter precise values into database

    Hi I have written a program where I am entering a record in to the database using a prepared statement. The problem is for float datatypes, the values being entered into the database are not rounded off. e.g. 1.65 is being entered as 1.64999999 I am

  • ALV_Field Catalog

    Hi I am trying to generate the automatice field catalog with the help of FM<b> "REUSE_ALV_FIELDCATAG_MERGE".</b> However I am not able to recognize the exact parameters to be supplied to the FM. Below is my program. Please let me know the parameters