Detect numbers from columns

Hi all,
i would like to ask a question.
my situation is like this
i have columns A, B, C and D. And then, my question is how to detect a 5 digit from 4 of A, B, C, D columns.
example is like this
insert into XYZ
(A,B,C,D)
values
'4780No 2 SS2/59',
'33333abc',
'111111abc',
'abc'
below this is a step i detect digits from a column
select COUNT(*) from XYZ WHERE REGEXP_LIKE (column name, '\d{5}');
for this example,
i found out that columns that contain 5 digits and above will return 1 for me.
'33333abc' = 5digits will return 1 for me.
and
'111111abc' = 6digits will return 1 for me.
i wan exactly 5digits only will return me 1,other is return 0
can anyone know where i had make a mistake and can make a changes on my logic.
or
have other better solution or idea to detect 5 digits from a columns.
thank you everybody
thank a lot.

Now it is working, if any space available in-between ..
select column_name original_value,
translate(upper(column_name),'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_?/\,. ','0123456789 ') after_replacing_char_val,
case
     when length(regexp_substr(trim(translate(upper(column_name),'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_?/\,. ','0123456789 ')), '[^ ]+',1,1))=5 then 1
          when length(regexp_substr(trim(translate(upper(column_name),'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_?/\,. ','0123456789 ')), '[^ ]+',1,2))=5 then 1
          when length(regexp_substr(trim(translate(upper(column_name),'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_?/\,. ','0123456789 ')), '[^ ]+',1,3))=5 then 1
     else 0
     end if_5_digit_number_available
from XYZ

