Autofill without dragging fill handle?

Is there a way to fill down a formula or function in a empty column without dragging the fill handle through ~2500 rows in a worksheet?

If your numbers are in column B for instance, just insert the formula
=ROW()
Doing that when you created the document, you just would have to drag the formula on a short range.
After that, when using the document, the formula will be created automatically when you add rows at the bottom or when you insert rows somewhere in the table.
If you already have a large table, you may use this AppleScript:
--[SCRIPT autoNumber]
Enregistrer le script en tant qu'Application ou Progiciel : autoNumber.app
déplacer l'application créée 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.
Sélectionnez la première cellule à numéroter.
menu Scripts > Numbers > autoNumber
Saisir le numéro de départ.
Le script remplit la cellule de départ et les cellules de rang supérieur dans la colonne ave la formule =LIGNE()-xx, xx étant calculé pour que la numérotation commence comme prévu.
+++++++
Save the script as an Application or an Application Bundle: autoNumber.app
Move the newly created application 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 the first cell to fill.
menu Scripts > Numbers > autoNumber
Type tha value of the starting number.
The script fills selected cell and those of higher index in its column with the formula =ROW()-xx where xx is calculated given the starting number.
Yvan KOENIG (Vallauris, FRANCE)
7 février 2009
property theApp : "Numbers"
property delim : missing value
property ROW_loc : missing value
--=====
on run
if delim is missing value then
if character 2 of (0.5 as text) is "." then
set delim to ","
else
set delim to ";"
end if
set p2lproj to my getLproj(theApp)
set ROW_loc to my getLocalizedFuncName(p2lproj, "ROW")
end if
set {rName, tName, sName, dName} to my getSelection()
if rName is missing value then error "No selected cells"
set twoNames to my decoupe(rName, ":")
set {colNum1, rowNum1} to my decipher(item 1 of twoNames)
(* Here we know the starting point of the destination area. *)
tell application (path to frontmost application as string)
if my parleFrancais() then
set msg to text returned of (display dialog "Tapez le premier numéro à utiliser" default answer "1")
else
set msg to text returned of (display dialog "Enter the first number to use" default answer "1")
end if
end tell
try
set msg to msg as integer
on error
if my parleFrancais() then
error "Nombre entier attendu !"
else
error "Must be an integer number !"
end if
end try
set prem to rowNum1 - msg
tell application "Numbers" to tell document dName to tell sheet sName to tell table tName to tell column colNum1
set cMax to (get count row)
repeat with y from rowNum1 to cMax
set value of cell y to "=" & ROW_loc & "()-" & prem
end repeat
end tell
end run
--=====
on getSelection()
local mySelectedRanges, sheetRanges, thisRange, _, myRange, myTable, mySheet, myDoc, mySelection
tell application "Numbers" to tell document 1
set mySelectedRanges to selection range of every table of every sheet
repeat with sheetRanges in mySelectedRanges
repeat with thisRange in sheetRanges
if contents of thisRange is not missing value then
try
--return thisRange --poorly formed result
thisRange as text
on error errmsg number errNum
set {_, myRange, _, myTable, _, mySheet, _, myDoc} to my decoupe(errmsg, quote)
--set mySelection to (a reference to (range rn of table tn of sheet sn))
return {myRange, myTable, mySheet, myDoc}
end try
end if -- contents…
end repeat -- thisRange
end repeat -- sheetRanges
end tell -- document 1 of application
return {missing value, missing value, missing value, missing value}
end getSelection
--=====
on decipher(n)
local letters, colNum, rowNum
set letters to "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
if (character 2 of n) as text > "9" then
set colNum to (offset of (character 1 of n) in letters) * 64 + (offset of (character 2 of n) in letters)
set rowNum to (text 3 thru -1 of n) as integer
else
set colNum to offset of (character 1 of n) in letters
set rowNum to (text 2 thru -1 of n) as integer
end if
return {colNum, rowNum}
end decipher
--=====
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 getLocale(a, x)
tell application a to return localized string x
end getLocale
--=====
on getLocalizedFuncName(f, x)
return localized string x from table "Localizable" in bundle file f
end getLocalizedFuncName
--=====
on getLproj(aa)
local lprojName
set lprojName to my getlprojName(aa) & ".lproj"
return (path to application support as text) & "iWork '09:Frameworks:SFTabular.framework:Versions:A:Resources:" & lprojName
end getLproj
--=====
on getlprojName(aa)
local lprojs, localId, lproj
set lprojs to {{"da_DK", "da"}, {"nl_NL", "Dutch"}, {"en_US", "English"}, {"fi_FI", "fi"}, {"fr_FR", "French"}, {"de_DE", "German"}, {"it_IT", "Italian"}, {"ja_JP", "Japanese"}, {"ko_KR", "ko"}, {"no_NO", "no"}, {"pl_PL", "pl"}, {"pt_BR", "pt"}, {"pt_PT", "pt_PT"}, {"ru_RU", "ru"}, {"es_ES", "Spanish"}, {"sv_SE", "sv"}, {"zf_CN", "zh_CN"}, {"zh_TW", "zh_TW"}}
if aa starts with "Pages" then (* why are they using different strings ? *)
set localId to my getLocale(aa, "http://support.apple.com/manuals/#iwork")
else (* here for Keynote or Numbers *)
set localId to my getLocale(aa, "http://support.apple.com/en_US/manuals/#iwork")
end if
set localId to text (1 + (count of "http://support.apple.com/")) thru -1 of localId
set localId to text 1 thru ((offset of "/" in localId) - 1) of localId
set lproj to ""
repeat with i from 1 to count of lprojs
if localId is item 1 of item i of lprojs then
set lproj to item 2 of item i of lprojs
exit repeat
end if
end repeat
if lproj = "" then
if my parleFrancais() then
error "Le fichier FrameWorks " & localId & " manque !"
else
error "The Frameworks file " & localId & "is missing !"
end if
else
return lproj
end if
(* returns
da
Dutch
English
fi
French
German
Italian
Japanese
ko
no
pl
pt
pt_PT
ru
Spanish
sv
zh_CN
zh_TW
given the language used to display the program's GUI. *)
end getlprojName
--=====
on parleFrancais()
local z
try
tell application theApp to set z to localized string "Cancel"
on error
set z to "Cancel"
end try
return (z = "Annuler")
end parleFrancais
--=====
--[/SCRIPT]
Yvan KOENIG (from FRANCE samedi 7 février 2009 19:55:27)

Similar Messages

  • Autofill without changing formatting?

    Is it possible to use the autofill fill handle, or use another feature for the same effect, without changing the formatting (fill color, etc) of the cells you are filling? Can you lock the visual format of cells?

    Scott Odgers wrote:
    Is it possible to use the autofill fill handle, or use another feature for the same effect, without changing the formatting (fill color, etc) of the cells you are filling? Can you lock the visual format of cells?
    If there's a way, I haven't found it. Dragging the control fills the cell's contents and attributes (including any formatting).
    I second Yvan's recommendation to Provide Numbers Feedback.
    Regards,
    Barry

  • Fill handle question

    Hi (again).
    This is a problem I have had with Excel as well and I don't know if it is possible to do with Numbers.
    I want to use the fill handle to automatically fill in a table with calculation but without changing one of the argument in the formula.
    In cell A2, I have the formula "=A1+B2". If I use the handle to drag that cell to the right, I will get "=A2+B3", where I would like to have "=A1+B3", so only increment one part of the formula and consider the other part as a reference.
    Is this possible ?

    Michael,
    Place a $ in front of the row or column you want to remain absolute.
    When you drag = $A2+B2 to the right you will get =$A2+C2, =$A2+D2, etc.
    Dragging down =$A$2+B2 gives, =$A$2+B3, =$A$2+B4, etc.
    Dragging to the right changes the column letter unless there is a $ in front of it.
    Dragging down changes the row number unless there is a $ in front of it.
    pw

  • Merging cells and using the fill handle to copy the merge in subsequent...

    My problem can be best illustrated by me by explaining how I could achieve it in Excel.
    In Excel, this is how it would be done for example:
    I select two horizontal cells and click on the merge button to merge them. They are now one cell, with the fill handle (small circle) on the bottom right corner. Clicking on that circle and dragging it down will merge both cells in each row into a single cell. i.e. each subsequent row will look like the row above until I stop dragging.
    How can I do this in Numbers. Obviously I don't want both columns to become one wider column, but just a certain selection of rows within the two columns.

    doktor_florian wrote:
    Either this answer does not have anything to do with the original question or I just don't get the link.
    If I select 20 rows with two columns and press "merge" I get one cell with the content of 20 rows. This is utterly useless.
    Hi,
    1.) I think you do not entirely understand my poing. Unfortunately, I cannot upload images of what I am trying to illustrate in words.
    I am not trying to merge 2 columns and their 20 rows into one cell. What I want to do is to merge two cells horizontally.
    Open Numbers and open a blank spread sheet. You have numerous columns and rows, but for simplicity, concentrate on columns A and B and rows 1-5.
    The illustrations below show what it is I want to achieve. You start of with (1), two columns with 5 rows making a total of 10 cells. For what ever reasons, I need to merge the 2nd row (A2+B2) into a single cell. I select them, click on merge and that's it. [Illustration (2)] However, I also need the 2nd and 3rd row merged. In Excel. I would click on the bottom-right corner of the 2nd row which was recently merged and drag down. This would copy the merged cell onto the rows below and the result is shown in illustration (3). Now, I could just repeat the procedure that I did the first time I merged the two cells in row 2, but imagine if you need to do this for 10 or 20 rows. That's extremely time consuming and certainly there must be an easier way.
    (1) (2) (3)
    A B A B A B
    1 l___l___l 1 l___l___l 1 l___l___l
    2 l___l___l 2 l_______l 2 l_______l
    3 l___l___l 3 l___l___l 3 l_______l
    4 l___l___l 4 l___l___l 4 l_______l
    5 l___l___l 5 l___l___l 5 l___l___l
    2.) +"If I select 20 rows with two columns and press "merge" I get one cell with the content of 20 rows. This is utterly useless."+
    I think this is a very patronizing comment. How can you know what needs I or other Numbers users have? Perhaps it is very useless to you, in which case you should have said so, but it is not objectively useless.
    P.S. I apology for the messiness of the illustrations. It's the best I can do.

  • How can you take a photo from one event and put it in another, without dragging to desktop and dragging back into iPhoto and moving it to the event folder I want it in.

    As the title says I need help on how to take a photo from one event and put it in another, without dragging to desktop and dragging back into iPhoto and moving it to the event folder I want it in. Right now when I want to move a picture from one event to another I drag it to my desktop then delete it from iPhoto then I drag it back into iPhoto and put where I want it.An example would be taking a photo from the Christmas event and add it to a specific person event.  Can I do that within the events section without all the dragging. Also is there anyway I can remove duplicates from iPhoto without going through each and every file. Any help would be greatly appreciated.

    Apple doesn't make it easy to do what you want.  However, here's how I do it. 
    Select the photo you want to move and create a new Event for it via the Event ➙ Create Event menu option.
    In the Event mode select the new Event with the one picture and drag it onto the Event you want to move the photo to.

  • How does one rearrange photos in an album without dragging?

    How does one rearrange photos in an album without dragging?

    View -> Sort Photos lists the various automatic options.

  • Is there a way to combine two Smart Playlists without dragging each individual song from one list to the other?

    Is ther a way to Combine two Smart Playlists without dragging and dropping each song into the other Smart Playlist?
    Any help is greatly appreciated.
    Debra

    With the timeline selected, go to File/Export/Movie and export each as a DV-AVI video.
    You can then combine those AVIs into a new project with virtually no loss of quality.

  • Drag event handling in JFXPanel has performance implications with expensive event handlers

    We have a drag event handler that is a little expensive, takes something like 20ms. The respective code must be run in a synchronous manner however.
    That is no problem in a pure JavaFX environment, as less drag events are created when CPU load is high.
    However, when embedded into Swing using JFXPanel this adaptation doesn't kick in, lots of drag events are created and the application becomes sluggish.
    Is there a way to mimic what JavaFX does in the JFXPanel scenario?
    The code below is a self-contained example that demonstrates what I'm describing.
    Some results I had:
    -eventHandlerSleep=5 -noswing --> 128 drag events
    -eventHandlerSleep=30 -noswing --> 46 drag events
    -eventHandlerSleep=5  --> 136 drag events
    -eventHandlerSleep=30  --> 135 drag events
    {code}import java.util.Arrays;
    import javax.swing.*;
    import com.sun.glass.ui.Robot;
    import javafx.application.Application;
    import javafx.application.Platform;
    import javafx.embed.swing.JFXPanel;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.BorderPane;
    import javafx.stage.Stage;
    public class DragHandlingTester {
        private static long EVENT_HANDLER_SLEEP = 30;
        public static void main(String[] args) {
            for (String arg : args) {
                if (arg.startsWith("-eventHandlerSleep=")) {
                    EVENT_HANDLER_SLEEP = Long.parseLong(arg.split("=")[1]);
            if (Arrays.asList(args).contains("-noswing")) {
                Application.launch(JavaFXDragHandlingTestApp.class, args);
            } else {
                new SwingDragHandlingTestApp();
        static class SwingDragHandlingTestApp {
            SwingDragHandlingTestApp() {
                JFrame frame = new JFrame();
                final JFXPanel fxMainPanel = new JFXPanel();
                Platform.runLater(new Runnable() {
                    @Override
                    public void run() {
                        DragTestScene dragTestScene = new DragTestScene();
                        fxMainPanel.setScene(dragTestScene.createScene());
                frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
                frame.getContentPane().add(fxMainPanel);
                frame.setSize(800, 600);
                frame.setVisible(true);
        public static class JavaFXDragHandlingTestApp extends Application {
            @Override
            public void start(Stage primaryStage) {
                primaryStage.setWidth(800);
                primaryStage.setHeight(600);
                primaryStage.setX(0.0);
                primaryStage.setY(0.0);
                DragTestScene dragTestScene = new DragTestScene();
                primaryStage.setScene(dragTestScene.createScene());
                primaryStage.show();
        static class DragTestScene {
            private int drags = 0;
            public Scene createScene() {
                new Thread(new Runnable() {
                    @Override
                    public void run() {
                        try {
                            // after 1 second drag mouse across window
                            Thread.sleep(1000);
                            Robot robot = com.sun.glass.ui.Application.GetApplication().createRobot();
                            robot.mouseMove(50, 50);
                            robot.mousePress(1);
                            for (int i = 20; i &lt; 700; i = i + 5) {
                                robot.mouseMove(i, 50);
                                Thread.sleep(10);
                            robot.mouseRelease(1);
                        } catch (Exception e) {
                            e.printStackTrace();
                }).start();
                BorderPane borderPane = new BorderPane();
                borderPane.setOnMouseDragged(new EventHandler() {
                    @Override
                    public void handle(MouseEvent mouseEvent) {
                        drags++;
                        try {
                            Thread.sleep(EVENT_HANDLER_SLEEP);
                        } catch (InterruptedException ignored) {
                        System.out.println("Number of drag events: " + drags);
                return new Scene(borderPane);
    {code}

    Ok, I expected something like this to be the reason. We'll probably have to live with it.
    My workaround right now is to use background tasks with an executor that has a single element queue handling the events in order, but rejecting any additional events as long as there is a queued event.
    Still not the same performance as in JavaFX, but at least it's usable now.

  • Is there a Drag-Drop handler for TextAreas ?

    Is there a Drag-drop handler for TextAreas where new x,y positions can be saved as well ? Thanks in advannce

    Bernd, thanks for the helpful suggestion - I may be able to change my procedure and use that feature.  It would save me thousands of mouse clicks if I just found and dragged each .doc into the target folder, then used an Action to convert them all to PDF.  I still like the 'smart' folder idea, though....it would be a cool utility.

  • There are no songs in my itunes library found when selecting autofill, and dragging songs into device does not do anything now what?

    when i hit auto fill under music it just says Itunes cannot add any song to "___'s Iphone" because no songs in your itunes library could be found.
    there clearly is an anbundance of music that I have been syncing all the time, I have not the slightest idea why it just stopped working, also when I try to manually click and drag songs into the device tab in itunes, NOTHING happens.
    any suggestions on how to fix it

    I have a very smilar problem. Recently imported my modest music collection from my old G3 CRT to a new Mac Mini by linking the two machines and then dragging the music library and songs over.
    iTunes works fine in normal screen mode, music library is all there and all songs are visible and play but when trying to play back with the Apple Remote it opens up iLife ok and lists the playlists. Click on 'Songs' it says that there are no songs in the library. Click on any playlist then it goes to 'Shuffle Songs' then 'Error has occured' It can't seem to see the music library.
    I put this question on iTunes and Mac Mini discussion and got:
    Some other people have had similar problems, you might see if the suggestions in this thread help:
    http://discussions.apple.com/thread.jspa?threadID=447043
    Tried but as yet no success. Tried re-naming the iTunes Music Library.xml and also deleting com.apple.frontrow.plist from Library and letting it rebuild without any luck.
    Any suggestions out there as how to resolve this? Thanks in advance.

  • How Can I Move Individual Mail Messages to Folders Without Dragging Each One?

    In my business, I get a lot of client email.  I also create and store a lot of client documents.  To manage everything, I have created a main folder named "Clients" on my Mac, and have also created a separate subfolder for each individual client to hold both documents and correspondence pertaining to that specific client.  When I want to save an email to that folder, I drag that message to the desktop to then be filed in the individual client's folder.  It's a two step process, but one I've been using successfully for some time.
    This was not such a big deal before Mail became a beautiful full-screen app.  But now, in order to take advantage of Mail's full-screen capabilities, I have to first exit full screen each time I wish to drag a message out of Mail to my desktop.  Then once the message or messages have been dragged out, I have to reenable full-screen.  That's a couple of additional steps and a real nusiance.  I've considered creating a mailbox for each client in Mail, but with hundreds of clients that's really not an option.
    My question is as follows: Is anyone aware of any app, script, or add on available for Mail, that would allow me to either move or copy individual email messages directly to my desktop or to a folder without having to go through exiting and enabling full screen each time?  Perhaps an app or script that offers a dedicated right-click in the context menu?  Or one that offers the "Desktop" as a location in the current right click "Move To" menu?  Or that would create a keyboard shortcut that would accomplish that task?  I've searched online, but have been unable to come up with anything.
    Thanks in advance for your help. Any advice or suggestions you could give would be most appreciated!
    Patrick

    Have you tried dragging the mail from the inbox and dropping it where you want to save it - all in the MAILBOXES sidebar? If you make the sub folders visible, you should be able to deposit the mail wherever you like.

  • How to I get autofill to stop filling in my browser?

    I have gone to preferences>autofill and gotten rid of things that were being filled in.
    It's not working. I will start to type a letter in the browser, and it's filled in automatically. I don't want it to do that. How can I get it to stop? I did check Private Browsing as well. thanks!

    HI,
    Safari/Preferences - AutoFill web forms.
    Make sure you unchecked those boxes.
    Also, make note of all your preferences.
    Then delete this file. com.apple.safari.plist
    Go here: ~/Library/Preferences.
    Move that .plist file to the Trash and restart your Mac.
    Carolyn

  • Autofill doesn't fill all the way?

    Hello, I have a quick question that I hope can be resolved easily. When I autofill my 2nd gen shuffle from my full music list (much more than the shuffle can actually hold), it doesn't fill up all the way. I don't get an error message. It just stops, and hitting autofill again does nothing. From there, I can only manually add songs to the playlist. Is there something I can do to fix this?
    Thanks!

    Try restoring the iPod, that does sounds like a Software issue on the iPod.
    http://docs.info.apple.com/article.html?artnum=300701
    Also make sure that you are running the latest version of itunes. 7.0.2

  • Resizing images/boxes without dragging???

    Does anyone know if I can resize an image or box by simply typing in the dimensions somewhere instead of dragging from a handle?

    Click your object to select it & then go to the metrics inspector (it's the little ruler) where you can type in the dimensions you want. If you want it to increase or decrease proportionally, check the box next to Constrain proportions & then you only need to enter one dimension & the other will resize also as soon as you tab out of the box or press Return.

  • Rejoin path without removing anchor handle?

    Im wondering if it is possible to rejoin an open path without removing the bezier handle of the open point.
    I find that I quick switch to the direct selection tool to rotate my previously placed anchor or some other quick edit, and then when I want to carry on with the path I click the last point, which has the adverse effect for me of turning the open point into a mixed curve/corner and I have to redrawn the open anchor handle. Photoshop doesn't behave like this when clicking on open anchors, you have to alt click to achieve such behaviour.
    Is there something I'm missing to stop this happening?
    Thanks

    Dan,
    Assume you're drawing a path with the pen, point-by-point, clicking to place corner points; clickDragging to place smooth points. You've just placed a smoothPoint, so both its handles are extended. Now you want to access the white pointer to make an adjustment to that most-recently placed anchor before continuing with the Pen.
    Don't make a "hard switch" to the white pointer (by selecting the tool in the Toolbox or by tapping A). Instead, momentarily invoke it by pressing and holding the Ctrl key. Make the desired adjustment. Release the Ctrl key and the Pen comes back. Simply click or clickDrag where you want the next anchor; you do not have to click the last-placed anchor to resume drawing the path. Doing so, the outboard handle of the last-placed anchor will not be retracted.
    If pressing Ctrl momentarily invokes the black pointer instead of the white pointer, that's because the black pointer is the one you most recently used before selecting the Pen. (That nonsense is part and parcel of AI's endlessly tedious two-selection-tool interface, to which AI still clings, despite its having been prooved both unnecessary and undesirable about three decades ago by FreeHand's far better selection interface.)
    Pressing the Alt key similarly momentarily invokes the Convert tool to make adjustments, and releasing the Alt key lets you resume with the Pen (desipte AI's display of selected anchors failing to reflect that).
    JET

Maybe you are looking for