+ Reply to Thread
Results 1 to 4 of 4

Thread: Autofill a formula?

  1. #1
    Valued Forum Contributor
    Join Date
    04-03-2009
    Location
    USA, California
    MS-Off Ver
    Excel 2007
    Posts
    369

    Autofill a formula?

    I have the following formula that I would like to be able to autofill.

    =UniqueItem('Divide Outs'!$A$2:$A$999,1)

    The 1 after the comma needs to count up...anyway to autofill a formula like this?

    This is a function that i use to display unique listings.

  2. #2
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,228

    Re: Autofill a formula?

    To fill down, you can use a ROW() trick.

    If the first formula is in row1, then you'll get "1" as the value when you replace the "1" with ROW().
    =UniqueItem('Divide Outs'!$A$2:$A$999,ROW())

    If your first formula were in row 4, you would need to "convert" that "4" that comes from ROW() into a 1 by subtracting 3.
    =UniqueItem('Divide Outs'!$A$2:$A$999,ROW()-3)

    Once you get the first correct value to appear, just copy down.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  3. #3
    Valued Forum Contributor
    Join Date
    04-03-2009
    Location
    USA, California
    MS-Off Ver
    Excel 2007
    Posts
    369

    Re: Autofill a formula?

    JB you the man thanks!

    Rep given.

  4. #4
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,228

    Re: Autofill a formula?

    Thanks!

    If that takes care of your need, be sure to EDIT your original post (Go Advanced) and mark the PREFIX box [SOLVED].
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0