+ Reply to Thread
Results 1 to 3 of 3

can you use address function to make range limits??

  1. #1
    Registered User
    Join Date
    03-02-2007
    Posts
    26

    can you use address function to make range limits??

    I need to make a countif function search using a range defined by other functions.
    When run individually I can use the address function return the following in a cell:
    Address(F3,F4,,,'Sheet1') returns Sheet1!$G$162
    Address(G3,G4) returns $R$162

    When I try to make a range from these I try:
    Countif(Address(F3,F4,,,'Sheet1')&":"&Address(G3,G4),"> 0")
    I get an error.

    How does countif accept a range from a calculated range?

    Thank you,

    john

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: can you use address function to make range limits??

    Yes, if you wrap it inside an INDIRECT statement:

    =COUNTIF(INDIRECT(ADDRESS(F3,F4,,,'Sheet1') & ":" & ADDRESS(G3,G4)),">0")

  3. #3
    Registered User
    Join Date
    03-02-2007
    Posts
    26

    Re: can you use address function to make range limits??

    THANK YOU VERY MUCH!!

    Everything worked.

+ 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