Column number of a cell

Hi
I have a cell object and I want to find out what column it is in. How do I do that with JavaScript? Thank you very much.
Rick

Hi Peter,
Thank you very much. I looked in the docs, but I missed it.
Rick

Similar Messages

  • Get the raw/column number of a left-mouse clicked table cell

    is this possible to get the row/column number of
    a cell where a mouse is clicked? Accutally, i want to implement a
    dynamic one column list which the user can "Add" or "Delete" some entries. The
    "Add" function is all right. The "Delete" function
    makes me upset because I cannot catch the cell's location where the
    mouse is choosing. I tries to use "Active Cell", it seems does not
    work. Do you have any clue? is this possible to implement the dynamic list using the "listbox"? thanks

    I would use the EditPos property value.  In my testing, it always returned the row and column of the cell I had left-clicked on.

  • How do i add a number in a cell which is already formatted

    how do i add a number in a cell which is already formatted

    IT seems that my orginal query has been corrupted
    the orginal question was how to preserve  rows and columns in numbers automatically.ie the cells are not consecutivecell a1 a3 etc
    working on a league table when sorting the league table ,I need to preserve the row and column I can preserve row and column by using the drop down menu on every cell,but would like to do it automatically…

  • XML column letter as opposed to column number

    Hi,
    I upload an XML file to and xstring and used a series of IF_IXML* interfaces to capture it's contents.  Thru these, I'm able to get the column count.  But, I can't seem to find a way to get the corresponding letter of the columns, i.e., A B C, etc. Not the cell name as in A1, but just the column letter.
    Is there a way to get the column letter?  This way, the user may enter the letter in an input box on the screen. Using that letter, I'll know which column to get the data from instead of  having the user count the column number and enter it in the input box.
    Thanks,
    Huntr

    Any takers ?

  • I want to put a number in a cell and tell it to times by 2 and get the result as a total further along. Sorry couldn't find the answer in any tutorial.

    I want to put a number in a cell and tell it to times by 2 to give the result i another cell?  Sorry couldn't find the answer in any tutorial.

    Hi Caakie,
    Sounds like tou need some basic information.
    The best advice I can give someone new to Numbers (and to spreadsheets in general) is to download and read at least the first four chapters of the Numbers '09 User Guide. You'll find a download link in the Help menu in Numbers '09.
    When you want to start using more complicated formulas, you'll also need the iWork Formulas and Functions User Guide, available from the same menu.
    Regarding your question: "Can you just give me the string for B which is just add and C which is *2."
    What is to be added in "B"? What is to be multiplied by 2 in "C"?
    =2+3 will return the result 5.
    =A+B will return the sum of the numbers in column A and column B in the same row as the cell containing the formula. If either A or B contains a non-numerical value, the formula will return an error message.
    =3*2 will return the result 6.
    =A*B will return the product of the numbers in column A and column B in the same row as the cell containing the formula. If either A or B contains a non-numerical value, the formula will return an error message.
    Regards,
    Barry

  • How can i use a number from a cell in a different sheet into a new sheet

    I am using 2 different sheets.
    I want to use into the second one the resulting number from a cell from the first sheet.

    Hi jpmarty,
    If you mean "documents" when you say" sheet" then I can save you some time. No, you cannot reference a cell in a different file or document. There are some people that will write applescripts to do that but they will not work in iOS.
    If both sheets are in the same document:
    Tap "=" in the cell you want the value in, tap the upward arrow that appears to the right, then navigate to the first sheet and click in the cell you want the value from. tap the check.
    quinn

  • Displaying the Row and Column number in the report

    I am trying to show row and column number in the report (not just web preview). I am using Hyperion Reports Version 7.2.5.168

    use a formula column/row. use RANK function in that. (e.g. Rank([A], asc) will sort the rows based on column A values in ascending order)
    you can use this rank in your heading.
    But frankly this is not so easy. You have to do it in a very intelligent way, so that rank gives you column number/row number any how.
    Have a try and let see if you find a appropriate solution.
    Regards,
    Rahul

  • How can I preserve row and column addresses on multiple cells at once in Numbers?

    How can I preserve row and column addresses on multiple cells at once in Numbers 3.2.2? I do a lot of rearranging and sorting and want to reference cells in other sheets. After entering the formulas (example: '=Sheet1::Table 1::H126') I will sort the table and the formulas will not move with the sort.  I think I can fix this by going cell by cell checking the 'preserve row' and 'preserve column' boxes when editing the formula.  I want to avoid having to go one by one.  I know that checking the boxes creates a formula like this: '=Sheet1::Table 1::$H$126'  I have also tried entering this manually and filling down but it doesn't include the preservations (the $$) in the autofill.  If there is another way to remedy my sorting problem that would also be welcomed!
    THANKS!!

    The title of the post is this
    How can I preserve row and column addresses on multiple cells at once in Numbers?
    I restated the Question as follows
    Can "Preserve Row" an / or "Preserve Column" be set on multiple cells at the same time.
    In both cases it is not asked if multiple cells can be set to....
    That is a given.
    Step back a second...  It is like selecting multiple cells and setting the text color of the currently selected cells to red. This can be done. More than one cell at a time modified because they are currently selected.
    Whats is being asked is:  if more than one cell is selected at the same time can the settings "Preserve Row" an / or "Preserve Column" be applied. No table I put up will help with that question.
    YES or NO
    If YES how?

  • Column number in JTextArea?

    Hi
    How do I get column number of current cursor
    in JTextArea? I need to display this info
    in my editor.
    This is complicated by the fact that tab size
    is not fixed, typing a combination of space
    and tabs randomly can result in tabs
    having tab size of 1 amid normal tabs.
    Hence counting the number of chars in the
    current line up to cursor position, call it C,
    then C minus number of tabs, T and plus
    T * tabSize won't work because tabSize is
    sometimes 1.
    Thanks
    miawomi

    Hello
    Just figure out how to do this. In case anyone
    get stuck with the same problem, here is my
    soln:
    JTextArea textArea = ...
    int caretPos = textArea.getCaretPosition();
    int lineCount = textArea.getLineCount();
    int tabSize = textArea.getTabSize();
    int currentLine = 1;
    String str = "";
    int c = 0;
    try {
    currentLine = textArea.getLineOfOffset( caretPos );
    int startOffset =
    textArea.getLineStartOffset (currentLine );
    str = textArea.getText( startOffset,
    caretPos-startOffset );
    FontMetrics fm = textArea.getFontMetrics( textArea.getFont() );
                        StringBuffer buffer = new StringBuffer();
    for ( int i = 0; i < tabSize; i++ )
    buffer.append(" ");
    int tabWidth = fm.stringWidth( buffer.toString() );
    for ( int i = 0; i < str.length(); i++ ) {          char C = str.charAt( i );
                             if ( fm.charWidth( C ) == tabWidth )
                                  c = c + tabSize;
                             else
                                  c++;
                   } catch ( BadLocationException ex ) {
                        ex.printStackTrace();
    If anyone has a much less cpu intensive solution,
    please let me know.
    Thanks in advance
    miaw

  • Getting the row and column number from the caretposition

    Howdy peeps
    Does anyone know how to find out the Line number and column in a JTextPane by using the caret position
    (you know like in text editors where it says 100:4 [line number:character position on row])
    is there a simple way of doing this in a JTextPane?

    im getting a bit confuzzled with this :(
    can someone help me out with a bit more code orientated help? :$
    i have a jTextArea and a JTextField, when i change the caret in the text area i want the JTextField to show the line number and charater position on the row (e.g. 100:4)
    so i assume i need to methods
    e.g.
    getPaneRow
    myint=myPane.getCaretPosition()
    do some wonderful magic code to get the line number
    return line number
    getPaneColumn
    myint=myPane.getCaretPosition()
    do some wonderful magic code to get the column number
    return column number
    is there a magician out there that can give me the magic powder? :)

  • Summary Links web part not showing correct column number

    Here is my scenario. I have a simple two server dev farm that is using a snapshot of production data. I have migrated the 2010 content db over and everything is running fine. One quirk I have noticed is with the summary links web part. If I add the webpart
    to a page, in the configuration settings for the webpart you can create named groups and the next setting is how many columns you want the links to appear in. When I select lets say "4" columns, and I create four groups. When I save and check in
    the web part only shows "3" columns instead of 4. 
    For Example. 
    I create groups: Group 1
                              Group 2
                              Group3 
                              Group 4
    In the webpart configuration I select "display number of columns" = 4
    When I save that setting and look at the web part the groups will appear as:
     Group 1             Group 2                    Group 3
    Group 4
    when in reality if the column setting is = 4, I would expect: 
    Group 1      Group 2      Group 3      Group 4
    So it appears it is behaving as if whatever column number you select, what is displayed is N-1. 
    Has anyone else had this happen in SharePoint 2013? The same webpart doesn't behave this way in the 2010 production environment where dev gets its content. Any help would be great. 
    Thanks,

    Hi againeyuga,
    Yes, I have tested in my SharePoint Server 2013 with December 2013 CU  and it  works fine. For your environment, I recommend  you install the SP1 update.
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Why order by clause maintains column number values instead of column names

    why order by clause maintains column number values instead of column names ?

    we can use oder by 1,2 as column number
    UGNo one said that it can't be used. What's your point?
    To OP: It can be written with the column's 'select list positional number' just because for the support of laziness. :)
    There's no difference between 'ORDER BY name, address' and 'ORDER BY 1,2'.

  • Purchase order row basecard column number

    hi
    any one help me what is purchase order row basecard column number.
    Thanks & Best Regards
    B.Lakshmi narayanan

    Hi,
    Could you clarify your reguest?
    Thanks,
    J.

  • (wls61sp4)java.sql.SQLException: Invalid column number [jDriver for MSSQL]

    Hi,
    Could any one help me?
    We use weblogic 6.1 SP4 and SQL2000 SP3, and we weblogic's JDBC driver(mssqlserver4v65).
    It seems the JDBC connections is not stable and sometimes throw the exceptions:
    ==========================================
    java.sql.SQLException: Invalid column number (2). This table has 1 columns (a valid index is 1 trough 1).
    java.sql.SQLException: Invalid column number (2). This table has 1 columns (a valid index is 1 trough 1).
         at weblogic.jdbc.mssqlserver4.TdsResultSet.getEntry(TdsResultSet.java:193)
    ===========================
    Thank you.
    --Ted

    Ted wrote:
    Hi,
    Could any one help me?
    We use weblogic 6.1 SP4 and SQL2000 SP3, and we weblogic's JDBC driver(mssqlserver4v65).
    It seems the JDBC connections is not stable and sometimes throw the exceptions:
    ==========================================
    java.sql.SQLException: Invalid column number (2). This table has 1 columns (a valid index is 1 trough 1).
    java.sql.SQLException: Invalid column number (2). This table has 1 columns (a valid index is 1 trough 1).
    at weblogic.jdbc.mssqlserver4.TdsResultSet.getEntry(TdsResultSet.java:193)
    ===========================
    Thank you.
    --TedCan you reliably reproduce this? Are you sure the query being sent returns
    more than one column? You should be using the mssqlserver4v70, not v65, for
    sqlserver2000.
    Joe

  • Is there any option in JTable to add the column number

    Hi,
    I am using JTable to show some data read from database.
    I want to add the column number autometically.(Without by talking a variable and incrementing that by 1.After that add that to the first column.)
    I want just like a auto increment row number.
    Is there any option in JTable?
    Thanks

                        for(int i = 0; i < table.getRowCount(); i++){
                            table.setValueAt(i, i, 0);
                        }

Maybe you are looking for

  • Increase performance in a multiple data source report

    Post Author: ArturoFromPeru CA Forum: General Hi everybody. I have a big problem, when i make a report that have multiple data sources the performance decrease considerably, i still don't know the reason. Is it true that using multiple data sources i

  • Nokia 5230 connection problems

    i am using nokia 5230. i have just downloaded and installed PC suite 7.1.51.0 with windows visa 32 bit. the very first time, everything worked fine. i synchronised all the phone contents to PC. now, whenever i connect the phone to PC, it gives me a m

  • I want to keep a Pop Up Menu blank when not used?

    I've got a spread sheet that in several cells that I have a Pop Up Menu assigned and the first menu shows up in the cell in all of the cells for the Pop Up Menu. What I'd like to have is to keep those cells blank with no text or anything unless I cli

  • Battery Degrading

    My MBP is now around 1 year and a half old. The battery that came with it degraded surprisingly fast. so that i couldn't get more than an hour if I was lucky. I started noticing the degradation around 5 months ago I think, maybe 6. I waited to get a

  • A button in a region position

    "a button in a region position" - hello, is it possible to place this kind of button among region items? in Button Position options i couldn't find possition i need.. thx, mariam