Skip to content

Organizing Spreadsheets

Create a new spreadsheet group

Description Illustration
Create a new group by right clicking on the root node or an existing group, and select Add New Group from the context menu.

The new group is created as a subgroup under the group that was selected.
./Manager/image1.png
The new group will by default be called the name of the parent + subgroup + then number of subgroups.

The new group will initially be editable and you can type an appropriate name.
./Manager/image2.png

Rename a group

Description Illustration
The model group name becomes now editable, and a new name can be entered. ./Manager/image3.png
The group name becomes now editable, and a new name can be entered. ./Manager/image2.png

Create and Import Spreadsheets

New spreadsheets can be created within the MIKE Workbench as well as be imported from files (e.g. Excel format files).

Create a new spreadsheet

Description Illustration
Right-click the root node or a group node and select “Add New Spreadsheet” ./Manager/image4.png
The spreadsheet is created in the database and added as a sub-node to the active group.

When created the name of the sheet is editable allowing the default name to be changed.
./Manager/image5.png

Import a spreadsheet

Description Illustration
Right-click the root node or a group node and select “Add New Spreadsheet” ./Manager/image6.png
A standard File Open dialog appears for selection of th file.

Three standard formats are supported. Select the file and click Open.
./Manager/062449e1c8ea68cdb832f9ca95d19b42.png
Upon successful import the spreadsheet in the MIKE Workbench is named after the file and represented by an new node in the active group. ./Manager/image8.png

Rename a spreadsheet

Description Illustration
Right-click the spreadsheet to rename and select “Rename”. ./Manager/image9.png
The text in the node becomes editable.

Change the text and press enter.

To cancel editing press Esc.
./Manager/image10.png
After changing the name the node is placed alphabetically within the group. ./Manager/image11.png

Copy a spreadsheet

Description Illustration
Right-click the spreadsheet and press “Copy”.

Alternatively selected the node and press keys Ctrl+C.


This will put the spreadsheet into the clipboard.

Copy can be performed on multiple spreadsheets at a time as well as on a group or groups.
./Manager/image12.png
Right-click a group node and select “Paste”.

Alternatively select the group and press keys Ctrl+V.


This will insert the spreadsheet in the clipboard into the selected group.

The option is only available if a spreadsheet is available in the clipboard.
./Manager/image13.png
If the group is new – or collapsed – the new spreadsheet node will be ‘hidden’.

Click the plus-sign (‘+’) next to the node to reveal the content of the group.
./Manager/image14.png
The group unfolds. ./Manager/image15.png
An automatic ally created unique name simply adds a counter to the original name. ./Manager/image16.png
Copying a group (or groups) is similar – only then the whole branch (or branches) are copied to the new location. ./Manager/image17.png

Move a spreadsheet

The moving of a spreadsheet between groups is carried out as a combination of Cut and Paste operation.

Description Illustration
Right-click the spreadsheet and press “Cut”.

Alternatively selected the node and press keys Ctrl+X.


This will put the spreadsheet into the clipboard.

Cut can be performed on multiple spreadsheets at a time. The Cut-option is only available if all the selected spreadsheets are not open.
./Manager/image18.png
Right-click a group and select “Paste”.

Alternatively select a group and press keys Ctrl+V.


This will insert the spreadsheet in the clipboard into the selected group.

The option is only available if a spreadsheet is available in the clipboard.

Note the spreadsheet that was cut is indicated with a dimmed grey font.

From here on the behavior is similar to that of the Copy Spreadsheet action.
./Manager/image19.png

Delete a spreadsheet

Description Illustration
Select a group, multiple groups or multiple spreadsheets.

Right-click and select “Delete”.


All the selected objects will be deleted from the database and removed from the explorer.

Only group(s) at same level can be selected together.
./Manager/image20.png
The delete operation must to be confirmed via a pop-up dialog. ./Manager/image21.png

Working with Spreadsheets

Opening a spreadsheet

Description Illustration
Right-click a spreadsheet and select “Open” - or simply double-click the spreadsheet in the Explorer ./Manager/image22.png
The spreadsheet opens ./Manager/image23.png

