+ Reply to Thread
Results 1 to 5 of 5

SUMPRODUCT with multiple items + double existing values

  1. #1
    Forum Contributor
    Join Date
    03-24-2009
    Location
    Vietnam
    MS-Off Ver
    Excel 2010
    Posts
    382

    SUMPRODUCT with multiple items + double existing values

    Hi,

    I am analyzing room departures and the corresponding email capture from my system generated report. Usually, there should be one guest per room and it should be listed on my report as one checkout. Depending on if that person has an email address on file, I can calculate my email capture. Now the situation is that there are for example 3 person staying in a room, shown on the report as 3 departures of which we capture one email address, therefore the score shows 33% email capture. This is not correct because as long as I can get one email per room its already a full capture for me.

    Currently I am using this formula to capture the checkouts with email in a specific month:

    Please Login or Register  to view this content.
    I somehow need excel to check if the arrival date + room number is the same, and if yes calculate the result as ONE room departure, then check if either of the records has an email address on file.

    Any ideas on how I can do this?
    Thanks,
    A2k

    Room Departure Sample.xlsx

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: SUMPRODUCT with multiple items + double existing values

    I notice that the file you uploaded indicates 2007 or later (.xlsx), but your profile says 2003. Please update your profile as necessary, members tailor questions based on your excel version
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: SUMPRODUCT with multiple items + double existing values

    Try..

    =SUMPRODUCT((Data!$C$2:$C$10<>"")*(Data!$J$2:$J$10<>"")*(MONTH(Data!$D$2:$D$10)=1)/COUNTIFS(Data!$C$2:$C$10,Data!$C$2:$C$10&"",Data!$J$2:$J$10,Data!$J$2:$J$10&""))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: SUMPRODUCT with multiple items + double existing values

    Delete post
    Last edited by micope21; 07-27-2014 at 12:28 PM.
    To help you by my post? it would be nice to click on to say "Thank you".
    If you are happy with a solution to your problem?
    Click Thread Tools above your first post,
    select "Mark your thread as Solved".

  5. #5
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: SUMPRODUCT with multiple items + double existing values

    Delete post
    Last edited by micope21; 07-27-2014 at 12:28 PM.

  6. #6
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: SUMPRODUCT with multiple items + double existing values

    Hi

    Lookup date each month

    You got 2 choice to use?
    Sumproduct do slow down??
    where countifs is faster than Sumproduct

    Summary D4
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copy cross
    or
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copy cross

    E-mail

    Summary D5
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copy cross
    or
    countifs
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copy cross

    Also Summary D3 date I change it from 'Jan 14 to 01/01/2014 do the same till Dec 2014

    See the file!!

  7. #7
    Forum Contributor
    Join Date
    03-24-2009
    Location
    Vietnam
    MS-Off Ver
    Excel 2010
    Posts
    382

    Re: SUMPRODUCT with multiple items + double existing values

    Thanks alot micope, this is awesome stuff. Not a fan of the helper column though, but it works flawlessly either way

+ 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. Double Index on Multiple Values - Please help
    By tanna in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-18-2014, 10:23 AM
  2. [SOLVED] Sumproduct to count items over multiple sheets
    By nickmax1 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-26-2013, 10:07 PM
  3. Sumproduct to count items over multiple sheets.
    By nickmax1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-26-2013, 10:27 AM
  4. Replies: 10
    Last Post: 12-19-2012, 03:07 PM
  5. Replies: 3
    Last Post: 07-10-2012, 01:49 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