+ Reply to Thread
Results 1 to 3 of 3

Filling Named Ranges in Series

Hybrid View

  1. #1
    Registered User
    Join Date
    08-09-2011
    Location
    Montreal, QC
    MS-Off Ver
    Excel 2003
    Posts
    3

    Filling Named Ranges in Series

    Hi,

    I have a few columns with similar data which I have name as RNG1, RNG2 and so on.

    I am using countif function in a different worksheet to look for and count certain values in these ranges.

    So, my formula looks like =COUNTIF(Rng1, A2&"*") in cell A1

    What I want to do is now drag this formula across so that cell A2 would be =COUNTIF(Rng2, A2&"*") and so on.

    However, the name range value doesn't get filled in series as Rng1, Rng2 when you drag and copy the formula.

    Any ideas to get around this?

  2. #2
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Filling Named Ranges in Series

    You could potentially use the OFFSET function. You'd need to put this into A1, then copy over:

    =COUNTIF(OFFSET(Rng1,0,COLUMN(A1)-COLUMN($A$1)), A2&"*")
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

  3. #3
    Registered User
    Join Date
    08-09-2011
    Location
    Montreal, QC
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Filling Named Ranges in Series

    Quote Originally Posted by davegugg View Post
    You could potentially use the OFFSET function. You'd need to put this into A1, then copy over:

    =COUNTIF(OFFSET(Rng1,0,COLUMN(A1)-COLUMN($A$1)), A2&"*")
    Thank You Sir... this works

+ 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