+ Reply to Thread
Results 1 to 6 of 6

FOrmula to return name of activity of if between 2 dynamic dates

  1. #1
    Registered User
    Join Date
    10-24-2019
    Location
    Bradford
    MS-Off Ver
    10
    Posts
    5

    FOrmula to return name of activity of if between 2 dynamic dates

    I have the attached where we need a dynamic formula which will look at the date of the case ID and then use the company ID to look at any activity made for that company. If theres any activity for that company 2 days prior i need to then pull back the user who created that activity within that time period. Im struggling to bring back the name, i can use a countifs to see how many activities were created within 2 days of that record.

    i.e. case id 833216 was received 2/3/22 and for that company there were 2 activities logged within a 2 day period before but were from multiple people so i need it to show multiple, but if there was only 1 person i need it to bring back that name.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,948

    Re: FOrmula to return name of activity of if between 2 dynamic dates

    Administrative Note:

    Members will tailor the solutions they offer to the version (NOT release number) of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: FOrmula to return name of activity of if between 2 dynamic dates

    Two of your expected answers seem to be mixed up:

    =IF(B3="","",CHOOSE(1+COUNTIFS(H:H,B3,I:I,">="&C3-2,I:I,"<="&C3),"NA",INDEX($J$3:$J$12,MATCH(1,INDEX(($H$3:$H$12=B3)*($I$3:$I$12>=C3-2)*($I$3:$I$12<=C3),0),0)),"Multiple"))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: FOrmula to return name of activity of if between 2 dynamic dates

    Please use this, instead... previous version is faulty.

    =IF(B3="","",CHOOSE(MIN(3,1+COUNTIFS(H:H,B3,I:I,">="&C3-2,I:I,"<="&C3)),"NA",INDEX($J$3:$J$12,MATCH(1,INDEX(($H$3:$H$12=B3)*($I$3:$I$12>=C3-2)*($I$3:$I$12<=C3),0),0)),"Multiple"))

  5. #5
    Registered User
    Join Date
    10-24-2019
    Location
    Bradford
    MS-Off Ver
    10
    Posts
    5

    Re: FOrmula to return name of activity of if between 2 dynamic dates

    ah thats perfect thank you

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: FOrmula to return name of activity of if between 2 dynamic dates

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

+ 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. Replies: 2
    Last Post: 02-09-2020, 09:44 PM
  2. Return First Activity Time Stamp
    By xiexie089 in forum Excel General
    Replies: 3
    Last Post: 11-19-2019, 11:51 PM
  3. [SOLVED] Formula to return the 'earliest' and 'latest' dates from a list of dates is not working
    By Hawkmoth1 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-21-2017, 07:14 AM
  4. Activity Time Tracker to capture activity selected from dropdown list
    By dillibabu in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-24-2013, 01:10 PM
  5. Need to catergorize dates between each doctor and his activity! PLEASE HELP
    By Winnie04 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-04-2013, 04:07 PM
  6. [SOLVED] if i select multiple dates, i would like all activity from another tab to display
    By Netzqua in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-07-2013, 02:19 PM
  7. Replies: 1
    Last Post: 05-12-2012, 06:34 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