+ Reply to Thread
Results 1 to 4 of 4

#Value error because headline is text

  1. #1
    Registered User
    Join Date
    10-11-2015
    Location
    Munich
    MS-Off Ver
    2010
    Posts
    3

    #Value error because headline is text

    Hello Forum-Members,

    I was wondering if you could help me out with an error. I would like to count number of years in a date colum with a headline:

    Date Headline
    03.06.2010
    01.10.2015
    07.07.2015
    03.06.2011

    2010 = 1, 2015 = 2, 2011 = 1

    I calculate this with the formular SUMMENPRODUKT(--(JAHR(B:B)=D2)) which returns an error message #value as the headline is text. Unfortunately this is part of a bigger table and I need to have the headline in place. Also there will be some new rows that why I use B:B.

    Any ideas?

    Thx, Anton

  2. #2
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: #Value error because headline is text

    Hi, and welcome to the forum. Could you upload an example spreadsheet please?

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: #Value error because headline is text

    Try this array formula**:

    =SUM(IF(ISNUMBER(B:B),IF(YEAR(B:B)=D2,1)))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    10-11-2015
    Location
    Munich
    MS-Off Ver
    2010
    Posts
    3

    Re: #Value error because headline is text

    Awesome! Thx, it works great

+ 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] Multiple sheets sorting without affecting headline sheet
    By Delanos123 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-05-2015, 05:04 AM
  2. How do I add a headline for a chart?
    By GIS2013 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-19-2013, 02:44 AM
  3. Headline data based on table (Offset and Match)
    By pauldaddyadams in forum Excel General
    Replies: 2
    Last Post: 12-01-2011, 04:57 AM
  4. Replies: 2
    Last Post: 10-07-2011, 03:15 AM
  5. Columns match based on headline
    By jmaocubo in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-05-2009, 10:11 AM
  6. repeat headline that are not connected
    By mario in forum Excel General
    Replies: 4
    Last Post: 01-15-2006, 08:25 PM
  7. Lookup in a list of number with a headline
    By Traima in forum Excel General
    Replies: 2
    Last Post: 08-03-2005, 03:05 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