MIKE Workbench spreadsheet menu and toolbar

An open spreadsheet can be manipulated through tools available from toolbar above the spreadsheet.

The buttons and menus in the toolbar are:

Description Illustration
Save

It saves the spreadsheet to the database.
./Manager/image25.png
Cut/Copy/Paste

These standard actions work on selected items in the spreadsheet, e.g. text, formulas, cells, formats, plots.
./Manager/image26.png
Functions

This button is a quick access to the most common spreadsheet functions to insert into a cell.

The “Mode functions…” option opens a standard search dialog for available functions where they are grouped in different ways.
./Manager/image27.png
./Manager/fdaf85951ef9fce8f836d925c4c5640a.png
Format

The Format button gives access to various options for formatting cells, rows, colums, sheet.

“Cells…” and “Conditions…” both give access to a general formatting dialog.
./Manager/image29.png
./Manager/image32.png
./Manager/f4e98be1b2390af5cde82b77fbc00210.png
Chart

The chart button quickly generates a chart from the data in selected cells and the choice of Chart.

Once created the chart can be modified/customized via the Chart Explorer accessible via a righ-click menu on the chart.
./Manager/image31.png
./Manager/4908d27caacbc12b582a29404e4c7148.png
To Database

The “To Database” button allows the values of a proper formatted range of cells to be stored in the database as a new time series.

The option enters a wizard for:
  • Selecting the range of cells
  • Specifying the group path and time series name in the database
  • Specifying the time series type and unit
    ending with a confirmation page.
  • ./Manager/image34.png
    ./Manager/731524888bff7a9495842a2a2a3e2788.png
    ./Manager/3362043201a7f179416b78146458d3ba.png
    ./Manager/36fbabe879e5b46dc74ce2421d1c943c.png
    ./Manager/2c6b50bd9fe42176e74acd5479d96a10.png

    SpreadsheetGear menus

    The special spreadsheet functionality is available through some right-click. menus.

    Cell or Range

    Description Illustration
    Right-click a cell

    This will open a general menu for manipulation of the selected cell.
    ./Manager/image39.png
    Choosing the “Workbook Explorer…” menu item (or double clicking the tab-section of the spreadsheet) ./Manager/image40.png
    Choosing the “Range Explorer…” menu item will open a dialog for manipulating the details of the selected range of cells ./Manager/image41.png

    Chart

    Description Illustration
    Right-click a chart

    This will open a menu for manipulating the chart object.
    ./Manager/image42.png
    Choosing the Chart Explorer

    Opens a dialog giving access to properties of the chart details.
    ./Manager/image43.png

    MIKE Workbench scripts

    Scripts build with the Script Manager will appear as functions accessible to the spreadsheet as the buil-in SpreadsheetGear functions and the MIKE Workbench functions.

    A script defined as shown below in the Script Manager defined a function named “MyFunction”. It simply returns the value 23.5

    In a spreadsheet the function appears when typing the equal sign “=” followed by the initial letters of the function name in a cell:

    Selecting the function with the mouse

    The function call is completed with the end-parenthesis (no arguments are required in the function call). Pressing enter evaluates the function

    Saving spreadsheets

    ./Manager/image48.png

    A modified spreadsheet is indicated by the asterix next to the title in the Tab. Closing the sheet by pressing the “x” (or right click on the tab choosing Close or pressing Ctrl+Shift+C) will pop-up in a confirmation dialog as this:

    C:\Users\ylu\AppData\Local\Temp\SNAGHTMLd8e7f2.PNG

    The same will happen if you close the MIKE Workbench entirely with open modified spreadsheets.

    Exporting a spreadsheet

    Spreadsheets can be exported into external files.

    Description Illustration
    Right-click a spreadsheet in the explorer and select “Export spreadsheet…” ./Manager/image50.png
    A “Save As” dialog is shown and a filename must be specified.

    The spreadsheet can be saved in various formats which must be selected.
    ./Manager/image51.png