+ Reply to Thread
Results 1 to 5 of 5

Column Has Text and Numbers, Need To SUMIF Only Numbers

  1. #1
    Registered User
    Join Date
    12-02-2006
    Posts
    51

    Column Has Text and Numbers, Need To SUMIF Only Numbers

    I have a column with text and numbers. The numbers are both negative and positive. I want to create a conditional statement in a SUMIF function that pulls in all numbers (negative and positive). A >0 or <0 will not work. Is there a statement that will either skip cells with text, or will add both negative and positive numbers.

    Thank you for your help.

  2. #2
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191
    What is the criteria that you want SUMIF to test for? If it is just whether the value has a number, the Sum function will work just fine, as it ignores text.

  3. #3
    Registered User
    Join Date
    12-02-2006
    Posts
    51
    I apologize for not being more clear.

    Column B has a combination of positive numbers, negative numbers, and text (specifically "NA")

    Column A has numbers only in it.

    I need the sum of the numbers in column A only if a number appears in the corresponding cell in column B.

    Thanks again for your help

  4. #4
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191
    =sumproduct(--(isnumber(b3:b5)),a3:a5)

  5. #5
    Registered User
    Join Date
    12-02-2006
    Posts
    51
    Looks like that did the trick. Thanks Darkyam

+ 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