+ Reply to Thread
Results 1 to 17 of 17

Sum all the values in G4:G21 where they match what is less than or equal to L3 in E4:E21

  1. #1
    Registered User
    Join Date
    08-30-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel for Mac 2011
    Posts
    12

    Sum all the values in G4:G21 where they match what is less than or equal to L3 in E4:E21

    Hi!
    I'm a beginner in Excel, and learning with the help of Google and Youtube.
    I would like your help with solving:
    Sum all the values in G4:G21 where they match what is less than or equal to cell L3 in E4:E21
    I have tried and failed (= 0)
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    is working. But I got several entries in E4:E21 that meet the criteria (<=L3)....

    Please help me solve this

    Thanks in advance

    //Peter

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Sum all the values in G4:G21 where they match what is less than or equal to L3 in E4:E

    Hello Peter,

    If you use "<=L3" will consider like text not a cell L3. So change them to "<="&L3

    =SUMIF(E4:E21;"<="&L3;G4:G21
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Registered User
    Join Date
    10-10-2013
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Sum all the values in G4:G21 where they match what is less than or equal to L3 in E4:E

    Try:

    =SUMIFS(G4:G21,E4:E21,"<="&L3)

  4. #4
    Registered User
    Join Date
    08-30-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel for Mac 2011
    Posts
    12

    Re: Sum all the values in G4:G21 where they match what is less than or equal to L3 in E4:E

    Quote Originally Posted by Haseeb A View Post
    Hello Peter,

    If you use "<=L3" will consider like text not a cell L3. So change them to "<="&L3

    =SUMIF(E4:E21;"<="&L3;G4:G21
    Thanks Haseeb

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Sum all the values in G4:G21 where they match what is less than or equal to L3 in E4:E

    Here is yet another way:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  6. #6
    Registered User
    Join Date
    08-30-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel for Mac 2011
    Posts
    12

    Re: Sum all the values in G4:G21 where they match what is less than or equal to L3 in E4:E

    Thanks newdoverman and bschwartz_1

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Sum all the values in G4:G21 where they match what is less than or equal to L3 in E4:E

    You are welcome.

    As you can see, in Excel, there is often more than one way to solve a problem.

  8. #8
    Registered User
    Join Date
    08-30-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel for Mac 2011
    Posts
    12

    Re: Sum all the values in G4:G21 where they match what is less than or equal to L3 in E4:E

    I want to elaborate the formula one step further I now wonder why this formula
    Please Login or Register  to view this content.
    is not working (i.e) gives error, while this one
    Please Login or Register  to view this content.
    Best regards and thanks in advance
    //Peter

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Sum all the values in G4:G21 where they match what is less than or equal to L3 in E4:E

    Your formulae have named ranges that we cannot evaluate without seeing your workbook.

  10. #10
    Registered User
    Join Date
    08-30-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel for Mac 2011
    Posts
    12

    Re: Sum all the values in G4:G21 where they match what is less than or equal to L3 in E4:E

    I see. I upload the workbook. I hope itīs OK that itīs in Swedish

    //Peter
    Attached Files Attached Files

  11. #11
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Sum all the values in G4:G21 where they match what is less than or equal to L3 in E4:E

    The formula where the DATEVALUE(DATUM) is present, the name DATUM has not been defined as a named range.

  12. #12
    Registered User
    Join Date
    08-30-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel for Mac 2011
    Posts
    12

    Re: Sum all the values in G4:G21 where they match what is less than or equal to L3 in E4:E

    Thx newdoverman, but I canīt get it working, even if I define it
    In actually, I can't get it working at all with DATAVALUE()

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  13. #13
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Sum all the values in G4:G21 where they match what is less than or equal to L3 in E4:E

    Datevalue should have a single value to evaluate .

    Datevalue converts a date in the form of text to a number that represents the date in Microsoft Excel date-time code.

  14. #14
    Registered User
    Join Date
    08-30-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel for Mac 2011
    Posts
    12

    Re: Sum all the values in G4:G21 where they match what is less than or equal to L3 in E4:E

    Thx newdoverman
    Datevalue should have a single value to evaluate
    But isnīt that I try to do with
    =IF(DATEVALUE(D4)<=data!F2;"Y";"No")
    --> and this donīt work

    Are there any workaround to solve that I donīt first need to create a new column with the dates converted to numbers?

    //Peter

  15. #15
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Sum all the values in G4:G21 where they match what is less than or equal to L3 in E4:E

    If DATA!f2 is a date, why not just use =IF(D4<=data!f2,"Y","No")

    If data!f2 isn't a date, what is it? Without seeing your workbook, it is difficult to tell what is going on.

  16. #16
    Registered User
    Join Date
    08-30-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel for Mac 2011
    Posts
    12

    Re: Sum all the values in G4:G21 where they match what is less than or equal to L3 in E4:E

    both data!F2 and D4 is date. The difference is that F2 is formated in "swedish date" but the date in D4 is formated in USA/English.
    Maybee the easiest solution is to format data!F2 as USA/English

  17. #17
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Sum all the values in G4:G21 where they match what is less than or equal to L3 in E4:E

    That is likely the problem. One thing that I do when trouble-shooting date problems is to change all problem dates to the date serial numbers by selecting GENERAL as the format then when the problems have been sorted out, change the format to what I need.

+ 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] Match all three to equal name
    By pAPERCLIP20 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-12-2013, 08:27 AM
  2. [SOLVED] If values in a column are equal, then need to calc average of values in other columns
    By engineerlady in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-15-2013, 02:33 PM
  3. Replies: 17
    Last Post: 12-05-2012, 09:01 PM
  4. Replies: 16
    Last Post: 11-20-2012, 11:32 AM
  5. match The values that are opposite and not equal
    By samn in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-12-2011, 02:41 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