+ Reply to Thread
Results 1 to 3 of 3

Adjustable rows via a separate cells

  1. #1
    Forum Contributor
    Join Date
    08-28-2012
    Location
    nz
    MS-Off Ver
    Excel 2010
    Posts
    125

    Adjustable rows via a separate cells

    Hi

    Need to adjust the length of a countif formula from a separate cell

    something like this ?

    =COUNTIF($BB$23:$BBH21),">0")

    H21 being the cell i will change value to indicate rows

    Cheers Men

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Adjustable rows via a separate cells

    hi there. so if H21 contains the value 25, then it's:
    =COUNTIF(INDIRECT(BB21:BB25,">0")

    if so, then:
    =COUNTIF(INDIRECT("BB21:BB"&H21),">0")

    or:
    =COUNTIF(BB21:INDEX(BB:BB,H21),">0")

    INDIRECT is slightly volatile. wouldn't vary much if you're not using it extensively.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor
    Join Date
    08-28-2012
    Location
    nz
    MS-Off Ver
    Excel 2010
    Posts
    125

    Re: Adjustable rows via a separate cells

    Cool

    Ooh sorry about this but what if i wanted to change starting position too

    Cheers

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Self Adjustable Formulas using Rows Value
    By jespo1351 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-25-2013, 07:17 PM
  2. [SOLVED] Excel 2007 : Can Excell create adjustable table (number of columns and rows) ?
    By western_gunner in forum Excel General
    Replies: 5
    Last Post: 06-19-2012, 04:05 AM
  3. [SOLVED] Using Solver in VBA and determining the adjustable cells from different cells.
    By Kybynn in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-26-2012, 03:34 AM
  4. [SOLVED] Solver Maximum adjustable cells & Problem with Binary cells
    By yael in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-05-2006, 05:30 PM
  5. [SOLVED] automatically adjustable cells
    By j in forum Excel General
    Replies: 4
    Last Post: 12-10-2005, 04:30 AM

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