+ Reply to Thread
Results 1 to 12 of 12

vlookup plus sumif formula not working

  1. #1
    Registered User
    Join Date
    01-07-2016
    Location
    manchester
    MS-Off Ver
    2007
    Posts
    77

    Angry vlookup plus sumif formula not working

    need to get this formula to work to finaly complete my excel file.
    the ones in green are without the SUMIF added to the formula
    the ones in orange is my difference between the two lines to check if the formula works
    the ones in yellow work with adding the SUMIF to the VLOOKUP formula
    the ones in RED do not work and for the life of me i can not work out why
    PLEASE HELP
    thank you
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: vlookup plus sumif formula not working

    How about a clue as to what is expected from the formula.

    Given that the red cells are empty, we don't even have a non-working formula to try and start guessing from.

    This is wild guess based on the surrounding formulas.

    =VLOOKUP(K23,fulltable,14,1)+SUMIF(RESULTS!S:S,K25,RESULTS!X:X)

    =VLOOKUP(K23,fulltable,15,1)+SUMIF(RESULTS!S:S,K25,RESULTS!Y:Y)
    Last edited by jason.b75; 04-29-2016 at 11:35 AM.

  3. #3
    Registered User
    Join Date
    01-07-2016
    Location
    manchester
    MS-Off Ver
    2007
    Posts
    77

    Re: vlookup plus sumif formula not working

    sorry
    the formula is the same as the one on the right
    it should VLOOKUP the away goals for (gf) total from the LEAGUES tab (=VLOOKUP(K25,fulltable,14,1)
    and also it should SUMIF all the burnley goals for (gf) from the results page.
    it seams it will not add the second half of the formula..
    thank you

  4. #4
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: vlookup plus sumif formula not working

    I think your issue is that most of the values in RESULTS columns Q and R are regarded as text, not numbers, so when you copy them to X:X, they aren't copied as numbers, even though you've attempted to format them that way. Consequently, any summing you do in RESULTS!X:X only considers X12 and X13 as numbers, since only R12 and R13 are considered numbers. Note that =SUM(X4:X13) on RESULTS yields a return of only 2. Your issue is formatting more than faulty formulas.

  5. #5
    Valued Forum Contributor
    Join Date
    01-08-2011
    Location
    Portsmouth, England
    MS-Off Ver
    Excel 2007 to 2016
    Posts
    456

    Re: vlookup plus sumif formula not working

    Have you tried using the SUMIFS formula?

    I'm pretty sure it was available in 2007 version of Excel and you can work on multiple criteria ranges.

  6. #6
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: vlookup plus sumif formula not working

    Follow up to my post above: If you change the formula in RESULTS!X4 from =R4 to =R4+0, then fill down, that should clean up your number issues in RESULTS!X:X.

    EDIT: Ditto with Y:Y

  7. #7
    Registered User
    Join Date
    01-07-2016
    Location
    manchester
    MS-Off Ver
    2007
    Posts
    77

    Re: vlookup plus sumif formula not working

    the gf cell should add up to 37 as the on the results tab there is 7 goals to add onto it
    this formula adds it up to 32...
    and the other for the next cell adds it up to 21..

  8. #8
    Registered User
    Join Date
    01-07-2016
    Location
    manchester
    MS-Off Ver
    2007
    Posts
    77

    Re: vlookup plus sumif formula not working

    just checked this and it says the whole columns are in number form..

  9. #9
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: vlookup plus sumif formula not working

    Your/Jason.b75's formulas on FIXTURES are fine. It's the data in RESULTS causing the problem. Your goal values look like numbers, but are treated as text. Try the changes in post#6.

  10. #10
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: vlookup plus sumif formula not working

    Quote Originally Posted by jono121ukk View Post
    just checked this and it says the whole columns are in number form..
    Column X is formatted as number, but the formula in column X refers to column R, column R contains numbers formatted as text, so the values in column X will be text unless you use a coercion method such as the one suggested by cantosh in post #6.

  11. #11
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: vlookup plus sumif formula not working

    Here's an upload with the changes, which might make what Jason and I are proposing clearer. Note that the meaningful changes are in columns G, H, X and Y of RESULTS, which fixes the mathematical issues you were having on FIXTURES.

  12. #12
    Registered User
    Join Date
    01-07-2016
    Location
    manchester
    MS-Off Ver
    2007
    Posts
    77

    Re: vlookup plus sumif formula not working

    thank you to all of you
    finaly i can finish this predictor!!

+ 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] My formula sumif/indirect formula is working perfect..except everything is 1 row off!
    By Nyolls in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-23-2015, 01:12 PM
  2. [SOLVED] SUMIF Formula not working - returns zero which is not correct
    By pongmeister in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-26-2015, 09:41 PM
  3. [SOLVED] Sumif with an index formula not working properly
    By Panfergrrl18 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-30-2015, 12:49 AM
  4. [SOLVED] Sumif formula across dates not working correctly
    By Vaslo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-23-2014, 06:17 PM
  5. [SOLVED] SUMIF formula is not Working
    By RobOMor in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-24-2013, 03:51 AM
  6. SUMIF formula not working
    By bopsgtir in forum Excel General
    Replies: 4
    Last Post: 12-21-2010, 02:07 PM
  7. vlookup not working, sumif does.
    By Stripey in forum Excel General
    Replies: 1
    Last Post: 12-10-2007, 03:01 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