+ Reply to Thread
Results 1 to 6 of 6

SUMPRODUCT formula returning #NUM! error message

  1. #1
    Registered User
    Join Date
    09-17-2012
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    20

    SUMPRODUCT formula returning #NUM! error message

    I'm sorry for being a huge nightmare.

    I have two sheets running within the same workbook:

    All Information

    and

    Data Breakdown


    Now, in "All Information", Column B:B is "Ethnicity" and Column G:G is length of time of wait for interview.

    So, I am wanting to find the number of occurences each ethnicity has waited under 6hrs, over 6hrs and over 12hrs. The timing of interviews are formatted to hh"hrs",mm"mins" so for example 1 hour 23 minutes would read as: "1hr,23mins" (I'm not sure if this makes a difference)

    My first formula I'm trying to do this for under 6hrs is:

    =SUMPRODUCT(('All Information'!G:G="<06hrs,00mins")*('All Information'!B:B="White"))



    I've also tried formatting the cells as [h]:mm using this formula:

    =SUMPRODUCT(('All Information'!G:G="<6:00")*('All Information'!B:B="White"))


    Both present back #NUM

    Can anybody offer guidance where I'm going wrong?

    Thank you.
    Last edited by inneedofhelp1; 11-06-2012 at 09:39 AM. Reason: Change in title

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,600

    Re: Can't work out what's wrong with this formula

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.


  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: SUMPRODUCT formula returning #NUM! error message

    you cant use whole column references pre excel 2007 shorten it a bit to

    =SUMPRODUCT(('all information'!G1:G1000<=VALUE("06:00"))*('all information'!B1:B1000="White"))
    Last edited by martindwilson; 11-06-2012 at 10:01 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    09-17-2012
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: SUMPRODUCT formula returning #NUM! error message

    Thank you very much! It's now returning the value of 0 which is strange ;/ But thank you very much for that pointer, I shall keep it in mind xxx

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: SUMPRODUCT formula returning #NUM! error message

    try
    =SUMPRODUCT(('all information'!G1:G1000<=VALUE("06:00"))*('all information'!B1:B1000="White"))

  6. #6
    Registered User
    Join Date
    09-17-2012
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: SUMPRODUCT formula returning #NUM! error message

    Omg. I think I want to marry you! Thank you SO much!! I really appreciate your help xx That's absolutely perfect. xx

+ 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