Get Last Number in Column

I have a column of numbers (ColA), into which I enter a new number at the bottom of the list for each day.
I have another table where I want to show only the latest number entered in ColA. I don't want an average or max or min... I want the last number in the column. And since the column grows every day, I don't know what that cell number will be.
Is there a way to do this?
Thanks
D

Hi Dana,
Here's a two part formula set that should do it.
The numbers are entered in column G.
1. Two versions of a step one formula. Each checks for three consecutive empty cells in column G. If three are found, then the contents of the last cell before them is returned. Otherwise the return is a blank (or zero). For each, the formula is as it appears in cell H2.
=IF(AND(G2>0,ISBLANK(G3),ISBLANK(G4),ISBLANK(G5)),G2,"")
OR
=IF(SUM(G3,G4,G5)=0,G2,"")
Whichever you use, drag the handle at the bottom right of H2 to fill the formula down column H.
The first formula returns blanks for all cells except the target one, for which it returns the number in G2. The second returns the same results up to the target one, but returns zeros for all cells after that.
2. The second formula collects the number from column H, and places it in a fixed location (ie. the cell containing this formula. I put it in cell J2.
=MAX(H)
Column H is used only for calculation, and may be hidden.
NOTE: These formulas reflect the way I would accomplish this in an AppleWorks spreadsheet. It works in Numbers as well, but does not take advantage of any Numbers specific features.
Regards,
Barry

Similar Messages

  • How to get the number of columns in a result set???

    hi everyone..
    i am trying to establish a servlet applet communication....
    my applet send the sql query to the servlet as serialised string and then the servlet executes the query...
    Since i need to pass the result back to the applet, i thaught of passing the whole reult set to the applet..but that seems to be not possible..
    so i thaught of storing my result set data in a vector and then pass the vector,but the first problem that i came across is that how to get the number of colums in a result set....
    so is there a way to get the number of columns in a result set...???
    and also i would like to know if it possible to send my whole result set to the applet bye serialization or by any method...???
    thanx in advance

    You shouldn't do. It expenses resources (you should always close the ResultSet and the Statement as fast as possible). Simply gently process it into a Collection or Map of DTO's. Those are serializable.

  • Print prob: system cannot print the last number of columns of the report

    Hi, im having trouble printing my report with more than the standard screen size. i want to print the report in a specific font size, so i created a customized page format. however, it does not print the succeeding columns of the report. what should i do? thanks

    Received answer directly from SQL*Plus Development:
    "sqlplus does not have a limit on the number of columns it displays."
    They created a table with more than 256 columns with data and had no problem retrieving the data.

  • Maximum Number of Columns Error

    Okay, I've searched the discussion groups and did not see an answer to this so if anybody can help, it would be greatly appreciated. I have a user trying to pull back numbers from Essbase to an Excel spreadsheet and is getting "Maximum number of columns [1] exceeded [3].There is no Essbase error message associated with the error. I can pull back the same data on my set and do not get the error. Any help......thanks.

    I have to disagree with the last comment; there is no "patch" for Hyperion to send. It's a simple version incompatibility. This situation usually occurs when you either upgrade the Essbase version or Excel, usually Essbase. The problem is that the "old" version of the Add-In isn't compatible with the new Essbase kernel, or in some cases the Excel version.<BR><BR>Try this:<BR><BR>In Excel, uncheck the <b>OLAP Server DLL</b> checkbox and install it again. To do so, browse to the server's hard drive, then to the ...\hyperion\essbase\bin directory and select the <b>Essexcln.xll</b> file. This will get a new copy of the Add-in from the server.<BR><BR>This situation has also occurred when version 6 Essbase is used with Excel 2003 and there's a different solution for that. If the above doesn't work, provide me with the Essbase version and the Excel version, along with what (if anything) has recently changed and I'll field it from there.

  • How to count number of columns in cross-tab report

    I have created a cross-tab report and have managed to get the data out as below:
                 Jan     Feb     Mar....(display of months will auto expand) Avg/Mo  Total
    UserA     4          3        4                                                                         11
    UserB     6          1        1                                                                          8
    UserC     5          5        5                                                                         15
    Total       15        9        10                                                                        33 
    I want to insert a calculated column (Avg/Mo) into the cross-tab report based on the formula: Total/Number of Months. I used this calculation formula  for Avg.Mo column:
    (GridValueAt(CurrentRowIndex, CurrentColumnIndex+1, CurrentSummaryIndex)/GetNumColumns)
    However, I get the wrong average since GetNumColumns count the total number of columns including the column of Avg/Mo and Total.
    How do i get the number of columns, excluding the Avg/Mo calculated column and Total column?
    PS: I can't use hardcode since the number of months/columns will auto expand the months progress...
    Edited by: jutamind on May 26, 2010 9:27 AM

    ok managed to solve this by slightly changing the formula:
    GridValueAt(CurrentRowIndex, CurrentColumnIndex+1, CurrentSummaryIndex)/(GetNumColumns-2)

  • Number of columns in a resultset

    Hi all,
    I would like to know if it's possible to get the number of columns returned by a resultset:
    conn = pool.getConnection();
    cs = conn.prepareCall("{call server.procedure(?,?,?)}");
    cs.setString(1, name);
    cs.setString(2, string);
    cs.registerOutParameter(3, OracleTypes.CURSOR);
    cs.execute();
    rs = (ResultSet) cs.getObject(3);
    here I would like to know how many columns there are in the resultset, rs.next returns the next row but I need the columns as well.
    Thanks,
    A.

    ResultSetMetaData rmd = rs.getMetaData();
    System.out.println(rmd.getColumnCount());

  • How to access variable number of columns using ref cursor !

    Hi,
    I am trying to get variable number of columns using ref cursor.
    Declare
    mySzSql varchar2(2000);
    Type dynSqlRC is Ref cursor;
    current_cur dynSqlRC;
    tbl_rec alt_42_consolidated%Rowtype;
    Begin:
    /* This works */
    mySzSql := 'select *
    from
    Table1
    Where
    rowid = ''AAEWNEABXAAAAkxAAA''';
    /* i want something like this to work, this is not working, giving missing variable name error */
    mySzSql := 'select col1, col2, col3
    from
    Table1
    Where
    rowid = ''AAEWNEABXAAAAkxAAA''';
    open current_cur for mySzSql;
    fetch current_cur into tbl_rec;
    close current_cur;
    End;
    I do have the list of desired columns which I am looking to fetch, so after taking that in the record type, how should i get their values. Is it possible to traverse tbl_rec declared above and if column name matches then I will store the value in the array and finally return this array.
    Can somebody please tell me how to do this.
    Thanks

    It appears that this is a followup to How to loop through columns selected by select clause which is itself a followup to [url="
    How to execute dynamic sql"]this earlier thread.
    Assuming these are intended to be followup questions, can we please stick to a single thread? That makes it a lot easier to understand the situation and follow the conversation. Starting multiple threads makes it harder to follow the conversation.
    Thanks,
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • How to get the number of decimal places configured for a site column

    Hi,
    I have a column 'SampleNumCol' of type Number, the number of decimal places to be displayed is configured as 2.
    The column conatins a value, but when retrieved programatically is displayed as 5.00000000  instead of 5.00.
    I am retrieving this column using listitem.Properties[field.InternalName].
    I need to trim the decimals based on  number of decimal places configured for the site column.
    How to get the number of decimal places configured for a site column?
    Thanks in advance,
    dhijit

    Get the field as SPFieldNumber and then check DisplayFormat which returns
    SPNumberFormatTypes
    SPFieldNumber numberField = list.Fields.GetFieldByInternalName("YourNumberFieldName") as SPFieldNumber;
    SPNumberFormatTypes numFormatType = numberField.DisplayFormat;

  • How to get Maximum Number of Concurrent users for last few days?

    Hi,
    How I can get maximum number of concurrent users which were logged in to the system (ECC 5.0) I mean I want to check the hostory for last few weeks. Is there any way to get the same? I know that I can get Cumulative number of users in st03 under Expert mode but that is the number of users logged into the system during the day. Is there any place where SAP maintians the High Watermark of Number of concurrent users reached in the system?
    Thanks in advance...
    Regards,
    Pravin

    Sorry I really missed that I have posted a question here on sdn. I wanted to know this for planning the system hardware requirements. Activities like PM ( Performance Management ) happens once a year and during that activity we see heavy user loan on the system so if I have the exact stats of 1 or 2 years data I can size the system better next time. Fortunately last 2 years PM was very smooth for us. In that look for the improvement because each time we had little extra Harware. By doing the exact analysis we can save a Cost of ownership...
    I was looking for R/3 users. I could see the number in st07 but I want to know the exact number at particular time.. I believe that st07 stores only for few days.
    Thanks
    Pravin

  • I am getting following error! XML Parsing Error: undefined entity Location: chrome://weave/content/options.xul Line Number 6, Column 3: setting id="weave-account" type="string" title="&account.label;" / --^

    I am getting followong error
    XML Parsing Error: undefined entity
    Location: chrome://weave/content/options.xul
    Line Number 6, Column 3: <setting id="weave-account" type="string" title="&account.label;" />
    --^

    I had this problem - it appeared to be due to having Firefox 4 with the Firefox Sync installed as an add-on. Firefox 4 has sync included so there is no need to have it as an add-on. I went to the add-on manager and removed Firefox Sync and now appears to be working correctly.

  • Can't add a new account in FireFTP. Get XML Parsing Error: undefined entity Location: chrome://fireftp/content/accountManager.xul Line Number 216, Column 17:

    I'm having trouble adding an additional account to FireFTP. I keep getting a yellow box with this title:
    XML Parsing Error: undefined entity
    Location: chrome://fireftp/content/accountManager.xul
    Line Number 216, Column 17:
    <menu label="&charsetMenuMore1.label;" accesskey="&charsetMenuMore1.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore1CharsetMenuRoot">
    ----------------^
    Don't understand the problem, can anyone help please?

    Try updating FireFTP to the latest 2.0.20 version.
    ''An update for Firefox 32 compatibility.''
    https://addons.mozilla.org/en-US/firefox/addon/fireftp/

  • How to get Number of Column in Excel file

    Hi All,
                   My requirment is to get Number of Column in Excel file which i want to upload,
      so please suggest if there is any possible way to get this functionality.
    Thanks
    Anirudh

    Use FM "ALSM_EXCEL_TO_INTERNAL_TABLE".
    Adjust the values of i_begin_col & i_end_col parameters in this FM.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          FILENAME                      =
          I_BEGIN_COL                   =
          I_BEGIN_ROW                   =
          I_END_COL                     =
          I_END_ROW                     =
        TABLES
          INTERN                        =
      EXCEPTIONS
        INCONSISTENT_PARAMETERS       = 1
        UPLOAD_OLE                    = 2
        OTHERS                        = 3
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Regards,
    BBR.

  • Function Module to get pernr number based on first name and last name

    Hi All,
    What is the Function Module to get pernr number based on first name and last name.
    Could you please help me.
    T@R.
    Vidya

    hi Vidya,
    you can get perner from PA0002 based on firs name and last name.
    use select query and get perner.

  • Firefox crashes continually. Now I'm getting this error and cannot open firefox at all: XML Parsing Error: not well-formed Location: chrome://browser/content/browser.xul Line Number 1068, Column 87:

    SInce the latest update Firefox has crashed continually for about two weeks now. Continually means at least 10 times a day. Now it does not open at all and I get this message when launching Firefox:
    XML Parsing Error: not well-formed Location: chrome://browser/content/browser.xul Line Number 1068, Column 87:

    SInce the latest update Firefox has crashed continually for about two weeks now. Continually means at least 10 times a day. Now it does not open at all and I get this message when launching Firefox:
    XML Parsing Error: not well-formed Location: chrome://browser/content/browser.xul Line Number 1068, Column 87:

  • How to Get last page number in report 10g

    I want to get last page number in report but Current page number found from srw.get_page_num(n)
    but i want to get last page number for conditional formating like this
    srw.get_page_num(current_page)=last_page
    pls help me how can get last page number;
    pls help;
    thanks in advanced;

    Hi,
    you can use the Property Print Object On for this.
    Regards
    Rainer

Maybe you are looking for