Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-08-2024, 12:41 PM
aguecil aguecil is offline Looking to auto-populate a working table in Excel based on conditions in another table Windows 10 Looking to auto-populate a working table in Excel based on conditions in another table Office 2021
Novice
Looking to auto-populate a working table in Excel based on conditions in another table
 
Join Date: Jun 2024
Posts: 5
aguecil is on a distinguished road
Default Looking to auto-populate a working table in Excel based on conditions in another table


Hi,

I have a table called Equipment Tracker that lists all of the equipment I have and one of the columns is Repair Status with the options of Good, Watch, Needs Service. I would like the equipment to automatically populate into a Repair Tracker table if the Repair Status is Watch or Needs Service. I can do it using FILTER but need to also be able to add additional information into the Repair Tracker table such as quotes, anticipated return date, etc. without the data becoming mismatched as it is updated. Is this possible? I cannot use VBA due to system constraints.
Reply With Quote
  #2  
Old 08-08-2024, 10:50 PM
ArviLaanemets ArviLaanemets is offline Looking to auto-populate a working table in Excel based on conditions in another table Windows 8 Looking to auto-populate a working table in Excel based on conditions in another table Office 2016
Expert
 
Join Date: May 2017
Posts: 932
ArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant future
Default

So you have (at least) 2 tables:
Equipment (has columns for EquipmentID or EquipmentName, and RepairStatus);
RepairTracker (has column for EquipmentID or EquipmentName).

Add a sheet with ODBC query, which reads from Equipment table the needed info for RepairTracker table, where RepairStatus in Equipment table is not "Good", and the matching EquipmentID or EquipmentName in RepairTracker is missing.
After the query is refreshed, copy the query data into RepairTracker table.

No you'll have 2 possible ways to continue.
1. After repairs are done, you change RepairStatus in Equipment table to "Good", and delete matching rows from RepairTracker table (you may add a column with formula checking the value of RepairStatus in Equipment table, and use it to filter the rows to delete). This means no history of repairs is stored;
2.You keep the history of repairs. To do this, you need in RepairTracker table a status column registring repairs as done. You have to add an additional condition to query created earlier, to ignore all entries in RepairTracker table where repairs are done too. And after the repairs are done, you change both statuses in Equipments table and in RepairTracker table, and don't delete any records from RepairTracker table.
Reply With Quote
  #3  
Old 08-09-2024, 12:30 PM
aguecil aguecil is offline Looking to auto-populate a working table in Excel based on conditions in another table Windows 10 Looking to auto-populate a working table in Excel based on conditions in another table Office 2021
Novice
Looking to auto-populate a working table in Excel based on conditions in another table
 
Join Date: Jun 2024
Posts: 5
aguecil is on a distinguished road
Default Almost there ...

Thanks - I have gotten to the point where I copy/paste. Is there any way to automate this process? I have attempted to append the data from the query to the RepairTracker but it creates a new table instead of adding to the pre-existing one. I can copy/paste if necessary but would like it to be fully able to refresh if possible.
Reply With Quote
  #4  
Old 08-09-2024, 10:49 PM
ArviLaanemets ArviLaanemets is offline Looking to auto-populate a working table in Excel based on conditions in another table Windows 8 Looking to auto-populate a working table in Excel based on conditions in another table Office 2016
Expert
 
Join Date: May 2017
Posts: 932
ArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant future
Default

Quote:
Originally Posted by aguecil View Post
Is there any way to automate this process?
Of-course it is!

Create a VBA procedure, run by click on button. The procedure checks RepairTracker table for repairs done (by repair status there, or by repair date, or whatever), updates the RepairStatus in Equipement table for repaired equipment, then updates the query, and after that updates RepairTracker table with new equipment marked as needing repairs.

Not a simple task btw. And I can't help, as I don't have Excel at home, and I can't do something like this on fly.
Reply With Quote
  #5  
Old 08-30-2024, 06:00 AM
aguecil aguecil is offline Looking to auto-populate a working table in Excel based on conditions in another table Windows 10 Looking to auto-populate a working table in Excel based on conditions in another table Office 2021
Novice
Looking to auto-populate a working table in Excel based on conditions in another table
 
Join Date: Jun 2024
Posts: 5
aguecil is on a distinguished road
Default Resolved

Thanks for your help - I'm going to leave the VBA out for now and just include instructions on the worksheet for other users. Appreciate the help!
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking to auto-populate a working table in Excel based on conditions in another table Auto-populating table based on another table? 0rion Excel 12 02-03-2023 09:24 AM
find a value based on two conditions in a table chittari Excel 5 06-02-2022 10:09 AM
Auto-populate text boxes with Excel data based on drop down box selection charkelham Word VBA 0 08-04-2021 04:38 AM
Looking to auto-populate a working table in Excel based on conditions in another table How to Subtract value in table, based on two different conditions nitemath2 Excel 1 06-19-2015 01:28 AM
Looking to auto-populate a working table in Excel based on conditions in another table Excel to auto populate dates based on start and end patidallas22 Excel Programming 9 04-21-2014 03:14 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:07 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft