+ Reply to Thread
Results 1 to 4 of 4

Count #s in One Range If Text In Another Range is Equal or Not Equal to Specific Text

  1. #1
    Registered User
    Join Date
    01-11-2012
    Location
    Elgin, IL
    MS-Off Ver
    Excel 2006
    Posts
    29

    Count #s in One Range If Text In Another Range is Equal or Not Equal to Specific Text

    I am using Excel 2010. I need to calculate two totals from the numbers in one range, depending on if the text in another range is equal or not equal to specific text. The first total from the first range is based on if the text in the 2nd range is equal to Elgin. The second total from the first range is based on if the text in the 2nd range is not equal to Elgin.

    I know I can resort the data to get the totals I need but I am sure that there is a formula that can give me the desired results.

    Any suggestions? I'd really appreciate some help.

    Thanks, MLCall

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Count #s in One Range If Text In Another Range is Equal or Not Equal to Specific Text

    I hope this is what you were looking for:

    To sum column A values when column B = Elgin, try this:
    =SUMIF($B$1:$B$10,"Elgin",$A$1:$A$10)

    To sum column A values when column B <> Elgin, try this:
    =SUMIF($B$1:$B$10,"<>Elgin",$A$1:$A$10)

    Adjust ranges to suit your needs.

    - Moo

  3. #3
    Registered User
    Join Date
    01-11-2012
    Location
    Elgin, IL
    MS-Off Ver
    Excel 2006
    Posts
    29

    Re: Count #s in One Range If Text In Another Range is Equal or Not Equal to Specific Text

    Moo,

    This worked great. I appreciate your help. I added to your rep!

    MLCall

  4. #4
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Count #s in One Range If Text In Another Range is Equal or Not Equal to Specific Text

    Thank you, ML. It is always appreciated!
    Glad I could help.

    - Moo

+ 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