+ Reply to Thread
Results 1 to 11 of 11

Formula which counts numbers except if the line has a (specific word)

  1. #1
    Registered User
    Join Date
    03-25-2015
    Location
    Sydney
    MS-Off Ver
    Office 13
    Posts
    11

    Formula which counts numbers except if the line has a (specific word)

    Hi All,

    How are you doing,

    I'm making a basic spreadsheet for work. Need some assistance on counting revenue. However want the total revenue to not count it if (the word -"lost" ) is embedded in the cell.

    Can you advise what formula I should use. I tried Sumif, countif and can't seem to get a proper line to work it out.

    So as you can see for Cell I9, the code should reflect the BDMS's count of revenue, but not count if cell G17 states lost.

    Can anyone assist?

    Thank you
    Attached Images Attached Images

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,937

    Re: Formula which counts numbers except if the line has a (specific word)

    it is better if you attach a sample excel file instead of image
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    03-25-2015
    Location
    Sydney
    MS-Off Ver
    Office 13
    Posts
    11

    Re: Formula which counts numbers except if the line has a (specific word)

    See attached.

    Thank you
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-26-2013
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    79

    Re: Formula which counts numbers except if the line has a (specific word)

    Hard to understand what you are asking.

    Have you tried something like this...

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-26-2013
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    79

    Re: Formula which counts numbers except if the line has a (specific word)

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Insert this into I9 and drag down

  6. #6
    Registered User
    Join Date
    03-25-2015
    Location
    Sydney
    MS-Off Ver
    Office 13
    Posts
    11

    Re: Formula which counts numbers except if the line has a (specific word)

    I forgot to mention (won) in G17 needs to count as a positive, would I continue to use sumif for this?
    Last edited by DirtySkillz; 03-25-2015 at 06:20 AM.

  7. #7
    Registered User
    Join Date
    03-25-2015
    Location
    Sydney
    MS-Off Ver
    Office 13
    Posts
    11

    Re: Formula which counts numbers except if the line has a (specific word)

    I tried to utilise the code:

    =SUMIFS($M$17:$M$450,$C$17:$C$450,C9,$G$17:$G$450,"Open",$G$17:$G$450,"Won")

    But that failed. How do I add (won) so it calculates that cell as well if selected?

  8. #8
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,937

    Re: Formula which counts numbers except if the line has a (specific word)

    =SUMIFS($M$17:$M$450,$C$17:$C$450,$C9,$G$17:$G$450, "Won")
    change / edit the "Won" as per your needs

  9. #9
    Registered User
    Join Date
    03-25-2015
    Location
    Sydney
    MS-Off Ver
    Office 13
    Posts
    11

    Re: Formula which counts numbers except if the line has a (specific word)

    Hi Nflsales, I tried to add open to the equation to count that aswell and it failed

    =SUMIFS($M$17:$M$450,$C$17:$C$450,$C9,$G$17:$G$450,"Won",$G$17:$G$450,"Open")

    Attached was the code used. I just need it to pick up (open and won)

    Any suggestions.

  10. #10
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,937

    Re: Formula which counts numbers except if the line has a (specific word)

    Then try
    =SUM(SUMIFS($M$17:$M$450,$C$17:$C$450,$C9,$G$17:$G$450, {"Won","Open"}))

  11. #11
    Registered User
    Join Date
    03-25-2015
    Location
    Sydney
    MS-Off Ver
    Office 13
    Posts
    11

    Re: Formula which counts numbers except if the line has a (specific word)

    OK yes that worked.

    Thank you for your help!

+ 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] Formula that counts specific values, but stops at the point that the value changes.
    By AlphaRaveNZ in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-04-2015, 10:16 PM
  2. [SOLVED] Looking for a formula that counts individual numbers within 1 cell
    By serenitya in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-13-2014, 03:51 PM
  3. [SOLVED] MS Word - Macro that counts the number of "~" between two specific values
    By llfinney in forum Word Programming / VBA / Macros
    Replies: 4
    Last Post: 10-14-2013, 07:06 PM
  4. [SOLVED] How do I delete specific word from every line?
    By mrsewer in forum Excel General
    Replies: 5
    Last Post: 09-10-2013, 12:55 AM
  5. [SOLVED] Remove a specific word line from a word document.
    By Will_2013 in forum Word Formatting & General
    Replies: 4
    Last Post: 05-26-2013, 07:01 PM

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