+ Reply to Thread
Results 1 to 23 of 23

3 way look up involving dates.

  1. #1
    Registered User
    Join Date
    07-19-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 2007
    Posts
    89

    3 way look up involving dates.

    Good morning and thank you for your time.

    I have a query which I am struggling to get my head around, I felt I had an index,match to work however I dont.

    I have a table with headings similar to below

    Handler Name Call volume in Call volume out



    The information is on a "raw data" worksheet.

    what I need to do is have Call Volume data automatically pull through based on the following conditions.

    Name of Handler, Call Volume and between 2 dates (there are data on the data pull)

    what is the cleanest formula to work this out?


  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: 3 way look up involving dates.

    Good morning to you too.

    Be sure that best way to describe your problem is to upload a sample workbook.

    Be sure that all sensitive data removed, showing what data you are working with, a few examples of what your expected outcome is, and how you arrived at that.

    To attach a small sample workbook.

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

    View Pic
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    07-19-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 2007
    Posts
    89

    Re: 3 way look up involving dates.

    Hopefully this makes sense.


    Thanks

    (forgot it was protected.. to save space.. Password is.. erm password)
    Attached Files Attached Files
    Last edited by Raanan; 09-03-2013 at 05:08 AM. Reason: added password

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: 3 way look up involving dates.

    Perhaps to unprotect your sheet first?

  5. #5
    Registered User
    Join Date
    07-19-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 2007
    Posts
    89

    Re: 3 way look up involving dates.

    d'oh. its password

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: 3 way look up involving dates.

    Not able to open it...

  7. #7
    Registered User
    Join Date
    07-19-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 2007
    Posts
    89

    Re: 3 way look up involving dates.

    third time lucky...

    I think my head has mashed
    Attached Files Attached Files

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: 3 way look up involving dates.

    Quote Originally Posted by Raanan View Post
    third time lucky...

    I think my head has mashed
    Third time is ok!

    Do you need to add these?

    =SUMPRODUCT((Combined!$A$2:$A$10=$A4)*(Combined!$D$2:$D$10>=$A2)*(Combined!$D$2:$D$10<=$B2)*(Combined!$C$2:$C$10))

    OR just to count the occasions?

    =SUMPRODUCT((Combined!$A$2:$A$10=$A4)*(Combined!$D$2:$D$10>=$A2)*(Combined!$D$2:$D$10<=$B2))

  9. #9
    Registered User
    Join Date
    07-19-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 2007
    Posts
    89

    Re: 3 way look up involving dates.

    oh ok yeh.. ha perfect..

    Now I have them I can work with them. Thanks fotis.. (ps wanna do this work for me its driving me nuts.)

    Not sure I will ever fully understand SumProdcut.. but ill take it



    And sorry as a dunce, how does THAT formula know to look at "calls out" volume..
    Last edited by Raanan; 09-03-2013 at 05:38 AM.

  10. #10
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: 3 way look up involving dates.

    Quote Originally Posted by Raanan View Post
    oh ok yeh.. ha perfect..

    Now I have them I can work with them. Thanks fotis.. (ps wanna do this work for me its driving me nuts.)

    Not sure I will ever fully understand SumProdcut.. but ill take it



    And sorry as a dunce, how does THAT formula know to look at "calls out" volume..
    =SUMPRODUCT((Combined!$A$2:$A$10=$A4)*(Combined!$D$2:$D$10>=$A2)*(Combined!$D$2:$D$10<=$B2)*(Combined!$C$2:$C$10))

    Formula knows nothing! We tell to the formula where to look for aur results..See the red part of the formula.

    SUMPRODUCT is a great excel tool! If you want to learn it studh the Bob Philips site. Is the best!!

    So in this case..


    You are welcome and thanks for the feed back.

    As that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thank you.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  11. #11
    Registered User
    Join Date
    07-19-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 2007
    Posts
    89

    Re: 3 way look up involving dates.

    Done and done.. feedback/rep provided and I understand that..

    Sorry Im sounding really daft now.. The second formula:
    =SUMPRODUCT((Combined!$A$2:$A$10=$A4)*(Combined!$D$2:$D$10>=$A2)*(Combined!$D$2:$D$10<=$B2))

    This doesn't have the "row to look at" so if say the call Volume in was empty but out wasnt.. Would I have to adjust the formula for this?

    Not sure if a different question as such Im trying to get my head around sum prod

  12. #12
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: 3 way look up involving dates.

    It's the first part of the formula that gives you this.

    =SUMPRODUCT((Combined!$A$2:$A$10=$A4)*(Combined!$D$2:$D$10>=$A$2)*(Combined!$D$2:$D$10<=$B$2))

    We tell to the formula to find the results only for Cell A4 that there exists John Name..! The other 2 conditions are to find the days that we need...

    Put it in D4 and copy down..

  13. #13
    Registered User
    Join Date
    07-19-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 2007
    Posts
    89

    Re: 3 way look up involving dates.

    sorry I must be completely lost on this (as i usually am when I find a new excel formula)

    Can you repost an example as to how the table would look auto populating the amount of call volumes in and call volumes out for john..

    Just so I can get my head around it.


    I do apologise that i may seem a bit of a dunce, perhaps Im looking too lateral IOm just trying to work out how i would put that formula in the different cells to complete the table that's all


    SO I understand how to ADD the cells together thats great..

    What I dont get is how to get the formula to count how many times john appears in call volume in. If call volume in was blank and call volume out wasnt?
    Last edited by Raanan; 09-03-2013 at 06:11 AM.

  14. #14
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: 3 way look up involving dates.

    No worries..

    To be more clear we'll add 1 more condition..

    =SUMPRODUCT((Combined!$A$2:$A$10=$A4)*(Combined!$D$2:$D$10>=$A$2)*(Combined!$D$2:$D$10<=$B$2)*(Combined!B$2:B$10<>""))

    See the example.


    Comments?
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    07-19-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 2007
    Posts
    89

    Re: 3 way look up involving dates.

    AHHH!!!

    I believe sir.. that has done me perfectly!! And obviosly If i was counting words I could just change the "" to "NO" or whatever?!


    Again another excellent example.. Ill add you to my favourites.

    thank you VERY VERY much

  16. #16
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: 3 way look up involving dates.

    Quote Originally Posted by Raanan View Post
    AHHH!!!

    I believe sir.. that has done me perfectly!! And obviosly If i was counting words I could just change the "" to "NO" or whatever?!


    Again another excellent example.. Ill add you to my favourites.

    thank you VERY VERY much
    YES!

    My pleasure! Thank you for your kind words.

  17. #17
    Registered User
    Join Date
    07-19-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 2007
    Posts
    89

    Re: 3 way look up involving dates.

    now I have a slightly different issue. Apologies if this throws a curveball.

    the current formula i use counts the times either "L:L" or "M:M" is not blank and is comin up with the sum 7 (at the moment).
    I need the sum to count when either L or M (or both) are not blank and count the occasions.
    (answer should be 9)

    thanks

  18. #18
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: 3 way look up involving dates.

    In the example sheet that we used for solving your issue we didn;t used columns L & M. What do you mean?

    Pls post an example sheet!

  19. #19
    Registered User
    Join Date
    07-19-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 2007
    Posts
    89

    Re: 3 way look up involving dates.

    What I need to work out is column G in WEEKLY.


    This needs to work out the amount of times that either "Phone number from Triage" (column L) or/and "Address from Triage" ((column M) on combined) is NOT blank..


    so it there is an entry in one or the other OR both it counts the occasions.
    Attached Files Attached Files

  20. #20
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: 3 way look up involving dates.

    Are you sure that you uploaded the correct workbook? This sample has validation lists from another workbook...Formula in column G says...nothing....."Compinied" sheet is empty.....

  21. #21
    Registered User
    Join Date
    07-19-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 2007
    Posts
    89

    Re: 3 way look up involving dates.

    G7 on Weekly sheet should read - =SUMPRODUCT((Combined!$A$2:$A$100000=$A7)*(Combined!$G$2:$G$100000>=$A$5)*(Combined!$G$2:$G$100000<=$B$5*(Combined!L$2:L$100000<>"")+(Combined!M$2:M$100000<>"")))

    The Combined sheet IS blank I had to remove the data, but essentially you can put anything in the combined sheet for it to work. The validation lists should also have been moved on this instance

  22. #22
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: 3 way look up involving dates.

    Unfortunately i don't have the time to build a sheet again for testing.... The sheet is really slow as you use hudge reference..G2:G100000 ...? Just an idea.....

    =SUMPRODUCT((Combined!$A$2:$A$100000=$A7)*(Combined!$G$2:$G$100000>=$A$5)*(Combined!$G$2:$G$100000<=$B$5)*(Combined!L$2:L$100000<>"")+(Combined!M$2:M$100000<>""))

    The red part of the formula has a non correct reference cell i think. B5??

  23. #23
    Registered User
    Join Date
    07-19-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 2007
    Posts
    89

    Re: 3 way look up involving dates.

    $B$5 is the end date for the between dates its just in white so you cant see.. It's ok Ill try work it out. The reference has to be 10,000 as there will be around 10,000 entries by the end of the year.

+ 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] Circular Referencing Involving Dates
    By brittany475 in forum Excel General
    Replies: 4
    Last Post: 07-18-2012, 04:07 PM
  2. [SOLVED] Need IF Formula involving Dates and Accumulators
    By jrosko1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-29-2012, 08:53 AM
  3. Calculations involving dates...
    By Finalfrontier1976 in forum Excel General
    Replies: 2
    Last Post: 07-13-2011, 07:40 AM
  4. Need help with formula involving dates
    By dataslinger in forum Excel General
    Replies: 2
    Last Post: 03-16-2010, 11:57 AM
  5. If Formulas involving dates
    By patelh9 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-09-2009, 02:16 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