+ Reply to Thread
Results 1 to 3 of 3

SUMIF+LEN based on criteria

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-03-2014
    Location
    Belgrade
    MS-Off Ver
    2010
    Posts
    348

    SUMIF+LEN based on criteria

    Hello folks,
    I am trying to figure out this formula but still haven't found solution
    I will try to explain my problem here if you don't want to download excel file.

    HTML Code: 
    So, I need to SUM only cells where I have "x" or "xx". In this case my SUM should give me =3 as total.

    Thanks in advance!

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,082

    Re: SUMIF+LEN based on criteria

    There is no file to download.

    If you want o post a file use the Go Advanced option at the bottom of the page then scroll down to Manage Attachments as the "paperclip" method does not work on this forum.

    Your problem doesnt make sense with what you've posted.
    Your subject title says SUMIF+LEN yet your description of the problem does not refer to LEN.
    In your description you say you want to SUM and the total should be 3 but there's nothing to suggest that it should be 3.
    At present it looks like you just want to COUNT not SUM.

    Check your posting again.

    Assuming there is some numeric data missing from your post does this work?

    =SUMIF(B3:E3,B2:E2,"x")+SUMIF(B3:E3,B2:E2,"xx")
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: SUMIF+LEN based on criteria

    Try this
    Enter in F1
    Formula: copy to clipboard
    =LEN(B1&C1&D1&E1)-LEN(SUBSTITUTE(B1&C1&D1&E1,"x",""))

    v B C D E F
    1 x xx p zz 3
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ 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] Sumif Based on criteria
    By masond3 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-03-2013, 04:26 AM
  2. [SOLVED] SumIf based on two criteria
    By Mark Williams in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-06-2005, 12:05 PM
  3. [SOLVED] SumIf based on two criteria
    By Domenic in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 07:05 AM
  4. [SOLVED] SumIf based on two criteria
    By Domenic in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 06:05 AM
  5. SumIf based on two criteria
    By Domenic in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  6. [SOLVED] SumIf based on two criteria
    By Mark Williams in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  7. SumIf based on two criteria
    By Mark Williams in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  8. SumIf based on two criteria
    By Mark Williams in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 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