Results 1 to 29 of 29

If cell has numbers and specific text, sum numbers with multiple criteria

Threaded View

  1. #1
    Registered User
    Join Date
    05-25-2022
    Location
    adelaide
    MS-Off Ver
    2016
    Posts
    34

    If cell has numbers and specific text, sum numbers with multiple criteria

    Hi,

    My table has multiple cells with text and values in the same cell, I want to be able to sum the numbers that are in the same cell as the text "SP", but only when those cells are in the same row as the "Attack" row and also broken down into different the different stances on the overview page.

    I have been trying the SUMPRODUCT formulas and believe I am close with this:
    =SUMPRODUCT((INDIRECT($E$5&"[Style]")=G8)*(INDIRECT($E$5&"[Attack/Defense]")="Attack")*(INDIRECT($E$5&"[[1]:[13]]")<>"")*(INDIRECT($E$5&"[[1]:[13]]")<>"MISS")*(LEFT(INDIRECT($E$5&"[[1]:[13]]"),2)="SP"),(IF((LEFT(INDIRECT($E$5&"[[1]:[13]]"),2)="SP"),(SUBSTITUTE(INDIRECT($E$5&"[[1]:[13]]"),"SP","")+0),0)))

    But I keep getting #value error.

    If I analyse the two arrays in this formula with F9, it gives the correct values and both seem to be the same size but it wont do the final calculation?

    Any help would be much appreciated!

    Sample worksheet below: Refer to formulas in the "special hits" columns of the overview page.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Find specific Numbers in a cell with a lot of text
    By luca.pe in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 05-13-2022, 04:52 AM
  2. Multiple criteria for Conditional Formatiing with numbers and text
    By Bdubsard in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-20-2022, 10:23 AM
  3. [SOLVED] Extract the text and numbers basis on specific numbers included
    By Neilesh Kumar in forum Excel General
    Replies: 6
    Last Post: 08-26-2018, 01:34 PM
  4. [SOLVED] Summation of Numbers with Text & Numbers in Multiple Cells with Multiple Criteria...
    By e4excel in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 09-14-2017, 01:46 PM
  5. [SOLVED] Average of specific cells with numbers determined by multiple criteria
    By holycrapitsaduck in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 07-27-2016, 10:40 AM
  6. [SOLVED] Add numbers based on criteria from specific cell on same row
    By nitreb in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-21-2013, 05:13 PM
  7. [SOLVED] How to change numbers to negative numbers specific with a text
    By Patnaik in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-11-2012, 07:22 AM

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