Numbers Column versus Row

Is there a chance to change data from row to column and vice versa just by a click. Need to have the data of the rows in horizontal view in the table.

Badunit wrote:
Yvan has a script to do this.
You're right, and I just finished to upgrade the one transposing values *_( not formulas)_*.
It's uned in two passes.
Pass 1, select the range to transpose and call the script which will extract the values of the selected cells.
Pass 2, select the left_top of the target area and call the script which will insert the transposed values.
If the left_top wasn't moved since pass 1, the original range is cleared before the insertion of transposed values.
If some one which to have a script which always transpose without moving the left_top, the two pass aren't required.
Just ask, I will post this variant.
--[SCRIPT transposeDead]
Enregistrer le script en tant que Script : transposeDead.scpt
déplacer le fichier créé dans le dossier
<VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
Merci à Scott Lindsey & Ed.Stockly du forum [email protected]
qui m'ont aidé à construire le code récupérant le bloc sélectionné.
Sélectionnez le bloc de cellules à transposer
aller au menu Scripts , choisir Numbers puis choisir transposeDead (exécute le script une première fois)
Le script récupère les informations utiles sur le bloc à transposer
Sélectionner la première cellule du bloc destination
aller au menu Scripts , choisir Numbers puis choisir transposeDead (exécute le script une deuxième fois)
Il insère les valeurs transposés.
Comme il s'agit de valeurs les modifications éventuelles du bloc source ne seront pas répercutées.
--=====
L'aide du Finder explique:
L'Utilitaire AppleScript permet d'activer le Menu des scripts :
Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
Cochez la case "Afficher le menu des scripts dans la barre de menus".
+++++++
Save the script as a Script transposeDead.scpt
Move the newly created file into the folder:
<startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
une_valeur you would have to create the folder Numbers and even the folder Applications by yourself.
Thanks to Scott Lindsey & Ed.Stockly from [email protected]
which helped me to build the code grabbing the selected range.
Select a group of cells.
go to the Scripts Menu, choose Numbers, then choose transposeDead (Run the script once.)
It grabs infos about the selection
select the first cell of the destination
(can't be in the source range)
go to the Scripts Menu, choose Numbers, then choose transposeDead (Run the script one more time.)
It will insert the transposed values.
As they are values, possible changes in the source block will not be reflected.
--=====
The Finder's Help explains:
To make the Script menu appear:
Open the AppleScript utility located in Applications/AppleScript.
Select the "Show Script Menu in menu bar" checkbox.
Under 10.6.x,
go to the General panel of AppleScript Editor’s Preferences dialog box
and check the “Show Script menu in menu bar” option.
--=====
Yvan KOENIG (VALLAURIS, France)
2009/01/19
2009/01/25
2009/06/03 -- enhanced for blank cells
2010/08/31 -- enhanced quite all.
property theApp : "Numbers"
property les_valeurs : {}
property old_dName : missing value
property old_sName : missing value
property old_tName : missing value
property old_rowNum1 : missing value
property old_colNum1 : missing value
--=====
on run
local rname, rowNum2, colNum2, dName, sName, tName, rname, rowNum1, colNum1
local nb_rows, nb_columns, rows_available, rows_needed, columns_available, columns_needed, une_valeur
try
if les_valeurs = {} then (*
Here we are in the first pass.
Extract infos about the source range *)
set {old_dName, old_sName, old_tName, rname, old_rowNum1, old_colNum1, rowNum2, colNum2} to my getSelParams()
Extract the values of selected cells *)
tell application "Numbers" to tell document old_dName to tell sheet old_sName to tell table old_tName
set les_valeurs to value of cells old_rowNum1 thru rowNum2 of columns old_colNum1 thru colNum2
end tell
else --============
Here we are in the second pass *)
set nb_rows to count of les_valeurs
set nb_columns to count of item 1 of les_valeurs
set {dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
if {old_dName, old_sName, old_tName, old_rowNum1, old_colNum1} = {dName, sName, tName, rowNum1, colNum1} then
We didn't change the left_top of the selection so clear the original range. *)
tell application "Numbers" to tell document old_dName to tell sheet old_sName to tell table old_tName
repeat with r from 1 to nb_columns
repeat with c from 1 to nb_rows
clear cell (old_rowNum1 - 1 + r) of column (old_colNum1 - 1 + c)
end repeat -- c
end repeat -- r
end tell
end if
Now we know the starting point of the destination area. *)
tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
set rows_available to (get row count)
set rows_needed to rowNum1 - 1 + nb_rows
Add rows if needed *)
if rows_needed > rows_available then
repeat (rows_needed - rows_available) times
add row below row rows_available
end repeat
end if -- rows_needed
Add columns if needed *)
set columns_available to (get column count)
set columns_needed to colNum1 - 1 + nb_columns
if columns_needed > columns_available then
repeat (columns_needed - columns_available) times
add column after column columns_available
end repeat
end if -- columns_needed
Insert the transposed values *)
repeat with r from 1 to nb_rows
repeat with c from 1 to nb_columns
set une_valeur to item c of item r of les_valeurs
tell cell (rowNum1 - 1 + r) of column (colNum1 - 1 + c)
if une_valeur is 0.0 then
clear
else
set value to une_valeur as text
end if
end tell
end repeat -- c
end repeat -- r
end tell -- Numbers
Clears the property for next use *)
set les_valeurs to {}
end if
on error
Clears the property for next use *)
set les_valeurs to {}
end try
end run
--=====
set {rowNum1, colNum1, rowNum2, colNum2} to my getCellsAddresses(dname,s_name,t_name,arange)
on getCellsAddresses(d_Name, s_Name, t_Name, r_Name)
local two_Names, row_Num1, col_Num1, row_Num2, col_Num2
tell application "Numbers"
set d_Name to name of document d_Name (* useful if we passed a number *)
tell document d_Name
set s_Name to name of sheet s_Name (* useful if we passed a number *)
tell sheet s_Name
set t_Name to name of table t_Name (* useful if we passed a number *)
end tell -- sheet
end tell -- document
end tell -- Numbers
if r_Name contains ":" then
set two_Names to my decoupe(r_Name, ":")
set {row_Num1, col_Num1} to my decipher(d_Name, s_Name, t_Name, item 1 of two_Names)
if item 2 of two_Names = item 1 of two_Names then
set {row_Num2, col_Num2} to {row_Num1, col_Num1}
else
set {row_Num2, col_Num2} to my decipher(d_Name, s_Name, t_Name, item 2 of two_Names)
end if
else
set {row_Num1, col_Num1} to my decipher(d_Name, s_Name, t_Name, r_Name)
set {row_Num2, col_Num2} to {row_Num1, col_Num1}
end if -- r_Name contains…
return {row_Num1, col_Num1, row_Num2, col_Num2}
end getCellsAddresses
--=====
set { dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
on getSelParams()
local r_Name, t_Name, s_Name, d_Name
set {d_Name, s_Name, t_Name, r_Name} to my getSelection()
if r_Name is missing value then
if my parleAnglais() then
error "No selected cells"
else
error "Il n'y a pas de cellule sélectionnée !"
end if
end if
return {d_Name, s_Name, t_Name, r_Name} & my getCellsAddresses(d_Name, s_Name, t_Name, r_Name)
end getSelParams
--=====
set {rowNumber, columnNumber} to my decipher(docName,sheetName,tableName,cellRef)
apply to named row or named column !
on decipher(d, s, t, n)
tell application "Numbers" to tell document d to tell sheet s to tell table t to ¬
return {address of row of cell n, address of column of cell n}
end decipher
--=====
set { d_Name, s_Name, t_Name, r_Name} to my getSelection()
on getSelection()
local _, theRange, theTable, theSheet, theDoc, errMsg, errNum
tell application "Numbers" to tell document 1
repeat with i from 1 to the count of sheets
tell sheet i
set x to the count of tables
if x > 0 then
repeat with y from 1 to x
try
(selection range of table y) as text
on error errMsg number errNum
set {_, theRange, _, theTable, _, theSheet, _, theDoc} to my decoupe(errMsg, quote)
return {theDoc, theSheet, theTable, theRange}
end try
end repeat -- y
end if -- x>0
end tell -- sheet
end repeat -- i
end tell -- document
return {missing value, missing value, missing value, missing value}
end getSelection
--=====
on parleAnglais()
local z
try
tell application "Numbers" to set z to localized string "Cancel"
on error
set z to "Cancel"
end try
return (z is not "Annuler")
end parleAnglais
--=====
on decoupe(t, d)
local oTIDs, l
set oTIDs to AppleScript's text item delimiters
set AppleScript's text item delimiters to d
set l to text items of t
set AppleScript's text item delimiters to oTIDs
return l
end decoupe
--=====
--[/SCRIPT]
I will enhance the old transposeLive too.
Yvan KOENIG (VALLAURIS, France) 31 août 2010 17:58:27

Similar Messages

  • How can I make Numbers respect the row and column locks in an Excel workbook opened in Numbers???

    I have a Windows server app that generates Excel workbooks to be emailed to political campaign volunteers to be loaded into Numbers on an iPad, edited, then emailed back to be posted to the server database.  There are two problems encountered:
    1.  The Excel workbook has the first row (column headings) and first column (route identifier) of cells locked, so that they will not scroll off the screen, but Numbers doesn't respect the locks, so when the user scrolls horizontally or vertically, the column headings and/or the route identifier scroll off the screen.
    2.  The Excel workbook has pop-up "tool-tip" type comments in certain column headings in order to provide the user with the acceptable entries for those columns, but Numbers does not respect those.  When the user touches any of the commented column heading cells, a context menu appears instead of the comment.
    What must I do in the Excel workbook sheets, or what settings can be made in Numbers to correct the above?

    I imported a Numbers '09 file into Numbers on the iPad.  All comments were removed during import. Frozen header row and column were retained.
    Thank you for your responses I must ask, however, when you refer to "importing" the Excel file, are you referring to a two step process whereby the Excel file is first converted by some other process into Numbers format, then opened in the Numbers application - which is what I have to do in my PC application to generate the Excel file, and reverse that process to convert the Excel back into my database format - or are you simply referring to opening the file in Numbers as "importing" it?  And please excuse any ignorance, as I'm not at all familiar with Apple's terminologies.  In fact, I don't own an iPad myself, but rather I have to depend on one of my clients to do the testing for me.
    I imported an XLSX file into Numbers on the iPad.  The file used "freeze panes" to "freeze" the first column and row. Only warning on import was that it changed fonts. It imported without the first row and column frozen and with no comments. Nothing I can do about the missing comments but it was a simple matter to turn the first column & row into headers and freeze them.
    Unfortunately this would not be an efficient  solution, since the end users are, for the most part, elderly political campaign volunteers who are fairly computer illiterate.  These workbooks are actually canvassing lists - known as walklists.  Their purpose is for the volunteers to interview voters, record the results of the interviews, and post the results to a database, which provides the campaigns with valuable strategizing capabilities.  Also, these workbooks have multiple pages - as many as 10 or more.  and from what I infer from the above, the setting changes would have to be made on each page.
    My whole intent in developing this iPad/Tablet methodology was to significantly reduce volunteer's work - which is a recruitment benefit - and eliminate paper.  While the latter would be accomplished, the former would not, and in fact would tend to increase it.  It's necessary to keep the first row - column headings - and the first column - the route identifier - from scrolling off the page, so that the volunteer won't have to keep scrolling up and down and right and left to know what the data are.
    Conclusion: Comments are not supported on the iPad version of Numbers.  Frozen headers are not imported from Excel but can be recreated easily.
    I was previously directed to the Apple website  http://www.apple.com/ipad/from-the-app-store/apps-by-apple/numbers.html which extols the wonders of the Numbers application.  About halfway down the page there's a section regarding, "Sliders steppers and pop-ups".  The web page states that pop-ups can be set up but, being a marketing site, gives no indication whatsoever as to how it's done.  I was hoping someone could tell my if there's any way to carry them over from an Excel file.

  • I am looking to see if anyone has found out how to do a sum or percentage totalling other columns or rows in Numbers?

    I am looking to see if anyone has figured out, from their iPad in Numbers how to calculate percentages or sums totalling other columns or rows?

    The issue is I bought the G4 from my buddy a few months ago... the machine has been abused to say the least, both inside and out. It is almost falling apart and has a BUNCH of programs loaded on it. I have always used a PC and am still familiarizing myself with Macs, I need to clean out the machine and dump all the excess applications and files that are causing problems.
    I think this is why I am having some trouble. Sometimes it works just fine, but I am only working with a few simultaneous tracks at a time. I am using the virtual instruments at this time but will be running guitars and bass through an external sound card soon. Similar to what you are doing it sounds like.
    Anyway, wanted to give you some more insight. Last night it seemed to work alright, I am not going to rush into buying anything until I absolutely have to but want to get some direction as far as what I should be looking at.
    Any further input is appreciated, thanks.

  • How do I lock columns and rows in numbers?

    I have a large spreadsheet and I want to scroll up, down, left and right without the need to go up and down to find the name of the column or row where the information goes into.
    In Excel you lock a column or row just as easy but in numbers I have looked everywhere and don´t find an answer to this (otherwise) simple procedure.
    Thanks tho anyone who can help me.

    Hi Laura,
    The commands you are looking for are "Freeze Header Rows" and "Freeze Header Columns", both found in the Table menu.
    To use them, you must first convert the rows and columns you want to keep visible as Header Rows and Header Columns. You can define up to five of each. Rows must be at the top of the table and columns at the left, and multiple header rows/columns must be contiguous.
    Be aware that the conversion is not (easily) reversable, and that multiple headers (and footer rows) tend to slow large tables significantly.
    To convert an eligible row, hover the mouse over the row reference tab, then click the triangle when it appears. If the row is eligible for conversion (ie. if it is the top non-header row on the table, and is in the top five rows), you will see the option to "Convert to Header Row, seen below for row 2:.
    Regards,
    Barry

  • Transpose columns and rows in numbers

    I need to transpose columns and rows in Numbers and I do not want to write script to do it.  Is there an easier way?

    Give me a proper transpose and I will uninstall Excel and never look back.
    Ok, here's a proper transpose, that can be placed in an Automator Service so it becomes a simple menu pick as below (and can also be assigned a keyboard shortcut).
    To use it (this is slightly different from Excel) you select the range you want to transpose, choose Copy Transpose, click a destination cell in an existing table in the current document or another document, and command-v (Edit > Paste) or option-shift-command-v (Edit > Paste and Match Style).
    The one-time setup is as follows.  In Automator choose File > New > Service,  drag a Run AppleScript action from the left into the right pane, choose 'No Input' for 'Services receives selected' and 'Numbers' for 'in'. Then paste the following into the Run AppleScript action, replacing all text already there by default:
    --Transpose - select range, run, paste transposed values where wanted
    try
              tell application "Numbers" to tell front document to tell active sheet
                        set selected_table to first table whose class of selection range is range
                        tell selected_table
                                  set my_selection to the selection range
                                  set first_col to address of first column of my_selection
                                  set last_col to address of last column of my_selection
                                  set first_row to address of first row of my_selection
                                  set last_row to address of last row of my_selection
                                  set str to ""
                                  repeat with i from first_col to last_col
                                            repeat with j from first_row to last_row
                                                      set str to str & (value of cell j of column i of selected_table) & tab
                                            end repeat
                                            set str to str & return -- add line return after row
                                  end repeat
                        end tell
              end tell
      set the clipboard to str
              display notification "Ready to paste transposed values" with title "Numbers"
    on error
              display dialog "Select a range first and then try again"
    end try
    --end script
    Hit the compile "hammer" and the script should indent properly. Then save the service with the name you want to appear in your menu, and it will thereafter be available via the Services menu (and keyboard shortcut, if you set one up in System Preferences > Keyboard > Shortcuts > Services).
    That's it. Less then five minutes' one-time set-up work and you've got a menu pick for a transpose functionality that is as convenient as Excel's.
    SG

  • In Numbers, I want to make 3 rows 50 columns into 3 columns 50 rows.

    In just a simple Numbers 09 spreadsheet, no charts, I'm trying to convert the rows and columns to columns and rows to more easily work with the information without scrolling across the page.  I would be able to see the information on one page and more easily print a one page documents.  I can't seem to figure it out; and the Help option has not been helpful unless you are working with a chart.  I don't want a chart, I want to work with the spreadsheet and cells.
    Any ideas!  I'm sure it is operator error, but it's something I'm not familiar with.  I'm new to Apple and definitely new to numbers.
    Thanks,
    Sandra

    You may go to my iDisk (address below)
    download :
    For_iWork:iWork '09:for_Numbers09:Transpose.zip
    Expand the archive
    You will get two scripts.
    One which transpose the values
    One which transpose keeping formulas if the original table is a living one.
    Yvan KOENIG (VALLAURIS, France) samedi 8 octobre 2011 09:29:28
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • How do I print column letters/row numbers in Numbers?

    In '08 someone asked about printing row numbers and column letters in a Numbers SS. The answer: take a snapshot (CMD-SFT-4) or use Excel.  
    I am using iWork09; the problem continues with it. Has this flaw been fixed in later versions of iWorks? When I print the spreadsheet and a formula sheet, the formula sheet is pretty worthless if the spreadsheet has no colum/row identifiers. So much for having someone else audit my formula work.

    lawrence5M wrote:
    When I print the spreadsheet and a formula sheet, the formula sheet is pretty worthless if the spreadsheet has no colum/row identifiers. So much for having someone else audit my formula work.
    Supply the auditor with a copy of the file, rather than a printed copy of the document. If she needs a printed copy of the formula list, that's easy to obtain from the file. When she clicks on a cell containing a formula, Numbers colour-codes the cell references and highlights the referenced cells with those colours.
    Use Header Row and Header column cells to label each column and row. Set Numbers preferences to use these labels in the formulas to name the referenced cells.
    Add a column to the left of the table to contain row numbers, and a row to the top to contain column letters. The row numbers are easy to generate with a simple formula; the column letters require a little more thought, especially for those past column 26 (Z, followed by AA), but it's doable.
    Use the suggestion (auxiliary tables) suggested above by Wayne.
    Two other suggestions:
    First, if this feature is, in your estimation, a significant flaw in Numbers, send feedback to Apple requesting it be included in a future version of numbers. Use the Provide Numbers Feedback item in the Numbers menu, or the link in this message—both go to the same place.
    Second, Use the application that best meets your needs, whichever application that turns out to be.
    Regards,
    Barry

  • Numbers-freezing columns and rows

    Can you freeze columns and rows in numbers although they are not designated as headers?

    FYI   I was looking for information in these old posts on the Freeze function in Numbers.  
    After looking through numerous posts and finally talking with an Apple Tech, we found that the freeze function was not in Number 08, but added in Number 09.   We were both surprised that this basic spreadsheet function was missing from 08
    With this function you can lock/freeze the top row and/or column so as you scroll through the spreadsheet, you can see you first rows or columns while looking at the data in the middle of the  spreadsheet.  
    I am not an Apple representative, but the only way to fix this and other flaws in Number 08 is to upgrade to 09 for $19.99.   Hope this helps.

  • Filling column with Row Numbers

    How to fill a column with row number in power query like below? is there any function in power query?
    Color       Row Number
    Red         1
    Green      2
    Blue         3

    Hi...
    You can use "Add Index Column" function in Add column tab as below :
    Table.AddIndexColumn(Source, "Row Number", 1, 1)
    Regards,

  • FREEZE COLUMNS AND ROWS IN WEB REPORT - PLEASE ADVISE ME

    Hi Experts,
    I have a web template that contains a query. My customer wants to freeze columns and rows in this report like we do in Excel. I know that in BW 3.5 this is not a standard feature of Table item. In forum I have found some messages regarding with this issue. I inserted a JavaScript code that I have found in forum, but this does not help. A codewriter wrote some other JaveScript for example  alert(), that works but some part of taken code from forum such as defined functions do not work.
    Other solutions advised in forum such as fixing row numbers or column numbers do not fix my problem.
    My questions:
    1 -  In new version of BW, BI 7.0 have this issue with WAD in standard been solved?
    2 - Does it really possible at the same time rows and columns to freeze? I want to freeze 2 rows from top, 2 columns from left.
    Could anyone have an idea?
    Best regards,
    Songul

    Hello,
    This will be implemented with SPS13.
    https://websmp204.sap-ag.de/~sapidb/011000358700004483762006E
    And before SPS13, i frame is useful to realize what you want to do. Using 2 "Analysis" web item. and display of 1st analysis web item is restricted only thin the header of the table and the 2nd Analysis web item is used as "table". display of this "analysis" is also restricted to 10 - 30 rows.
    but this consume hardware resource.
    <sample>
               <div style="OVERFLOW: auto; WIDTH: 1000px; HEIGHT: 20px" >
                   <bi:ANALYSIS_ITEM name="ANALYSIS_ITEM_2" designwidth="400" designheight="20" >
                       <bi:DATA_PROVIDER_REF value="DP_1" />
                       <bi:NEW_LINES_COUNT value="0" />
                       <bi:NEW_LINES_POSITION value="TOP" />
                       <bi:DATA_ROW_FROM value="1" />
                       <bi:DATA_ROW_TO value="0" />
                   </bi:ANALYSIS_ITEM>
               </div>
               <div style="OVERFLOW: auto; WIDTH: 1000px; HEIGHT: 200px" >
                   <bi:ANALYSIS_ITEM name="ANALYSIS_ITEM_1" designwidth="400" designheight="200" >
                       <bi:DATA_PROVIDER_REF value="DP_1" />
                       <bi:DATA_COLUMN_FROM value="1" />
                       <bi:DATA_ROW_TO value="0" />
                   </bi:ANALYSIS_ITEM>
               </div>
    Kind regards,
    Masaaki

  • Reformatting Table- convert columns to rows

    Hi,
    I have data tables that I would like to reformat so that the columns become rows and vice versa, if that is possible.
    I've been keyword searching for hours, but unfortunately I am unfamiliar with the terminology... Sorry if this is really stupid; I'd appreciate any help! Thanks!

    Bev Kehoe wrote:
    After calling Apple Tech support & having the tech head tell me 'transpose' only works on charts, we found you!
    One more techie which doen't know what he respond about. The transpose function is not as efficient as we where hoping but it works.
    Alas, the formulas are so weird that I thougt that the "transpose_live script is a better tool.
    I was not able to find a 'menu' script within numbers but opened it on its own and it worked. Is there a way to have it be a choice within numbers itself?
    The "Script menu" is a menu of its own.
    If you apply what I described at the beginning of the script, you will have an area dedicated to Numbers.
    We may organize the menu two ways:
    Yvan KOENIG (from FRANCE lundi 29 juin 2009 16:57:49)

  • Transform columns in rows

    I have a requirement in which I need to write a query for transforming the columns to rows.
    Input table     (DB - 11g)
    ========               
    ORDER_ID     HOME_NUM      WORK_NUM      MOBILE_NUM FAX_NUM
    100     999456901     <null> 334054483     <null>
    101     <null>          <null>      <null> 787372163
    102      587372163      943528985     642344352     677676666
    103     53522890          <null> <null> <null>     
    104     <null>      83366656     956656655     <null>
    decode the contact numbers like this, HOME_NUM = 1, WORK_NUM = 2, MOBILE_NUM = 3 and FAX_NUM = 4 and insert as phone_type_cd with the corresponding number. Output should be
    ORDER_ID     phone_type_cd     contact_num
    100     1     999456901
    100     3     334054483
    101     4     787372163
    102     1     587372163
    102     2     943528985
    102     3     642344352
    102     4     677676666
    103     1     53522890
    104     2     83366656
    104     3     956656655
    Edited by: sarvan on Jul 12, 2011 6:09 AM

    Hi,
    Another way is to cross-join your table to a table (or a result set, as I ded below) that contains one row fro every possible phone_type:
    WITH    cntr   AS
         SELECT     LEVEL     AS phone_type
         FROM     dual
         CONNECT BY     LEVEL     <= 4
    SELECT    i.order_id
    ,       c.phone_type
    ,       CASE  c.phone_type
               WHEN  1  THEN i.home_num
               WHEN  2  THEN i.work_num
               WHEN  3  THEN i.mobile_num
               WHEN  4  THEN i.fax_num
           END           AS contact_num
    FROM          cntr        c
    CROSS JOIN    input_table  i
    WHERE       CASE  c.phone_type
               WHEN  1  THEN i.home_num
               WHEN  2  THEN i.work_num
               WHEN  3  THEN i.mobile_num
               WHEN  4  THEN i.fax_num
           END           IS NOT NULL
    ORDER BY  i.order_id
    ,            c.phone_type
    ;The query above will work in Oracle 9 (and up), but starting in Oracle 11 there's a better way: SELECT ... UNPIVOT .
    If input_table consists of only the columns you posted:
    SELECT       *
    FROM       input_table
    UNPIVOT       (    contact_num
           FOR  phone_type  IN ( home_num    AS 1
                                ,     work_num    AS 2
                                ,     mobile_num  AS 3
                         ,     fax_num         AS 4
    ORDER BY  order_id
    ,            phone_type
    ;Edited by: Frank Kulash on Jul 12, 2011 9:31 AM

  • Sorting columns and rows

    I am incredibly frustrated, more and more, but what I find to be non-intuitive functions of this app. I have a long column of row headings (and column headings to be frank) that are in text. I want to sort them, along with the associated row.
    This should not be difficult, but it is impossible. I've been using spreadsheet programs from the first day they were available for the Mac, a billion years ago (give or take a couple of years). I'm starting to think that Numbers is one of the worst.
    Annoyingly, the help function, gives me no help. Can someone point me to the location of how to learn how to do a sort? Because I guess just right clicking on the column to sort is way to easy, like it was in the previous version of Numbers.

    Click on the right edge of a column heading to get:
    Sort & Fiilter Options (also via Table > Sort & Filter Options):

  • Fix a column a row when scrolling

    I want to fix a column or row in number so that they stay where they are whilst I scroll through the sheet. Is that possible? How?

    See Freeze Headers.
    p. 64 in the Numbers User Guide.
    Jerry

  • Sort - not columns - but rows in 3.01

    How to sort - not columns - but rows - in 3.01?

    Hi Sune,
    While we all wait for Apple to put this feature back in another update of Numbers 3, try this:
    You want to sort rows 11-14 (as an example). Add a Colour Fill to row 15 as a guide for later.
    Select rows 11-14. Click and *hold* on any Row Reference Tab. You will see the selected rows appear to 'lift'. Drag those rows away from Table 1 to a blank part of the 'canvas':
    and they will form a new table. Sort this table.
    Then select all rows of Table 2, and Copy.
    Click on Table 1. Select the colour filled row where you want to insert (row showing 23 Jun 2013 in this example).
    Menu > Insert > Copied Rows.
    Not as easy as Numbers 2.3 Reorganize Panel, but a workaround.
    If you frequently resort the same rows, consider placing them in their own table.
    Regards,
    Ian.

Maybe you are looking for

  • S_TCODE in CRM Roles

    Hi all, I am relatively new to CRM and have the following question regarding design of CRM security roles. We have a marketing manager who needs to log on directly to the CRM production system to execute a transaction. I have used the CRMD_UI_ROLE_PR

  • Is it possible to run this Oracle based application ???

    Hello All, I have Oracle Forms/reports 9.0.4.1.0 installed on my windows XP. I am running Oracle based application from this box. here is the url for it: http://localhost:8889/forms90/90servlet Is it possible to run this Oracle based application on d

  • Database doesn't start automatically

    Hi, sometimes, after a pc reboot, I need to manually restart the database in order to connect. In testing it is not a big deal, but once installed to the customer it will. Could someone give me some hints about the reasons why it happens? Below there

  • Extract-Export iCloud Contacts Locally

    Greetz Commnunity! I'd like your help with something if anybody knows.. I'm in need to extract or export my iCloud contacts to my local Address Book. I happen not to backup the Address book when i bought a new macbook pro 6.2, so now.. i have'em on m

  • 6233 Go to options list problem

    When I deselect the Answer Phone option from the list that comes up when the Go to is pressed it reappears when I go back to it. I have no need for it to be on the list as all I have to do is press the number 1 key and hold it down. I have followed t