+ Reply to Thread
Results 1 to 17 of 17

Trying to use lookup to display data within a date range.

  1. #1
    Registered User
    Join Date
    12-11-2019
    Location
    MN
    MS-Off Ver
    2016
    Posts
    55

    Trying to use lookup to display data within a date range.

    I have multiple operations for each project.
    Capture.JPG
    I need the data to display in a line like shown below. For the operations that have the same day, I want the letters to concatenate (ME). I have multiple operations shown above in different date ranges, I'd like each to be displayed on the same line.


    I am really struggling, please help!
    Attached Files Attached Files
    Last edited by AliGW; 12-12-2019 at 01:56 AM. Reason: Irrelevant section of title removed: this is a HELP forum!!!

  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,780

    Re: HELP! Trying to use lookup to display data within a date range.

    Welcome to the forum.

    Will you please attach a small sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    Instructions (Please Read Carefully):

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment (it hasn't worked for years, and despite our repeatedly asking the technical team who own the forum to fix it, they can't be bothered to do so), so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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
    Registered User
    Join Date
    12-11-2019
    Location
    MN
    MS-Off Ver
    2016
    Posts
    55

    Re: HELP! Trying to use lookup to display data within a date range.

    I have posted the test document! Thank you!!

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: HELP! Trying to use lookup to display data within a date range.

    anderem12 will there ever be instances of 3 or more operations?

    Never mind. I answered my own question.
    Last edited by FlameRetired; 12-11-2019 at 01:53 PM.
    Dave

  5. #5
    Registered User
    Join Date
    12-11-2019
    Location
    MN
    MS-Off Ver
    2016
    Posts
    55

    Re: HELP! Trying to use lookup to display data within a date range.

    Yes, I have multiple projects that have each of those that are listed above within a date range. I'd like for each of the projects to have their own row that shows each operation within the date range. So it would show like this:

    testsssss.JPG

    Each of those would be derived from the start and end date.

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: HELP! Trying to use lookup to display data within a date range.

    And from the looks of things that could also include


    BJ
    BK
    BL
    BM
    BN
    BO
    BP
    BQ
    BR
    BS
    BT
    20
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    21
    22
    FQ
    GVT
    GVT
    GVT
    GVT
    GVT
    DVT
    DVT
    DVT
    DVT
    VT

  7. #7
    Registered User
    Join Date
    12-11-2019
    Location
    MN
    MS-Off Ver
    2016
    Posts
    55

    Re: HELP! Trying to use lookup to display data within a date range.

    Yes, correct!

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: HELP! Trying to use lookup to display data within a date range.

    Quote Originally Posted by anderem12 View Post
    ... I'd like for each of the projects to have their own row that shows each operation within the date range ...
    We will need a representative sample of data source that also includes multiple Projects. That layout will likely affect the solution(s) offered.

  9. #9
    Registered User
    Join Date
    12-11-2019
    Location
    MN
    MS-Off Ver
    2016
    Posts
    55

    Re: HELP! Trying to use lookup to display data within a date range.

    Okay I will generate quickly and post.

    Thank you!

  10. #10
    Registered User
    Join Date
    12-11-2019
    Location
    MN
    MS-Off Ver
    2016
    Posts
    55

    Re: HELP! Trying to use lookup to display data within a date range.

    Here is the test data that I have generated! Let me know if you need anything else!
    Attached Files Attached Files

  11. #11
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: HELP! Trying to use lookup to display data within a date range.

    This will require a user defined function (VBA). I have used tigeravatar's CONCATALL. It is installed in the attached. Here is the code.

    Please Login or Register  to view this content.
    Although the code is installed already in the attached if you are not familiar with how to do this:

    1. Copy code
    2. Press Alt and F11 on your keyboard to open VB Editor
    3. Click on Insert and select Module
    4. Paste code into Module and close VB Editor.

    Don't forget to save your worbook as Macro-Enabled workbook.

    In row 11 are the dates to test same as your previous upload. In D13:D16 the list of Projects. The data in your row 5 needed cleaning up (Done in the attached). There were several extra spaces in the data. This causes havoc in formulas.

    Then this array entered formula in E13 filled down and across column DT. If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    12-11-2019
    Location
    MN
    MS-Off Ver
    2016
    Posts
    55

    Re: HELP! Trying to use lookup to display data within a date range.

    Will this work if I add more projects and then adjust accordingly?

  13. #13
    Registered User
    Join Date
    12-11-2019
    Location
    MN
    MS-Off Ver
    2016
    Posts
    55

    Re: HELP! Trying to use lookup to display data within a date range.

    Why wont it work on the test page at the bottom for what I have where it says NAME?

    I am getting an error that says "Ambiguous name detected:ConcatAll
    Attached Files Attached Files
    Last edited by anderem12; 12-11-2019 at 05:13 PM.

  14. #14
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: HELP! Trying to use lookup to display data within a date range.

    You have installed the CONCATALL twice. Open VBA editor and remove the second module. Return to the spreadsheet and hit the F9 function key.

  15. #15
    Registered User
    Join Date
    12-11-2019
    Location
    MN
    MS-Off Ver
    2016
    Posts
    55

    Re: HELP! Trying to use lookup to display data within a date range.

    I deleted the extra module, and it still has not worked with the adjusted data. If you have any idea what would be causing that error that would be amazing!

    Thank you so much for all of your help.

  16. #16
    Registered User
    Join Date
    12-11-2019
    Location
    MN
    MS-Off Ver
    2016
    Posts
    55

    Re: HELP! Trying to use lookup to display data within a date range.

    solved, thank you!

  17. #17
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Trying to use lookup to display data within a date range.

    You are welcome. Thank you for the feedback, added rep and marking your thread Solved.

    BTW: Please share what you did to make it work.

+ 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] Nest lookup Function to lookup name between date range and return value
    By bbeards in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-17-2018, 01:37 PM
  2. Date and data lookup to total within a date range
    By greg123 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-02-2016, 03:09 AM
  3. [SOLVED] VLOOKUP, gives #N/A error (if Range lookup=0) or wrong data (if Range lookup=empty)
    By Ebalinska in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 01-14-2016, 05:55 AM
  4. display data by date range with condition
    By tanpa_nama in forum Excel General
    Replies: 0
    Last Post: 06-02-2014, 11:10 PM
  5. Lookup Date in Table & Display Cell Information
    By jayjacko in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-02-2013, 04:54 PM
  6. [SOLVED] Lookup and display cell content based on date
    By larbac in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 12-17-2012, 11:44 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