+ Reply to Thread
Results 1 to 5 of 5

COUNTIF in named Table: Column X > Column Y

  1. #1
    Registered User
    Join Date
    07-04-2014
    Location
    England
    MS-Off Ver
    2007
    Posts
    20

    COUNTIF in named Table: Column X > Column Y

    Hi Guys,

    I've got a table with data I need to count. I've successfully done this in a column and set the criteria and it works:

    =COUNTIF(Table5[@[%]],">79%")

    However I'm stuck trying to get the formula criteria to work to count when one column in the table is greater than another

    =COUNTIF(Table5[@£],">Table5[@£LW]")

    As you can see from the formula, it's a named table with headers but the 2nd formula (regardless of which column) doesn't work.

    Any suggestions?

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,077

    Re: COUNTIF in named Table: Column X > Column Y

    This works.
    Define one column in the table as Name1 and another column as Name2
    then use

    =COUNTIF(Name1,">Name1")
    Array formula, use Ctrl-Shift-Enter
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: COUNTIF in named Table: Column X > Column Y

    Try this...

    =COUNTIF(Table5[£],">"&Table5[@£LW])


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Registered User
    Join Date
    07-04-2014
    Location
    England
    MS-Off Ver
    2007
    Posts
    20

    Re: COUNTIF in named Table: Column X > Column Y

    Thanks - I'll try renaming the table as a last resort.

    Special-K the =COUNTIF(Table5[£],">"&Table5[@£LW]) formula generates a return but the Table5[£] reference returns all cells in that column which are over the one cell value in ">"&Table5[@£LW]). So instead of getting a 0 or 1 returns 24 that are above that figure.

  5. #5
    Registered User
    Join Date
    07-04-2014
    Location
    England
    MS-Off Ver
    2007
    Posts
    20

    Re: COUNTIF in named Table: Column X > Column Y

    Got it by adding the @ back in - the rearrangement you suggested of the " did the trick thanks

    =COUNTIF(Table5[@£],">"&Table5[@LW])

+ 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. [SOLVED] Countif in a table column
    By mtma in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-06-2014, 02:37 PM
  2. Replies: 0
    Last Post: 01-14-2014, 06:35 PM
  3. [SOLVED] Defining the column of a named table to use with Match
    By j_Southern in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-04-2013, 11:13 AM
  4. Replies: 11
    Last Post: 07-18-2013, 05:14 PM
  5. [SOLVED] CountIF for dynamic length column using criteria of Named Range
    By saber0091 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-04-2013, 02:04 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