Results 1 to 3 of 3

[SOLVED] INDIRECT function with COUNTIF

Threaded View

  1. #1
    Forum Contributor
    Join Date
    05-26-2004
    Location
    Halifax, UK
    MS-Off Ver
    Office 365 v2402
    Posts
    263

    [SOLVED] INDIRECT function with COUNTIF

    I'm trying to use the INDIRECT function to build what would normally be a fairly straight-forward formula:

    =COUNTIF(indirect("$K$5:$K$" &X1& ",V5")

    In cell X1 there is simply a number which is the last used row on the sheet (determined by a bit of VBA). I've parsed the formula for the INDIRECT section and get:

    $K$5:$K$275149,V5

    So I don't see why this doesn't work. It should tell excel to count how many times the contents of cell V5 occur in the range K5:K275149, but no matter how many variations I try it won't accept the formula. Anyone got any ideas?

    Cheers
    Last edited by TheRobsterUK; 05-12-2017 at 10:37 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Countif and Indirect function
    By KK1234 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-21-2015, 01:09 PM
  2. Cant get =countif(indirect(... function to drag across columns
    By BRAD.HALL in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-29-2015, 01:06 AM
  3. [SOLVED] INDIRECT Function with multiple sheets - SUMIF, INDIRECT & MATCH
    By DJDRU in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-07-2014, 08:42 AM
  4. Need Help with COUNTIF and INDIRECT function...
    By ckent0715 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-27-2014, 01:11 PM
  5. [SOLVED] 2 data Range using COUNTIF with INDIRECT and MIN IF with INDIRECT,
    By david gonzalez in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 11-29-2013, 08:10 PM
  6. COUNTIF with INDIRECT Function
    By somesoldiers in forum Excel General
    Replies: 9
    Last Post: 01-20-2012, 12:22 PM
  7. INDIRECT COUNTIF's??
    By alymcmorland in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-09-2005, 07:55 AM

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