Adjusting Column After Splitting a Cell

Hello,
I am new with Pages and am amazingly impressed with all that it does. Perhaps I am pushiing it a bit too far but when I split a cell into two cells I am not able to adjust the size of any of the two cells. Is this normal?
Thanks in advance.
Farzad

Thanks. Here is what I have done:
I created an ordinary table and then merged two cells of two columns together for formatting purposes. Down the road I decided I didn't want them merged and so I splitted that merged cell into two cells, and it worked. It is these two new cells that I cannot resize.
I can't attach the file so I am attaching a snapshot of it to this message.
Thanks for the replies.
Farzad

Similar Messages

  • Splitting a Cell

    Hi... I'd like to split a cell after a designated amount of characters but dont want it to break a word.
    So for instance if cell A1 contained:
    Put these events in order of occurrence, starting with the earliest.
    But I want to split it to lines with a maximum character length of 32 (but dont want a word to break at the end of the line), if I insert =LEFT(A1,32) then I get
    Put these events in order of occ
    Is there any way to check for the space before the word at which the line break occurs or am I screwed?
    Thanks for any help!

    This may work better:
    Type your string in A1
    A2=LEFT(D2, 32-C2)
    B2 contains 1
    C2=IFERROR(MATCH(" ", E2:AH2, 0), 0)
    D2=MID($A$1, SUM($B$2:B2)+1, 32)
    E2=IFERROR(MID($D2, LEN($D2)-(COLUMN()-5), 1), "")
    select E2 and fill to the right through AJ2
    now select C2 through AJ2 and fill down as needed
    B3=LEN(A2)+1
    select B3 and fill down
    now select A2 and fill down
    A2 through A4 will contain the broekn up string

  • 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?

  • Help for adjusting columns of a JTAble in a Table Model

    Hello community,
    In order to have a good display of by DataBase in a JTable, I've wrote some code to adjust columns in function of datas. Those datas are displayed with a TableModel ( which I've declared in a class JDBCAdapter ).
    When I start my application, I call adjustColumns(), and all is great but when I add information to my DB and display it, the columns of my JTable return to default width...
    So I want to incorporate my function adjustColumns in my TableModel, and I need help...
         void adjustColumns()
         // Ajuste les colonnes aux donnes pour que tout soit visible
         int nbRow,nbCol;
         nbRow = JTable1.getRowCount();
         nbCol = test.getColumnCount();
         for ( int i = 0; i < nbCol; i++ )
         com.sun.java.swing.table.TableColumn column = null;
         column = JTable1.getColumnModel().getColumn(i);
         int dataLength = 0;
         for ( int j = 0; j< nbRow; j++ )
         FontMetrics fm;
         int dataLengthTmp;
         String valueTable;
         fm = JTable1.getFontMetrics(JTable1.getFont());
         if ( test.getValueAt(j, i) == null )
         System.out.println("Valeur nulle...");
         dataLengthTmp = 0;
         else
         valueTable = test.getValueAt(j, i).toString();
         dataLengthTmp = fm.stringWidth(valueTable);
         System.out.println(valueTable + " = " + dataLengthTmp);
         if ( dataLengthTmp > dataLength )
         dataLength = dataLengthTmp;
         if ( dataLength != 0 )
    column.setWidth(dataLength + 5);
    else
    column.sizeWidthToFit();
    JTable1.setModel(test);
    JTable1.repaint();
    import java.util.Vector;
    import java.sql.*;
    import com.sun.java.swing.table.AbstractTableModel;
    import com.sun.java.swing.event.TableModelEvent;
    public class JDBCAdapter extends AbstractTableModel {
    Connection connection;
    Statement statement;
    ResultSet resultSet;
    String[] columnNames = {};
    Vector rows = new Vector();
    ResultSetMetaData metaData;
    public JDBCAdapter(String url, String driverName,
    String user, String passwd) {
    try {
    Class.forName(driverName);
    System.out.println("Ouverture de la connexion a la base de donnee...");
    connection = DriverManager.getConnection(url, user, passwd);
    statement = connection.createStatement();
    catch (ClassNotFoundException ex) {
    System.err.println("Cannot find the database driver classes.");
    System.err.println(ex);
    catch (SQLException ex) {
    System.err.println("Cannot connect to this database.");
    System.err.println(ex);
    public void executeQuery(String query) {
    if (connection == null || statement == null) {
    System.err.println("There is no database to execute the query.");
    return;
    try {
    resultSet = statement.executeQuery(query);
    metaData = resultSet.getMetaData();
    int numberOfColumns = metaData.getColumnCount();
    columnNames = new String[numberOfColumns];
    // Get the column names and cache them.
    // Then we can close the connection.
    for(int column = 0; column < numberOfColumns; column++) {
    columnNames[column] = metaData.getColumnLabel(column+1);
    // Get all rows.
    rows = new Vector();
    while (resultSet.next()) {
    Vector newRow = new Vector();
    for (int i = 1; i <= getColumnCount(); i++) {
    newRow.addElement(resultSet.getObject(i));
    rows.addElement(newRow);
    // close(); Need to copy the metaData, bug in jdbc:odbc driver.
    fireTableChanged(null); // Tell the listeners a new table has arrived.
    catch (SQLException ex) {
    System.err.println(ex+" query = "+query);
    public void executeUpdate(String query) {
    if (connection == null || statement == null) {
    System.err.println("There is no database to execute the query.");
    return;
    try {
    statement.executeUpdate(query);
    // close(); Need to copy the metaData, bug in jdbc:odbc driver.
    fireTableChanged(null); // Tell the listeners a new table has arrived.
    catch (SQLException ex) {
    System.err.println(ex+" query = "+query);
    public void close() throws SQLException {
    System.out.println("Fermeture de la connection a la base de donnee... Bye !");
    resultSet.close();
    statement.close();
    connection.close();
    protected void finalize() throws Throwable {
    close();
    super.finalize();
    // Implementation of the TableModel Interface
    // MetaData
    public String getColumnName(int column) {
    if (columnNames[column] != null) {
    return columnNames[column];
    } else {
    return "";
    public Class getColumnClass(int column) {
    int type;
    try {
    type = metaData.getColumnType(column+1);
    catch (SQLException e) {
    return super.getColumnClass(column);
    switch(type) {
    case Types.CHAR:
    case Types.VARCHAR:
    case Types.LONGVARCHAR:
    return String.class;
    case Types.BIT:
    return Boolean.class;
    case Types.TINYINT:
    case Types.SMALLINT:
    case Types.INTEGER:
    return Integer.class;
    case Types.BIGINT:
    return Long.class;
    case Types.FLOAT:
    case Types.DOUBLE:
    return Double.class;
    case Types.DATE:
    return java.sql.Date.class;
    default:
    return Object.class;
    public boolean isCellEditable(int row, int column) {
    try {
    return metaData.isWritable(column+1);
    catch (SQLException e) {
    return false;
    public int getColumnCount() {
    return columnNames.length;
    // Data methods
    public int getRowCount() {
    return rows.size();
    public Object getValueAt(int aRow, int aColumn) {
    Vector row = (Vector)rows.elementAt(aRow);
    return row.elementAt(aColumn);
    public String dbRepresentation(int column, Object value) {
    int type;
    if (value == null) {
    return "null";
    try {
    type = metaData.getColumnType(column+1);
    catch (SQLException e) {
    return value.toString();
    switch(type) {
    case Types.INTEGER:
    case Types.DOUBLE:
    case Types.FLOAT:
    return value.toString();
    case Types.BIT:
    return ((Boolean)value).booleanValue() ? "1" : "0";
    case Types.DATE:
    return value.toString(); // This will need some conversion.
    default:
    return "\""+value.toString()+"\"";
    public void setValueAt(Object value, int row, int column) {
    try {
    String tableName = metaData.getTableName(column+1);
    // Some of the drivers seem buggy, tableName should not be null.
    if (tableName == null) {
    System.out.println("Table name returned null.");
    String columnName = getColumnName(column);
    String query =
    "update "+tableName+
    " set "+columnName+" = "+dbRepresentation(column, value)+
    " where ";
    // We don't have a model of the schema so we don't know the
    // primary keys or which columns to lock on. To demonstrate
    // that editing is possible, we'll just lock on everything.
    for(int col = 0; col<getColumnCount(); col++) {
    String colName = getColumnName(col);
    if (colName.equals("")) {
    continue;
    if (col != 0) {
    query = query + " and ";
    query = query + colName +" = "+
    dbRepresentation(col, getValueAt(row, col));
    System.out.println(query);
    System.out.println("Not sending update to database");
    // statement.executeQuery(query);
    catch (SQLException e) {
    // e.printStackTrace();
    System.err.println("Update failed");
    Vector dataRow = (Vector)rows.elementAt(row);
    dataRow.setElementAt(value, column);
    Thanks to help me.

    Hi,
    OK. I have read your code sample again. It looks like the JDBCAdapter class is reloading table data in the executeQuery method. Why not call adjustColumns at the end of this method after the new rows and columns are loaded? Perhaps it also should be called at the end of executeUpdate. Have you tried doing that?
    I would still set
    JTable1.setAutoCreateColumnsFromModel (false); to prevent Java from readjusting the size automatically at some other time.
    regards,
    Terry

  • Inserting a calculated column after every column in cross tab, in crystal report 2011

    HI,
    I want to insert a calculated column after every column i a cross tab . The cross tab shows , sales by region for a number of years , for example from 2007 to 2013. The year can be changed based on the user parameter. How can I do that ?
    Thanks

    Hi Feroz,
    To calculate the Percentage Change and also to show the Percentage sign, here's what you need to do:
    1) Right-click the Calculated Column Header > Calculated Member > Edit ColumnValue Formula and use this code:
    cdate(1890,01,01)
    If the field used as the column is a datetime field, use this:
    cdatetime(1890,01,01,0,0,0)
    2) Right-click one of the zero values in the Percentage Column and select Calculated Member > Edit Calculation formula and use this code:
    if CurrentColumnIndex  = 2 then 
        If GridValueAt(CurrentRowIndex, CurrentColumnIndex-2, CurrentSummaryIndex) = 0 then 
        0 
        else 
         (GridValueAt(CurrentRowIndex, CurrentColumnIndex-1, CurrentSummaryIndex) - GridValueAt(CurrentRowIndex, CurrentColumnIndex-2, CurrentSummaryIndex))/ 
         GridValueAt(CurrentRowIndex, CurrentColumnIndex-2, CurrentSummaryIndex)
         ) * 100 
    else 
        If GridValueAt(CurrentRowIndex, CurrentColumnIndex-3, CurrentSummaryIndex) = 0 then 
        0 
        else 
         (GridValueAt(CurrentRowIndex, CurrentColumnIndex-1, CurrentSummaryIndex) - GridValueAt(CurrentRowIndex, CurrentColumnIndex-3, CurrentSummaryIndex))/ 
         GridValueAt(CurrentRowIndex, CurrentColumnIndex-3, CurrentSummaryIndex)
         ) * 100 
    3) Right-click one of the Values in the summary cells > Format Field > Number tab > Customize > Currency Symbol tab > Click the formula button beside 'Currency Symbol' and use this code:
    If Year(GridRowColumnValue("Date_field")) = 1890 then
    "%" else "$"
    Note: Replace Date_field with the field name you've used as the Column in the Crosstab. The double-quotes ARE required and you should remove any curly braces that CR adds automatically.
    4) You might want to use a similar code in the 'Position' formula too.
    Let me know how this goes.
    -Abhilash

  • Possible to split a cell? numbers v3.1

    Is it possible to split a cell in Numbers 3.1? Thank you for your help.

    NO, there is no split cell function.  You can do what you want, which I think is you want one row to have a column that is split, like this:
    To do this:
    create a table with two rows:
    Now select two adjacent cells in the same row and merge them:
    Now select the first row and duplicate by using the <option> + <up arrow> key combination:
    To add rows below the row with the merged cells, select the row with the merged cell, then copy
    now select a row that is earlier and paste,
    you can delete the row with the merged cell at the end
    or you can select a row without a merged cell, copy, then paste over one that has a merged cell.
    WARNING: you should know that all kinds of undesireable things happen with merged cells.

  • Multi Mapping : How to get Message count after splitting

    Hi all,
    I am following below blog.
    /people/narendra.jain/blog/2005/12/30/various-multi-mappings-and-optimizing-their-implementation-in-integration-processes-bpm-in-xi
    Can any body please tell me how to get the count of messages generated after splitting in the message mapping.. I have created the message data type but not aware what is needed to be done.
    Thanks and best regards,
    Kulwant Singh

    Multi mappings r done in order to split the messages to the number of messages required by the user. So for 1:N mapping, the details about "N" is based on ur requirement. So its not like - when u split, any number of message could get created. The count would be dependent on u.
    Regards,
    Prateek

  • Is splitting a cell now gone???

    Such a basic function. There appears to be absolutely no way to split a cell in the new iWork.

    such a basic function and an easy function to keep.
    As far as I can tell, as Jerry points out, splitting and merging are recipe for trouble, even on Numbers 2.3. Sorting and filtering can become a nightmare.
    Since there are other ways to achieve the same display effect as splitting and merging, I'm happy to see that splitting, at least, is gone.
    I'd rather have sorting work right, which perhaps is an even more basic spreadsheet function.
    SG

  • SPLIT the cell in either template or table horizontally

    Hi ,
               Hope you all doing well,
               Can any  body let me know how to split the cell in eithe template or table horizontally,
    what i mean to say in detail is that i have created three cells using two lines  types, which it gave be 3 boxes , now i want to split only third box alone in to two parts with an horizantal line not by vertical line.
    *Please note note , i dont want to split the cell vertically , i want to split it to horizontally.*
    can any body help .
    Thanks and regards,
    SADIQ ALI SHAIK,
    9966408168

    Hi,
    Better to use 2 Templates.
    Eg :
    Total Width -
    120 MM.
    Then Create first template with following measurements.
    Width                         80      CM
    Horizontal Alignment   left   0.50   MM
    Vertical Alignment
    Here u can mention Height width of the cells
    Next create another template.
    Width                         40      CM
    Horizontal Alignment   left  85   MM
    Vertical Alignment
    here also u can mention the height and width for two line types.(this for split the box horizontally)

  • Can I split a cell in Numbers in Ipad?

    Can I split a cell in Numbers in Ipad?

    I have Office:Mac 2011, too. if it's possible in that, please let me know. I was able to link cells from Excel in Word, but each cell would start a new paragraph/line rather than go in a series.

  • Unable to adjust column mapping

    Hi,
    I have an LOV where I've 4 items from the same table DONOR_TAB
    COLUMN NAMES RETURN ITEM
    FIRST_NAME DONOR_TAB_BLK.FIRST_NAME
    DONOR_CODE DONOR_TAB_BLK.DONOR_CODE
    MIDDLE_NAME DONOR_TAB_BLK.MIDDLE_NAME
    LAST_NAME DONOR_TAB_BLK.LAST_NAME
    I need to add one more item to the LOV
    CITY_NAME DONOR_TAB_BLK.CITY_NAME
    All the above reside in the same block DONOR_TAB_BLK
    CITY_NAME is in the block where all the previous 4 items reside i.e FIRST_NAME,DONOR_CODE,MIDDLE_NAME,LAST_NAME.
    But CITY_NAME belongs to CITY_MASTER_TAB table whereas the previous 4 items belong to DONOR_TAB table.
    When i add CITY_NAME to the record group for LOV and compile , i get the message "Unable to adjust column mapping for form ouptut"
    Why is this? I know i've committed some error somewhere but i'm not sure where.
    Can u help me?

    Are you using Designer to add LOV to a Module Diagram and then generate a Form?
    Or are you using Forms Builder to create record group for LOV?

  • Why can't you adjust column width in pages for ipad?

    Why can't you adjust column width in pages for ipad?

    It's just one of the many, many features that have been removed. It all appears to be deliberate, not an oversight. Leave feedback for the Pages team using the link in the Pages menu.

  • Pleaz Help me.Printing - Columns gets splitted when I use Print Mode Normal

    Hi,
    I have got a problem with printing the JTable.I am using Printmode Normal.The Table has got 30 columns.When I print them the last column in each page gets splitted.How do I stop this.I dont want to split the column.If the column doesnt have enough space it should move to the new page.It shouldnt split the colum.
    Any Ideas how to do it?
    Thanks in advance.
    HP

    Thanks for your reply.
    Sorry I made a mistake. When I scale the JTable the columns gets splitted.I dont scale the table the columns are fitted correctly to the sheet. If I print the table without scaling the table font becomes bigger.(The Table font is not same as the one displaying on the screen.).So I have to scale the Table.
    Is there any solution to scale the table without splitting the columns.(or printing the JTable in the same size of that displayed on the screen).
    and the code is
                  @Override
         protected void printComponent(Graphics g) {
            setShowGrid(false);
            Graphics2D  g2 = (Graphics2D) g;
            g2.scale(0.5, 0.5);
            g= (Graphics)g2;
            super.printComponent(g);
            setShowGrid(true);
    private void printButtonActionPerformed() {
    ExcelTable excelTable1= new ExcelTable();     
                  excelTable1=excelTable;
                  excelTable1.setTableHeader(null);
                  MessageFormat headerFormat = new MessageFormat("Page {0}");
                MessageFormat footerFormat = new MessageFormat("- {0} -");
                try {
                        excelTable1.print(JTable.PrintMode.NORMAL, headerFormat, footerFormat);
          } catch (PrinterException e) {
                        e.printStackTrace();
                   }Thanks
    HP

  • Adjustment Modifications after Patch upgrade?

    Hello,
    Is it possible that the Modifications Adjustments (done in SPAU and SPDD and occured due to SAP_BASIS and SAP_ABA patches) be carried out after the patches upgrade?
    To be more clear, instead of Adjusting the Modifications while patch upgrade is in progress can i configure the patch upgrade in SPAM transaction someway that the Modification Adjustments is directly shown to the user upon their login after my patch upgrade?
    Regards,
    Vasu

    Hi Vasu,
    Yes you just need to transport the request to next system.
    Than you don't need to redo the adjustment.
    But some time due to incosystency between the system, you still get some object not adjusted after you apply the request, and for this you need to transport the object from your development or direct adjust.
    After 12 days than when you change  the object, SAP will ask you for the object key, and you need to request the key in SAP MarketPlace before you can change the object.
    Regards,
    Fendi Suyanto

  • How to Format DataTable Column after load Datatable without extra loop ??

    How to Format Column after load Datatable without extra loop ??
    I dont want to do extra logic which can cause performance thing.
    I have datatable which get fill from Dataset after database query, now i need to format column as decimal but without extra logic.
    I was thinking to create clone and than Import row loop but it ll kill performance, its WPF application.
    Thanks
    Jumpingboy

    You cannot do any custom things at all without doing some "extra logic". Formatting a number as decimal is certainly not a performance killer in any way whatsoever though.
    If you are displaying the contents of the DataTable in a DataGrid you could specify a StringFormat in the XAML:
    <DataGrid x:Name="dg1" AutoGenerateColumns="False">
    <DataGrid.Columns>
    <DataGridTextColumn Header="Number" Binding="{Binding num, StringFormat=N2}"/>
    </DataGrid.Columns>
    </DataGrid>
    Or if you are using auto-generated columns you could handle the AutoGeneratingColumn event:
    public MainWindow() {
    InitializeComponent();
    DataTable table1 = new DataTable();
    table1.Columns.Add(new DataColumn("num")
    DataType = typeof(decimal)
    table1.Rows.Add(1.444444444444);
    table1.Rows.Add(7.444444444444);
    dg1.ItemsSource = table1.DefaultView;
    dg1.AutoGeneratingColumn += dg1_AutoGeneratingColumn;
    void dg1_AutoGeneratingColumn(object sender, DataGridAutoGeneratingColumnEventArgs e) {
    if (e.PropertyName == "num") {
    DataGridTextColumn column = e.Column as DataGridTextColumn;
    column.Binding.StringFormat = "N2";
    <DataGrid x:Name="dg1" />
     Please remember to mark helpful posts as answer and/or helpful.

Maybe you are looking for

  • TS3276 how do i filter out junk mail on macbook pro

    is there a way to filter the junk mail i recieve

  • Delivery and Billing Due list

    Hi,, In Which T-Code i can find the Delivery and Billing Due list. Regards Raj

  • Help with layout of photo thumbnails

    Is there anyway to change the layout of the thumbnails on photo pages created in iWeb? I know how to change the distance between photos, how many rows, etc., but is there a way to change the display? Perhaps a larger photo with tiny thumbnails beside

  • Reference_By_Pointer BSOD T420 and T430

    We have two users, one with a T420 and one with a T430, both with Windows 8 who are getting BSOD's up to 20 times a day.  The reason is Reference_By_Pointer.  Both users have applied all Windows updates as well as all driver updates from Lenovo Syste

  • Green lines on the edge of my video

    Hello, I have a problem with premiere pro cs6 every time I export my video I get weird green lines on the left and bottom sides of my video. Does anyone know what might be the problem? I'm working with different aspect ratios and frame rates in my ti