+ Reply to Thread
Results 1 to 6 of 6

Need a VBA lookup table from a massive database

Hybrid View

  1. #1
    Registered User
    Join Date
    06-06-2019
    Location
    Cyprus
    MS-Off Ver
    365
    Posts
    10

    Exclamation Need a VBA lookup table from a massive database

    So in essence what I'm trying to do, is to make an excel sheet that will act as a welcome page to my database, displaying important data from the DB.
    Its a huge amount of information about business orders with different specifics and dates of the said orders are stored in a separate column.
    Now what I want to do is to make a table on the first page that would return values based on today's date - 3 (Essentially vlookup that would return multiple values)

    Also, I would like for this excel to be able to move rows based on the date value or maybe some separate column with a yes/no that would basically archive the rows in another sheet.

    Apologies if this has been posted/resolved before and would love a link to the solution, as I've been perusing this amazing forum for a while and found close workarounds but nothing that I could actually use to resolve this.
    Thank you in advance for any help you can provide!

    Oh and while I'm at it, is it possible to make a drop-down list with data validation or otherwise that would pull links from the reference into the cell. Or maybe set a certain cell value to be always shown as a link?

    Muchas gracias!

    If need be ill post my current progress but since it looks like a potato and has NDA'd data i wouldn't.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,704

    Re: Need a VBA lookup table from a massive database

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    06-06-2019
    Location
    Cyprus
    MS-Off Ver
    365
    Posts
    10

    Re: Need a VBA lookup table from a massive database

    Here is the sample book, Excuse the formatting
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,869

    Re: Need a VBA lookup table from a massive database

    As no VBA solutions have been offered, perhaps the following formula based proposal will be helpful.
    1. Populate cell G3 using: =TODAY()
    2. Populate G7:H21 using: =IFERROR(INDEX('Database sheet'!B$2:B$5,AGGREGATE(15,6,(ROW($B$2:$B$5)-ROW($B$1))/('Database sheet'!$A$2:$A$5=$G$3),ROWS($A$1:$A1))),"")
    3. Populate F7:F21 using: =IF(G7="","",G$3)
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    06-06-2019
    Location
    Cyprus
    MS-Off Ver
    365
    Posts
    10

    Thumbs up Re: Need a VBA lookup table from a massive database

    This is incredible. I was looking for a solution in VBA due to the clunkiness of the formula combinations but this will just work fine.
    Thanks a lot again.

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,869

    Re: Need a VBA lookup table from a massive database

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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: 5
    Last Post: 02-12-2019, 02:22 AM
  2. [SOLVED] sumif function with a massive table
    By Justin280090 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-04-2016, 12:30 AM
  3. Split Massive Text String From A Single Cell Into A Table
    By Eddiegnz1 in forum Excel General
    Replies: 6
    Last Post: 09-25-2014, 04:17 PM
  4. Massive match index: machinist calc table
    By MACHINESTUDENT in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-19-2014, 12:49 AM
  5. Reference to massive table in another workbook
    By Ikkyo82 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-03-2013, 07:57 AM
  6. Massive Excel Table - Tips please
    By sambo24 in forum Access Tables & Databases
    Replies: 1
    Last Post: 09-20-2011, 08:36 AM
  7. Search function in massive database
    By Marvlin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-03-2008, 05:57 PM

Tags for this Thread

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