+ Reply to Thread
Results 1 to 7 of 7

Replacement for using Indirect (Volatile)

  1. #1
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Post Replacement for using Indirect (Volatile)

    Hi,

    What can I use to replace the portion in red because it is volatile?

    =IF(A3="N","",RANK(B3,$B$2:INDIRECT("$B$17"),0)+COUNTIF($B$2:B3,B3)-1)
    Last edited by jeffreybrown; 10-31-2009 at 09:54 AM.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Replacement for using Indirect (Volatile)

    Quote Originally Posted by rocky1 View Post
    Hi,

    What can I use to replace the portion in red because it is volatile?

    =IF(A3="N","",RANK(B3,$B$2:INDIRECT("$B$17"),0)+COUNTIF($B$2:B3,B3)-1)
    Try this:
    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Post Re: Replacement for using Indirect (Volatile)

    Thanks for the help Ron.

    I am actually looking for something that could be a little more dynamic. For this example I just used B17, but I'm not sure where the end of the column is. I could write INDIRECT("$B$2000") or even further, but of course as soon as I do that somebody will have more rows. What can I use that will give me the address of the last cell?
    HTH
    Regards, Jeff

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Replacement for using Indirect (Volatile)

    Quote Originally Posted by rocky1 View Post
    Thanks for the help Ron.

    I am actually looking for something that could be a little more dynamic. For this example I just used B17, but I'm not sure where the end of the column is. I could write INDIRECT("$B$2000") or even further, but of course as soon as I do that somebody will have more rows. What can I use that will give me the address of the last cell?

    Ah...now that's a different question.

    And...since you're using Excel 2007...
    If there won't be any blanks within the number range,
    I think this formula will work for you:
    Please Login or Register  to view this content.
    Is that something you can work with?
    If not...we'll probably have to use a dynamic named range.

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Post Re: Replacement for using Indirect (Volatile)

    Hi Ron,

    I must be messing this one up, but I am getting #N/A and #VALUE for some cells. I've attached a sample of what I am trying. Is there anyway to incorporate the formula in H6? If we used a dynamic range isn't that also volatile?
    Attached Files Attached Files

  6. #6
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Replacement for using Indirect (Volatile)

    Quote Originally Posted by rocky1 View Post
    Hi Ron,

    I must be messing this one up, but I am getting #N/A and #VALUE for some cells. I've attached a sample of what I am trying. Is there anyway to incorporate the formula in H6? If we used a dynamic range isn't that also volatile?

    I edited your posted workbook to include the following changes:

    1) I added a Named Range
    Name: LastNumCell
    Refers to: =INDEX($B:$B,MAX(ISNUMBER($B:$B)*ROW($B:$B)))

    2) New formula:

    Please Login or Register  to view this content.
    copy that formula down as far as you need.

    Does that help?
    Attached Files Attached Files

  7. #7
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Post Re: Replacement for using Indirect (Volatile)

    Yes that helps a lot...Thanks Ron

+ 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