+ Reply to Thread
Results 1 to 7 of 7

SUMPRODUCT need to add " ' " in front of a digit?

  1. #1
    Forum Contributor
    Join Date
    07-29-2005
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    253

    Question SUMPRODUCT need to add " ' " in front of a digit?

    Hi,
    I realized I need to add " ' " to the list with 240 in order for the SUMPRODUCT to count properly. Does any one knows where to find information on why " ' " is needed? Are there any other characters that needed " ' " in front for SUMPRODUCT to work?

    =SUMPRODUCT((Q11:Q83="240")*(Z11:Z83>0)

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: SUMPRODUCT need to add " ' " in front of a digit?

    I assume you are talking about the part

    Q11:Q83="240"

    You are comparing the cells in column Q with a text. If column Q has numbers, you either need to coerce these numbers into text, for example by preceding them with a ' sign, or, you could simply compare with a number

    Q11:Q83=240

    Post a data sample if you have more questions, because this really depends on the data types in your cells. Remote analysis can only go so far...

  3. #3
    Forum Contributor
    Join Date
    07-29-2005
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    253

    Question Re: SUMPRODUCT need to add " ' " in front of a digit?

    Hi, yes you are right. My cell is a number. So it only affect a number cell. Does 20R consider as a number cell?
    Last edited by shg; 04-22-2010 at 09:11 AM. Reason: deleted spurious quote

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: SUMPRODUCT need to add " ' " in front of a digit?

    Does 20R consider as a number cell?
    No. A number is something that you can use in a calculation. Try a mathematical operation on A1 if A1 = 20R - for example =A1/2. If you get a number as a result, then the cell is a number. If you get an error message, then the cell is not a number.

    Numbers are only the digits 0 to 9, with the decimal separator of your regional settings, i.e. either comma or dot. Formatting can add a thousand separator or other characters, but that does not change the underlying data type.

  5. #5
    Forum Contributor
    Join Date
    07-29-2005
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    253

    Re: SUMPRODUCT need to add " ' " in front of a digit?

    oh i see. Thanks for the clarification. I understand now :-)
    Last edited by shg; 04-22-2010 at 09:09 AM. Reason: deleted spurious quote

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: SUMPRODUCT need to add " ' " in front of a digit?

    Lewis, please stop quoting whole posts. It's just clutter.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Forum Contributor
    Join Date
    07-29-2005
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    253

    Re: SUMPRODUCT need to add " ' " in front of a digit?

    oh, sorry.

+ 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