+ Reply to Thread
Results 1 to 13 of 13

The Formula you typed contains an error

  1. #1
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    403

    The Formula you typed contains an error

    =SUMIF(F7:F44=A62,IF(G7:G44="won"*3),IF(G7:G44="Drew"*1)

    f7:f44 is teams that has to match a62

    g7:g44 is won, drew, lost if won 3 points and if drew 1 point

    the formula above isnt working as when i input it it says "The Formula you typed contains an error" but i cant see where
    Last edited by Patcheen; 05-07-2017 at 09:32 AM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: The Formula you typed contains an error

    When I type in your formula it stops on the "*3"

    =SUMIF(F7:F44=A62,IF(G7:G44="won"*3),IF(G7:G44="Drew"*1)

    Start looking there. Also if you click on the Formulas Tab and then on Evaluate, you can step through your formula to find the problem yourself.

    http://www.dummies.com/software/micr...2010-formulas/ is an example of the screen you should use.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,240

    Re: The Formula you typed contains an error

    Try

    =SUMPRODUCT(($F$7:$F$44=$A62)*(($G$7:$G$44="Won")*3+($G$7:$G$44="Draw")))

  4. #4
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    403

    Re: The Formula you typed contains an error

    Thank you John that works a treat as usual - Thank you

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,240

    Re: The Formula you typed contains an error

    FYI: an alternative ....

    =COUNTIFS(F:F,"=" &A62,G:G,"=won")*3+COUNTIFS(F:F,"=" &A62,G:G,"=draw")

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  6. #6
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    403

    Re: The Formula you typed contains an error

    The above works perfect to do what i want but i need it to ignore "Upcoming"

    whisch is in column g also upcoming only changes ones a game is finished

    =SUMPRODUCT(($F$7:$F$44=$A62)*(($G$7:$G$44="Won")*3+($G$7:$G$44="Draw"))) - where and how would i get it to ignore $G$7:$G$44="upcoming?
    "

  7. #7
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: The Formula you typed contains an error

    Quote Originally Posted by Patcheen View Post
    The above works perfect to do what i want but i need it to ignore "Upcoming"

    whisch is in column g also upcoming only changes ones a game is finished

    =SUMPRODUCT(($F$7:$F$44=$A62)*(($G$7:$G$44="Won")*3+($G$7:$G$44="Draw"))) - where and how would i get it to ignore $G$7:$G$44="upcoming?
    "
    If the value in column G is "Won" or "Draw" then it won't be "Upcoming" and will therefore be ignored.
    Last edited by 63falcondude; 05-17-2017 at 03:19 PM.

  8. #8
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    403

    Re: The Formula you typed contains an error

    Thank you but no joy it turns all values to 0

  9. #9
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    403

    Re: The Formula you typed contains an error

    its counting the "upcoming" as a draw which is 1 point

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,240

    Re: The Formula you typed contains an error

    Try

    =SUMPRODUCT(($F$7:$F$44=$A62)*($G$7:$G$44<>"Upcoming")*(($G$7:$G$44="Won")*3+($G$7:$G$44="Draw")))

  11. #11
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    403

    Re: The Formula you typed contains an error

    Thank you but no joy it turns all values to 0

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,240

    Re: The Formula you typed contains an error

    Something is wrong in your posting: we test column G for won or draw so the test for Upcoming is redundant (I was obviously asleep when I read the post)!

    And this was pointed out in post #7.

    Post a file because the problem it is not as you describe it.
    Last edited by JohnTopley; 05-17-2017 at 05:16 PM.

  13. #13
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    403

    Re: The Formula you typed contains an error

    it was my fault i had made an error on my part ur original formula works as it should my fault i only realised when i stripped it down after coping the sheet to a new book an then saw the error thank you for every thing

+ 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] Subroutine help required - 'The formula you typed contains an error'
    By AuntyJean in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-23-2015, 02:41 PM
  2. [SOLVED] Inputbox error message. Formula you typed contains an error.
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-09-2013, 02:25 PM
  3. Error in formula - "Formula typed contains error"
    By mstevenson in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 11-27-2012, 01:15 PM
  4. The Formula You Typed Contains An Error
    By Strill in forum Excel General
    Replies: 2
    Last Post: 04-21-2011, 08:38 PM
  5. formula typed contains an error
    By associates in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-11-2006, 12:50 PM
  6. Replies: 5
    Last Post: 08-16-2005, 12:05 PM
  7. [SOLVED] How to make error handle for mis-typed variable?
    By RB Smissaert in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 05-01-2005, 06:06 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