+ Reply to Thread
Results 1 to 4 of 4

Problem with using the Value of a Cell as part of a COUNTIF Range

  1. #1
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Problem with using the Value of a Cell as part of a COUNTIF Range

    Hi
    Can someone tell my why this formula will not work please :

    =COUNTIF(C5:ADDRESS(VLOOKUP(MONTH($S$1),$B$10:$B$21,1,FALSE)+9,MATCH(DAY(S1),$C$9:$AG$9,0)+2),"X")

    I am trying to use the result of a formula in a cell as the range end (this changes regularly).
    Thanks in anticipation.
    Tony

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Problem with using the Value of a Cell as part of a COUNTIF Range

    Hi,

    You need an INDIRECT in there:

    =COUNTIF(C5:INDIRECT(ADDRESS(VLOOKUP(MONTH($S$1),$B$10:$B$21,1,FALSE)+9,MATCH(DAY(S1),$C$9:$AG$9,0)+2)),"X")

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Problem with using the Value of a Cell as part of a COUNTIF Range

    Hi XOR LX
    Many thanks for the prompt response. Why is it so easy when someone else looks at your issue .
    Thanks again.
    Tony

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Problem with using the Value of a Cell as part of a COUNTIF Range

    It's often the way, my friend!

    You're welcome.

+ 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. Match part of cell to any value in range
    By mek22 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-01-2013, 06:09 PM
  2. Copy a range to another part of the sheet Problem 2
    By skyping in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-15-2011, 09:42 AM
  3. Find out what named range a cell is part of
    By pizzett in forum Excel General
    Replies: 1
    Last Post: 07-25-2007, 10:44 AM
  4. [SOLVED] countif problem when using range name
    By Kieranz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-18-2006, 12:40 PM
  5. How do i check if the current cell is part of a range ?
    By Luc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-28-2006, 02:20 PM

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