Similar Messages

  • How do I hide columns in Numbers from an iPad

    I see the solution for Macs but since an iPad doesn't use a mouse, how do I hide columns in Numbers from my iPad?

    Need more info?? Is it in iBooks? Pages? E-mail? Is it a PDF document? Is it an App?
    Be more specific and we will try to assist you.

  • Impossible to detect an AUTO_INCREMENT column in a table of PostgreSQL DB.

    Hello,
    I need to detect an AUTO_INCREMENT column in a table of PostgreSQL DB.
    Note : PostgreSQL uses sequence number to create an AUTO_INCREMENT column.
    From a ResultSetMetaData, I call the methode isAutoIncrement(int index) which returns true if the column index is AUTO_INCREMENT.
    But it doesnt work.
    It seems that this methode is not implemented in postgreSql JDBC driver.
    Any idea about that?
    Thank for your attention.
    Sopheap

    Is it true that nobody knows how to detect an AUTO_INCREMENT column in a table of PostgreSQL DB?
    Sopheap

  • How to detect an AUTO_INCREMENT column in a table of PostgreSQL DB?

    Hello,
    I need to detect an AUTO_INCREMENT column in a table of PostgreSQL DB.
    Note : PostgreSQL uses sequence number to create an AUTO_INCREMENT column.
    From a ResultSetMetaData, I call the methode isAutoIncrement(int index) which returns true if the column index is AUTO_INCREMENT.
    But it doesnt work..
    Any idea about that?
    Thank for your attention.
    Sopheap

    That's how you do it.
    However, I've found that metadata calls don't always work completely with my Sybase installation. You'll have to read up on the JDBC driver and see if that feature is supported for your environment.

  • I am wanting to exactly match two ID numbers from two differing worksheets within one work book. Once matched I am wanting to retrieve a row value from the second worksheet into the first. Any help much appreciated.

    I am wanting to exactly match two ID numbers from two worksheets within the one work book. ID numbers are non linear. Once exactly matched I wish to retrieve a corresponding row value from worksheet two and have it appear in worksheet one against the correct ID number. I have been looking at IF, VLOOKUP, and MATCH functions and suspect that what I want to do requires a combination of two or more. Any help will be greatly appreciated.
    regards Vaughanh

    Vaughan,
    Data A:D is all cells start at column A thru column D.
    There is built-in help using the menu item "View > Show Function Browser"  in the search field (top right) you can enter vlookup and you will see the detailed description.
    From this we see:
    VLOOKUP
    (search-for, columns-range, return-column, close-match)
    search-for:  The value to find. search-value can contain any value type.
    columns-range:  A range of cells. range is a reference to a single range of cells, which may contain values of any type.
    return-column:  A number that specifies the relative column number of the cell from which to return the value. return-column is a number value. The leftmost column in the range is column 1.
    close-match:  An optional value that determines whether an exact match is required.
    close match (TRUE, 1, or omitted):  If there’s no exact match, select the column with the largest top-row value that is less than the search value. Wildcards can’t be used in search-for.
    exact match (FALSE or 0):  If there’s no exact match, return an error. Wildcards can be used in search-for.
    So... the 2,0 means return the value form the same row as the lookup value but from the 2nd column of the range.  3, 0 means from the 3rd column.  the ", 0" means exact match

  • Extract numbers from text

    Hi guys,
    I have a column that contains Names with Mobile numbers. How can I get rid off the letters in the column, or how can I extract only the numbers from the column!!!!
    Best Regards,

    Or you can use REAPLCE and TRANSLATE functions if your DB versio is lower than 10g
    SELECT REPLACE(TRANSLATE(UPPER('ArunKumarGupta9000888777'),'ABCDEFGHIJKLMNOPQRSTUVWXYZ',' '),' ','')
      FROM DUALRegards
    Arun

  • MAX 5.3.1 removed Device numbers from SCXI-1600

    Meas. & Auto. (MAX) 5.3.1 removed Device numbers from SCXI-1600
    Old system - Works! :  Labview 9.0 on Dell laptop win XP.
    I have a client that uses multiple laptops & multiple SCXI chassis with 1600 USB DAQ controller mod.  Each time a “new” 1600 was used a new SCXI chassis was installed and the new 1600 was given the next device number (Ex. Dev1, Dev2, Dev3).  I would use the DAQmx  System class Node, DevNames property to see which device I had and go from there.  (Note:  this still worked on LV ver. 11 & MAX  5.x ?)
    I upgraded to LV 2012 (32 bit) fix#3 with MAX 5.3.1 and the Device number (Dev1) is now replaced with  “Mod1”!  I know I could program a workaround, but I would rather have the names go back to the old Device numbers!
    Solved!
    Go to Solution.

    Hi Tom,
    Thank you for posting. I recently noticed this problem and reported it to R&D as CAR #362997. The change of SCXI-1600 default name from "Dev1" to "Mod1" seems to have been introduced in NI-DAQmx 9.4. I can't guarantee anything, but the fix is currently on track to go into the next version of NI-DAQmx (excluding patch releases).
    For now, I'm afraid you'll have to work around the problem. Here are a few ways you can do that:
    Manually rename the device in MAX on each system.
    Programmatically rename the device using the NI System Configuration API. Look at <LabVIEW>/examples/nisyscfg/Rename Aliases.vi for an example.
    Change your application to use a different default name or to detect the device differently (e.g. using the DAQmx System >> DevNames and DAQmx Device >> ProductType properties).
    Brad
    Brad Keryan
    NI R&D

  • Print Row Numbers and Column Letters

    How do you tell Numbers to print the Row numbers and Column letters? This was very simple in Appleworks (print dialog box had that option). Can't find it in Numbers though.

    Here is a script doing all the job for us.
    Just select one or several cells in a table and run the script.
    It duplicates it, add an header row, an header column, insert the needed labels and fill the other cells with a formula grabbing the contents of the original table.
    --[SCRIPT build a table with headers]
    Enregistrer len tant que Script: build a table with headers.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.
    Selectionner une cellule dans la table à dupliquer
    menu Scripts > Numbers > build a table with headers
    Le script duplique la table et crée des en-têtes de lignes et colonnes.
    --=====
    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 Script: build a table with headers.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    Select a range of cells in the table to 'duplicate'
    menu Scripts > Numbers > build a table with headers
    The script duplicate the table and inserts columns/rows headers.
    --=====
    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.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2009/09/19
    --=====
    property theApp : "Numbers"
    --=====
    my activateGUIscripting() (* to be sure than GUI scripting will be active *)
    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
    set new_Table to t_Name & "_#"
    my duplicateTable(s_Name, t_Name, new_Table)
    set delim to my getLocalizedDelimiter()
    (* grab localized function names and add an open parenthesis at end *)
    set IF_loc to my getLocalizedFunctionName("Numbers", "IF") & "("
    set CHAR_loc to my getLocalizedFunctionName("Numbers", "CHAR") & "("
    set INT_loc to my getLocalizedFunctionName("Numbers", "INT") & "("
    set MOD_loc to my getLocalizedFunctionName("Numbers", "MOD") & "("
    set INDIRECT_loc to my getLocalizedFunctionName("Numbers", "INDIRECT") & "("
    set ADDRESS_loc to my getLocalizedFunctionName("Numbers", "ADDRESS") & "("
    (* grab localized function names and add a couple of parenthesis at end *)
    set ROW_loc to my getLocalizedFunctionName("Numbers", "ROW") & "()"
    set COLUMN_loc to my getLocalizedFunctionName("Numbers", "COLUMN") & "()"
    tell application "Numbers" to tell document d_Name to tell sheet s_Name to tell table new_Table
    if column count = 256 then
    if my parleAnglais() then
    error "Oops, already 256 columns !"
    else
    error "Désolé, il y a déjà 256 colonnes !"
    end if
    end if
    if row count = 65536 then
    if my parleAnglais() then
    error "Oops, already 65536 rows !"
    else
    error "Désolé, il y a déjà 65536 lignes !"
    end if
    end if
    try
    add row above row 1
    on error
    if my parleAnglais() then
    error "Oops, already five header row !"
    else
    error "Désolé, il y a déjà cinq rangs d’en tête !"
    end if
    end try
    try
    add column before column 1
    on error
    if my parleAnglais() then
    error "Oops, already five header columns !"
    else
    error "Désolé, il y a déjà cinq rangs d’en tête !"
    end if
    end try
    set nbr to row count
    set nbc to column count
    (* =IF(COLUMN()<28,CHAR(COLUMN()63),CHAR(INT((COLUMN()-2)/26)+64)&CHAR(MOD(COLUMN()-2,26)65)) *)
    set theFormula to "=" & IF_loc & COLUMN_loc & "<28" & delim & CHAR_loc & COLUMN_loc & "+63)" & delim & CHAR_loc & INT_loc & "(" & COLUMN_loc & "-2)/26)+64)&" & CHAR_loc & MOD_loc & COLUMN_loc & "-2" & delim & "26)+65))"
    tell row 1
    repeat with c from 2 to nbc
    set value of cell c to theFormula
    end repeat
    end tell -- row 1
    (* =ROW()-1 *)
    set theFormula to "=" & ROW_loc & "-1"
    tell column 1
    repeat with r from 2 to nbr
    set value of cell r to theFormula
    end repeat
    end tell -- column 1
    (* =INDIRECT(ADDRESS(ROW()-1,COLUMN()-1,,,"Tableau 2")) *)
    set theFormula to "=" & INDIRECT_loc & ADDRESS_loc & ROW_loc & "-1" & delim & COLUMN_loc & "-1" & delim & delim & delim & quote & t_Name & quote & "))"
    repeat with r from 2 to nbr
    repeat with c from 2 to nbc
    set value of cell r of column c to theFormula
    end repeat -- with c
    end repeat -- with r
    end tell -- Numbers
    --=====
    Set the parameter delimiter which must be used in Numbers formulas
    on getLocalizedDelimiter()
    if character 2 of (0.5 as text) is "." then
    return ","
    else
    return ";"
    end if
    end getLocalizedDelimiter
    --=====
    on getLocalizedFunctionName(theApp, x)
    local p2bndl
    set p2bndl to (path to application support as text) & "iWork '09:Frameworks:SFTabular.framework:Versions:A:Resources:"
    return my getLocalizedName(theApp, x, p2bndl)
    end getLocalizedFunctionName
    --=====
    on getLocalizedName(a, x, f)
    tell application a to return localized string x from table "Localizable" in bundle file f
    end getLocalizedName
    --=====
    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 decoupe(t, d)
    local l
    set AppleScript's text item delimiters to d
    set l to text items of t
    set AppleScript's text item delimiters to ""
    return l
    end decoupe
    --=====
    on isItAsheet(s)
    try
    tell application "Numbers" to tell document 1
    count of tables of sheet s (*
    Post an error if s is not a sheet *)
    end tell
    return true
    on error
    return false
    end try
    end isItAsheet
    --=====
    on activateGUIscripting()
    tell application "System Events"
    if not (UI elements enabled) then set (UI elements enabled) to true (* to be sure than GUI scripting will be active *)
    end tell
    end activateGUIscripting
    --=====
    on duplicateTable(sourceSheet, sourceTable, newName)
    local lesFeuilles, lesTables1, found, listOfRows, cor, i, isSourceSheet, nameI, j, lesTables2
    tell application "Numbers"
    activate
    tell document 1
    set lesFeuilles to name of sheets
    if sourceSheet is in lesFeuilles then
    tell sheet sourceSheet to set lesTables1 to name of tables
    if sourceTable is not in lesTables1 then
    if my parleAnglais() then
    error "The sheet “" & sourceTable & "” of sheet “" & sourceSheet & "” is unavailable ! "
    else
    error "La table “" & sourceTable & "” de la feuille “" & sourceSheet & "” n'existe pas ! "
    end if
    end if -- sourceTable is not
    else
    if my parleAnglais() then
    error "The sheet “" & sourceSheet & "” is unavailable ! "
    else
    error "La feuille “" & sourceSheet & "” n'existe pas ! "
    end if
    end if -- sourceSheet is in
    end tell -- document
    end tell -- application
    if newName is not in lesTables1 then (*
    Now, an ugly workaround to duplicate the sheet *)
    set isOS4 to (system attribute "sys2") < 5
    tell application "System Events" to tell application process "Numbers"
    set docWindow to false (* CAUTION, an inspector ("AXFloatingWindow") or a Find/Search ("AXDialog") window may be open *)
    repeat with i from 1 to (count of windows)
    if subrole of window i is "AXStandardWindow" then
    set docWindow to i (* got the document's window *)
    exit repeat
    end if
    end repeat
    if docWindow is not false then
    tell outline 1 of scroll area 1 of splitter group 1 of splitter group 1 of window docWindow
    select row 1
    set value of attribute "AXFocused" to true
    set found to false
    set listOfRows to name of static text of every row
    set cor to count of rows (* equal count of listOfRows *)
    if isOS4 then (*
    for mac Os X 10.4.11
    CAUTION, listOfRows it's a list of lists !
    {{"Feuille 2"}, {"Tableau 1"}, {"theSheet"}, {"Feuille 1"}, {"Tableau 2"}, {"Clément"}, {"Feuille 4"}} *)
    repeat with i from 1 to cor (*
    Scan the thumbnails *)
    set nameI to item 1 of item i of listOfRows
    set isSourceSheet to (sourceSheet = nameI) and my isItAsheet(nameI)
    if isSourceSheet then
    select row i
    if (i < cor) and not my isItAsheet(item 1 of item (i + 1) of listOfRows) then (*
    Here we may scan the thumbnails of tables of sourceSheet *)
    repeat with j from i + 1 to i + (count of lesTables1)
    if sourceTable = item 1 of item j of listOfRows then
    select row j
    set found to true
    exit repeat
    end if -- sourceTable
    end repeat
    else
    if my parleAnglais() then
    error "The sheet “" & sourceTable & "” of sheet “" & sourceSheet & "”" & return & " is not revealed in thumbnails ! "
    else
    error "La table “" & sourceTable & "” de la feuille “" & sourceSheet & "”" & return & " n'est pas affichée dans les vignettes ! "
    end if -- my parleFrancais
    end if -- (i < cor)
    end if -- isSourceSheet
    if found then exit repeat
    end repeat -- i
    else (*
    for mac Os X 10.5.x
    CAUTION, listOfRows is a list of lists !
    {{}, {"Tableau 1"}, {"theSheet"}, {}, {"Tableau 2"}, {"Clément"}, {}}
    With 10.5.x, the names of sheets are empty *)
    repeat with i from 1 to cor
    set isSourceSheet to (class of UI element 1 of row i is group) and (get value of static text 1 of group 1 of row i) is sourceSheet
    if isSourceSheet then (*
    Here we may scan the thumbnails of tables of sourceSheet *)
    if value of UI element 1 of group 1 of row i is 0 then (*
    reveal the tables's thumbnails and adjust the list accordingly *)
    click UI element 1 of group 1 of row i (* click the black triangle to reveal tables *)
    delay 0.1
    set listOfRows to name of static text of every row (* update the list accordingly *)
    end if -- value of UI…
    repeat with j from i + 1 to i + (count of lesTables1)
    if sourceTable = item 1 of item j of listOfRows then
    select row j
    set found to true
    exit repeat
    end if -- sourcetable
    end repeat -- with j
    end if -- isSourceSheet
    if found then exit repeat
    end repeat -- with i
    end if -- check OS
    end tell -- outline …
    keystroke "d" using command down
    end if -- docWindow
    end tell -- System Events…
    if docWindow is not false then (*
    Rename the new table according to the passed name: newTable *)
    tell application "Numbers" to tell document 1 to tell sheet sourceSheet
    set lesTables2 to name of tables
    repeat with i in lesTables2
    if i is not in lesTables1 then (*
    Here i is the name of the newly created table *)
    set name of table i to newName
    exit repeat
    end if
    end repeat
    end tell
    end if -- docWindow
    end if -- newName is not…
    end duplicateTable
    --=====
    on parleAnglais()
    local z
    try
    tell application theApp to set z to localized string "Cancel"
    on error
    set z to "Cancel"
    end try
    return (z is not "Annuler")
    end parleAnglais
    --=====
    --[/SCRIPT]
    Yvan KOENIG (VALLAURIS, France) samedi 19 septembre 2009 17:33:59

  • Cannot display more than 16 significant digit numbers from Oracle

    The WebI Report cannot display more than 16 significant digit numbers from an Oracle data type field.
    This occurs for both an ODBC and native driver connection to Oracle.
    The data is defined by Number Data Type in Oracle, and view correctly in Universe, but display incorrectly in WebI report which created by InfoView.
    I know BOE XIR2 has this behavior, but it seems that XI3.0 and XI3.1 also have this problem.
    If this behavior in XI3.0 and XI3.1 perform by design? or it's a bug? and Why?
    Thanks!

    Hi Sarah,
    Precision limitation of a Web Intelligence filter constant :
    In an Oracle database, a Number field type can store up to 38 digits. When creating a Web Intelligence report in the Java Panel, a condition is specified for this field (that is represented in the universe as a number), and a constant number is entered for its value, only up to 15 digits of precision are retained.
    For example, if 1234567890123456789 is entered, the value becomes 1234567890123460000.
    Or, if you have a column in database which has a number like 123.123456789012345678 it will display only 123.123456789012.
    Cause
    The reason for this limitation is that Java Panel represents a number internally as a Double field type with only 15 digits precision. This is by design.
    Resolution
    The only workaround is to change the field type to a Character field; however, doing so means losing the ability to perform calculations and/or sorting on the field.
    This issue has been raised as an Enhancement Request and given Track ID # ADAPT00908702.
    Regards,
    Deepti Bajpai

  • Taking info from Column and Pasting to another Column without losing content?

    Hi Numbers Masters,
    I am working on an e-commerce store CSV spreadsheet.
    For instance:
    I have column "A" which is a description of a product and column "B" which is a SKU Number. I want the SKU number column info to be added to Column "A" without deleting the description content in Column "A". There is different values for each SKU number in column B and different content for info in Column "A".
    If I copy and paste I lose the info in Column "A" and am just left with info from Column "B".
    THANK YOU

    In Excel I would do this
    Save a copy of the file.
    Concatenate the text by creating a formula in a third column that "adds" the contents of A and B.
    Then inspect the column
    I expect Numbers works similarly.
    Use the & function to add strings (Descriptions or SKU)
    Something like this
    A1 & B1
    A1 & " " & B1
    gives you a space
    A1 & " -" & B1
    gives you a dash
    Description
    SKU
    Combine
    Scissors
    1234
    Scissors 1234
    Clipboard
    78766
    Clipboard 78766
    Masking tape
    9832
    Masking tape 9832
    Scissors
    1234
    Scissors:1234
    Clipboard
    78766
    Clipboard:78766
    Masking tape
    9832
    Masking tape:9832

  • How do I generate random numbers from a list of numbers without repeating any number

    I am trying to generate a list of random numbers without any repeating numbers.  For example say the list is from 1 to 15, how do I randomly generate a list of numbers using each number only once?

    pb,
    You can build a randomizer by making a 2-column table with 15 rows. In Column A, Fill with the numbers 1 to 15. In column B Fill with RAND(). Then sort on Column B. There will now be a randomized list of the numbers from 1 to 15 in Column A. You can copy this random list and use it in your application.
    Jerry

  • Seperating phone numbers from a telephone bill for business expences

    I am trying to work out how i can separate numbers from a phone bill to show business calls and personal calls.
    I would like to have a table of phone numbers that are business numbers that i can add to over time. Then a separate table where i either import all the phone numbers or manually type them in for a given month.
    Then table one reads table two and in new table three lists the phone calls that have been made that would be business numbers and table four shows the remaining numbers that are personal.
    I know this is a lot to ask but if there is a template out there already i would be very grateful.

    Big,
    Here's a scheme that may work for you.
    Table 1 (Bus Nums) - a list of all business numbers you may possibly call.
    Table 2 (Mth Calls) - a list of all calls made during the month. Three columns are added and may be hidden. Column B determines if the number is on your business list or not:
    =IF(A2="","",MATCH(A2, Bus Nums :: A, 0)) If not on the list an error is generated, else a position number where found.
    Columns C and D produce index numbers for Tables 3 and 4.
    =IF(OR(ISBLANK(A2),ISERROR(B2)),"",MAX($C$1:C1)+1)
    =IF(OR(ISBLANK(A2),C2""),"",MAX($D$1:D1)+1)
    Tables 3 (Mth Bus) and 4 (Mth Oth) list separately the business and other calls for the month. Those formulas are:
    =IF(ROW()-1>MAX(Mth Calls :: C),"",LOOKUP(ROW()-1,Mth Calls :: C,Mth Calls :: A))
    =IF(ROW()-1>MAX(Mth Calls :: D),"",LOOKUP(ROW()-1,Mth Calls :: D,Mth Calls :: A))
    pw

  • How can i transfer all my contact numbers from iPhone 3G to iPhone 4S/

    HOw cn i transfer all my contact numbers from my old iPhone 3G to my new iPhone 4S?

    Sync old iPhone 3G to iTunes on your computer. Then connect new iPhone 4S to computer and Restore from Back-Up of the 3G. This command can be found, on Windows you right mouse click on iPhone name in left column of iTunes, on Mac Option click on iPhone name in left column of iTunes.

  • First, Last name fields in Numbers -- Three columns on iWeb page

    I'm new to this (both Numbers and iWeb) and I'm trying to help someone with their page (it's for a local candidate).  They have an excel spreadsheet with names and a bunch of other stuff.  they want to put the list of first and last names on their "supporters" webpage, separated by a space, without having to do it manually -- at this point about 900 such names.
    I can get the names out of Excel and into Numbers, obviously.  And I think I know how to get the list into iWeb, if I can generate it (using an iWeb snippet, which I'd also love help with if anyone here knows THAT as well).
    What I can't seem to do is create a list, in three columns, with First name (single space) last name.  Whatever I put in the formula bar seems not to do anything. And I haven't even BEGUN to figure out how to generate the three-column list.
    Any help would be gratefully appreciated.  As dunce-worthy as possible -- believe me, I won't be offended if anyone talks down to me.

    Hi d,
    I think it's the "three column specification that's throwing me. You might need to clarify that.
    The names are currently entered with First names in one column and Last names in the adjacent column. Here's a way to combine the first and last names into a "full name".
    In the "Full" column, the formula is:
    =B&" "&C
    In Last, First, the formula is:
    =C2&", "&B
    To list the names in a three column table in iWeb, you may need to start with a three column table in Numbers. This one pulls the names from column D (Full) of the table above, and distributes them into three columns. The original table has had four names added, and has been sorted.
    Note that the original table has been named "Data".
    The Data table contains the formula(s) shown above.
    The second table, "Aux", calculates the number of cells needed in each of the three columns so that no column is more than one cell longer than the shortest. Doing this calculation in an auxiliary table greatly simplifies the formulas needed in the final table.
    This table contains a single formula, entered in B2, and filled right to D2. Note that A2 is referenced in the formulas in the final table, "3 Columns". A2 may be empty, contain text, or contain the number zero.
    B2 (and fill right): =QUOTIENT(COUNTA(Data :: $C),3)+IF(MOD(COUNTA(Data :: $C),3)>COLUMN()-2,1,0)
    The third table, "3 Columns" displays the names in three columns.
    It contains a single formula, placed in A1 and filled right to column C and down to row 10.
    3 Columns::A1 (and fill right and down): =IF(ROW()<=Aux::B$2,OFFSET(Data :: $A$1,SUM(Aux::$A$2:A$2,ROW()),3),"")
    Descriptions and further examples for the functions used may be found in the iWork Formulas and Functions User Guide. The guide may be downloaded via the Help menu in Numbers.
    Regards,
    Barry

  • How to delete file from column after upload with messageFileUpload?

    Which is the way to delete a file from column i have uploaded with messageFileUpload. After uploading the system generates a link to download the file. But how i can delete the file?

    Thank you! Syncing has always scared me...basically I am just afraid to lose any photos. But it worked. Again thank you

Maybe you are looking for