Tracking Equipment, Room to Room

HAVOC09

New Member
Joined
Oct 3, 2014
Messages
2
Im trying to establish a system where different pages on excel are representing different rooms and the data is scannable bar codes representing equipment moving from room to room. Ive got CONCATENATE under control but I don't understand how to make a piece of equipment on Room A's list disapeer automatically when it is scanned into Room B. Any help would be amazing
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Hi and welcome to the MrExcel Message Board.

You may not like this solution but I think it works.

First, I approached the problem from a database perspective. That told me that I had two types of object: Equipment and Rooms. A database would have one table for one and a second table for the other. So I made my Excel design have one table for all the Equipment. There are two columns one for the Equipment name and one for the Room. When you scan in your Equipment you use just this sheet and the Room number/name will be updated.

Then I created a worksheet for each Room. All the Equipment is copied into each worksheet. The Room number is looked up from the master sheet using a VLOOKUP.
Then I added an AutoFilter that filters out all the Equipment in the other Rooms. That is, it shows only the Equipment in that Room.
To make this automatic, I added a macro that runs when a Room worksheet is Activated. This refreshes the AutoFilter. So everytime you look at a Room worksheet it shows the correct data.

I made the master worksheet a Table (Insert-->Table from the menu). So the VLOOKUP for each worksheet is: =VLOOKUP(A2,Table1,2,0)

The macro that will need to be added to all the Room worksheets but not the master is:
Code:
Private Sub Worksheet_Activate()
    AutoFilter.ApplyFilter
End Sub
 
Upvote 0
Thanks for the feedback.

Excel is fun but it does disguise the three main processes in any database:

1. Enter data
2. Store data
3. Present data

You sometimes need to separate them to find a way through. In a datbase you would use all three steps. In Excel you often end up basing the data storage on the desired input and output mechanisms.



Dismounts from hobby-horse at this point :)
 
Upvote 0

Forum statistics

Threads
1,215,335
Messages
6,124,326
Members
449,155
Latest member
ravioli44

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top