+ Reply to Thread
Results 1 to 8 of 8

auto fill an indirect formula

  1. #1
    Registered User
    Join Date
    11-02-2010
    Location
    Midwest, USA
    MS-Off Ver
    Excel 2000
    Posts
    4

    auto fill an indirect formula

    Hello, I've looked all over the net trying to find a solution, but here I am. Your help is appreciated.

    I am in need a formula (for "'Sheet1'") to find the smallest number in a range of cells from ("'Sheet2'"). But, I also need that formula reference to the cell range on "'Sheet2'" to be absolute so that I can insert colums in "'Sheet2'"without the formula automatically updating which column it references.

    The problem is that I need to be able to auto fill the formula on "'Sheet1'".

    I've been researching, guessing, and testing for 4 hours now and here
    Below is the closest thing to my desired formula that I've gotten to work.

    =SMALL(INDIRECT("'Sheet2'!$J4:$N4"&ROWS('Sheet2'!$J4:$N4)),1)

    But, when I auto fill, it comes out like this:

    =SMALL(INDIRECT("'Sheet2'!$J4:$N4"&ROWS('Sheet2'!$J4:$N4)),1)
    =SMALL(INDIRECT("'Sheet2'!$J4:$N4"&ROWS('Sheet2'!$J5:$N5)),1)
    =SMALL(INDIRECT("'Sheet2'!$J4:$N4"&ROWS('Sheet2'!$J6:$N6)),1).....and so on

    I need it to come out in a way that the column reference is absolute, but the row changes (preferably based on the row that the formula is in)

    Please, help me.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    re: auto fill an indirect formula

    What are examples of the final ranges that should be referenced as you copy down the formula?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    11-02-2010
    Location
    Midwest, USA
    MS-Off Ver
    Excel 2000
    Posts
    4

    re: auto fill an indirect formula

    EXAMPLES of desired final ranges:


    =SMALL(INDIRECT("'Sheet2'!$J4:$N4"&ROWS('Sheet2'!$J4:$N4)),1)
    =SMALL(INDIRECT("'Sheet2'!$J5:$N5"&ROWS('Sheet2'!$J5:$N5)),1)
    =SMALL(INDIRECT("'Sheet2'!$J6:$N6"&ROWS('Sheet2'!$J6:$N6)),1).....and so on.

    Is that what you were asking?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    re: auto fill an indirect formula

    I meant what are the actual ranges you are finding the SMALLest values for?

    is it

    Sheet2!J4:N41

    Sheet2!J5:N51

    Sheet2!J6:N61, etc..?

  5. #5
    Registered User
    Join Date
    11-02-2010
    Location
    Midwest, USA
    MS-Off Ver
    Excel 2000
    Posts
    4

    re: auto fill an indirect formula

    Yes,

    J4:N4
    J5:N5
    J6:N6...etc

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    re: auto fill an indirect formula

    Does this work for you?

    =SMALL(INDEX(Sheet2!$1:$65536,ROWS($A$1:$A4),10):INDEX(Sheet2!$1:$65536,ROWS($A$1:$A4),14),1)

    copied down.

  7. #7
    Registered User
    Join Date
    11-02-2010
    Location
    Midwest, USA
    MS-Off Ver
    Excel 2000
    Posts
    4

    re: auto fill an indirect formula

    Yes! Thank you so much. That is exactly what I needed.

    I've not used the INDEX function before. I'm curious, how do you determine to use "$65536"?

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: auto fill an indirect formula

    I just index the whole sheet (65536 rows).

+ 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.6.0 RC 1