+ Reply to Thread
Results 1 to 4 of 4

Offset and Countif with dynamic Range

  1. #1
    Registered User
    Join Date
    02-03-2013
    Location
    Australia
    MS-Off Ver
    Excel 2008 Mac
    Posts
    21

    Offset and Countif with dynamic Range

    I've got the following function: A2-OFFSET(A2,5+(COUNTIF(B2:B7,"X")),0)

    When I place an X within B2:B7, and the offset happens, it now does A2-A8, which is what I want, but I also want to be able to take into account that X and have the range change from B2:B7 to B2:B8. Which means if I now place an X in B8 that the result will return A2-A9. And so on. Is this possible?

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Offset and Countif with dynamic Range

    Perhaps the following array formula
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-03-2013
    Location
    Australia
    MS-Off Ver
    Excel 2008 Mac
    Posts
    21

    Re: Offset and Countif with dynamic Range

    Hey Pepe, thanks for posting! However, that array formula doesn't seem to be giving me exactly what I'd like.

    The original formula I've got accounts for any X's within 5 cells of B2, however, I'd like for it to keep extending the range if X's appear within those 5 cells. And to keep accounting for any X's that might continue to appear in the dynamically increasing range.

  4. #4
    Registered User
    Join Date
    02-03-2013
    Location
    Australia
    MS-Off Ver
    Excel 2008 Mac
    Posts
    21

    Re: Offset and Countif with dynamic Range

    I thought maybe my explanation before was a little brief, so for anyone else that might know how to solve this problem, I've attached an example document which hopefully illustrates what I'm trying to do. Cheers
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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