Jump to content


Photo

Concatenation and table nomenclature

COUNTIF TEXT INDIRECT

  • Please log in to reply
2 replies to this topic

#1 phoenixrizing

phoenixrizing

    Advanced Member

  • Members
  • PipPipPip
  • 122 posts

Posted 20 April 2016 - 03:52 PM

I want to count the number of values within a column belonging to a defined table.

 

The column header is a date. The column reference should change based on the date specified.

 

This is the formulas foundation:

 

COUNTIF(CommRSVPTable[4/20],75)

 

But the concept I'm going for is this:

 

COUNTIF(CommRSVPTable&"["&TEXT(N3,"mm/dd")&"]",75)

 

Despite some variations I've tried, I always get an error.

 

What am I overlooking please?

 

Thanks.



#2 Jonathan

Jonathan

    Forums Administrator

  • Administrators
  • 843 posts

Posted 20 April 2016 - 08:02 PM

Hi Phoenixrizing,

 

Excel will only convert text into cell or table references if you use the INDIRECT function to specifically tell it to do so.

 

You can find a full explanation of the INDIRECT function in the video lesson: Expert Skills Lesson 4-5 Use intersection range names and the INDIRECT function.

 

Applied to your formula, it will look like this:

COUNTIF(INDIRECT("CommRSVPTable["&TEXT(N3,"mm/dd")&"]"),75)

 

I hope this gives you the result you're looking for, but please feel free to reply if you need any more help with this.


Jonathan is part of the professional team who answer Excel-related questions posted on the ExcelCentral.com forums.
Jonathan also tests our courses prior to publication and has worked on all of our ten world bestselling Excel books for Excel 2007, Excel 2010, Excel 2013, Excel 2016 for Windows and Excel 2016 for Apple Mac. Jonathan has also worked on over 850 video lessons for or video courses covering Excel 2007, Excel 2010 and Excel 2013.
As well as extensive Excel knowledge, Jonathan has worked in the IT world for over thirteen years as a programmer, database designer and analyst for some of the world's largest companies.


#3 phoenixrizing

phoenixrizing

    Advanced Member

  • Members
  • PipPipPip
  • 122 posts

Posted 20 April 2016 - 08:49 PM

Excellent, thanks so much, Jonathan! :)







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users