+ Reply to Thread
Results 1 to 4 of 4

Sumifs

  1. #1
    Registered User
    Join Date
    09-30-2015
    Location
    Brussels
    MS-Off Ver
    2013
    Posts
    9

    Sumifs

    Hi from Belgium!

    Could an expert please have a look at the attached document?

    sample file.xlsx

    On the left (columns A to I), a list of hotel reservations for a specific company.

    On the right, I would like to summarize the revenue generated by this specific company on each stay date.

    My formula in column L is working, but not the one in column M (it gives wrong values)

    Eg. on the 01/09/2014, in cell M2, I would like the result to be 20.75 (there is one reservation that stayed on the 01/09, and the average room rate (REAL) in column I is equal to 20.75.

    This is my formula:
    =SUMIFS(I:I,A:A, "<="&K2,B:B, ">="&K2)

    Could someone have a look?

    Thanks a lot!

    Kind Regards,

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Sumifs

    As you currently have your formula setup, the SUMIFS formula is not giving incorrect values. That is because the dates in cells A2:B7 all satisfy the conditions you stated (1 Sept. >= 31 Aug. and 1 Sept / 1 Sept. <= 1 Sept. and 2 Sept.)

    What needs retooling is your logic behind your formula.
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Registered User
    Join Date
    09-30-2015
    Location
    Brussels
    MS-Off Ver
    2013
    Posts
    9

    Re: Sumifs

    Quote Originally Posted by mcmahobt View Post
    As you currently have your formula setup, the SUMIFS formula is not giving incorrect values. That is because the dates in cells A2:B7 all satisfy the conditions you stated (1 Sept. >= 31 Aug. and 1 Sept / 1 Sept. <= 1 Sept. and 2 Sept.)

    What needs retooling is your logic behind your formula.
    Thanks a lot for your help!

    What formula should I put if I do not want to take into account the cells from A2:B6?
    These guests have stayed the night of the 31/08, not the night of the 01/09.

    Thanks again!!!

    Adrien

  4. #4
    Registered User
    Join Date
    10-12-2015
    Location
    Bristol, UK
    MS-Off Ver
    Office 365
    Posts
    39

    Re: Sumifs

    Adrien,

    You could try changing the formula in column L to:

    Please Login or Register  to view this content.
    This simply removes the '=' from the second condition.

    The logic is that this sums the average room rate where arrival date is on or before that night, and departure date is after (but not on) that night.

    I hope this helps.

+ 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] Looking for something simpler than SUMIFS - SUMIFS
    By YAbdelaal in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-27-2014, 10:38 AM
  2. SUMIFS Puzzle - Trying to avoid adding multiple SUMIFS to get valid result
    By haldavid in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-09-2013, 03:42 PM
  3. [SOLVED] Sumifs, problem with the formula: =sumifs(c10:c200,<=today(),0)
    By Faustocruz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-08-2012, 04:26 AM
  4. How can i use SUMIFS
    By Patnaik in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 09-14-2012, 01:02 AM
  5. [SOLVED] IF and/or SUMIFS
    By Faustocruz in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 08-12-2012, 09:12 PM
  6. sumifs
    By jw01 in forum Excel General
    Replies: 5
    Last Post: 03-25-2011, 02:56 PM
  7. SUMIFS Help
    By DpriceHmark in forum Excel General
    Replies: 3
    Last Post: 03-24-2011, 03:56 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