+ Reply to Thread
Results 1 to 4 of 4

Inequalities referencing cells

  1. #1
    Registered User
    Join Date
    04-01-2015
    Location
    Southampton, England
    MS-Off Ver
    2010
    Posts
    2

    Inequalities referencing cells

    Hello,

    I have the formula below:

    =SUMIFS(N$3:N$139, $A$3:$A$139, "Bitterne", $E$3:$E$139, ">=" &$E238, $E$3:$E$139, "<" &$E239)

    I want it to sum when cells E3 to E139 are E238<=x<E239 but it appears to be returning E238<=x<=E239. It works properly when I put the number in rather than the cell reference but I have lots of numbers! Any ideas what I've done wrong/how to fix this?

    Thanks

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Inequalities referencing cells

    What exactly is in E238 and E239 ?
    Are they dates?
    Perhaps they actually contain a TIME value as well.

    Try
    =SUMIFS(N$3:N$139, $A$3:$A$139, "Bitterne", $E$3:$E$139, ">=" &INT($E238), $E$3:$E$139, "<" &INT($E239))

  3. #3
    Registered User
    Join Date
    04-01-2015
    Location
    Southampton, England
    MS-Off Ver
    2010
    Posts
    2

    Re: Inequalities referencing cells

    They are times, yes. I tried what you suggested but it didn't work. I tried changing all the cell formats to numbers instead of times but that didn't work either :/

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Inequalities referencing cells

    If they're TIMEs, then INT was the wrong way to go.
    Testing times for < or > is tricky.
    Especially if you're wanting to look at only the hour and/or minute, but ignore the seconds.
    If you have your cells formatted to show only hh:mm, the seconds value is still actually there.
    So if say E239 is 7:30:15, but shown formatted as only 7:30
    A cell in E3:E139 that is 7:30 would actually qualify as < 7:30:15

    Might help if you posted a sample copy of the file
    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

+ 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] IF function with multiple inequalities
    By ElJefeGordo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-24-2015, 06:00 PM
  2. Set of inequalities
    By simosamkun in forum Excel General
    Replies: 6
    Last Post: 05-22-2014, 05:33 PM
  3. Inequalities question.
    By jaredhawco in forum Excel General
    Replies: 2
    Last Post: 11-03-2008, 02:54 PM
  4. [SOLVED] Graphing inequalities
    By miss meliss in forum Excel General
    Replies: 1
    Last Post: 04-30-2006, 04:50 AM
  5. Replies: 4
    Last Post: 01-28-2005, 02:06 PM

Tags for this Thread

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