Hey there! Have a table with headers of specific locations and a column of dates going back several years. I need a person to be able to search by location and value and return the corresponding date(s) in a pop up box (msgbox). I could probably write a formula but I'm guessing there is a possible better way to do it in VBA using a command button. Would also need some error handling if a value is not found for a specific location. Any help would be much appreciated
For example - The user would enter "Location 1" in one cell (A1) and "55" in another cell (B1). A box would pop up with 1/2/2010 and 1/3/2010. Assume the table is on the same worksheet as the reference cells and command button
<TBODY>
</TBODY>
For example - The user would enter "Location 1" in one cell (A1) and "55" in another cell (B1). A box would pop up with 1/2/2010 and 1/3/2010. Assume the table is on the same worksheet as the reference cells and command button
Date | Location 1 | Location2 | Location 3 |
1/1/2010 | 50 | 44 | 42 |
1/2/2010 | 55 | 52 | 47 |
1/3/2010 | 55 | 51 | 47 |
1/4/2010 | 51 | 47 | 44 |
<TBODY>
</TBODY>