Tracking historical values: Index/Match using VBA?

john_potter

New Member
Joined
Mar 9, 2016
Messages
3
Good morning all.

As always, thanks in advance for your time...

I need to capture project status for a list of projects over time and keep historical record of those statuses.

I currently have a data connection from a sharepoint listthat brings in a list of projects and their statuses (along with other data) thatis refreshed every time the spreadsheet is opened. What I need to do is capturethe project status (Red/Yellow/Green) for each project when I open thespreadsheet (opened on a random schedule). This is relatively easy if I want asnapshot in time, but tricky to save historical statuses that aren’tover-written through regular code. I know I could reduce the calculationiterations so that each cell is only calculated once but have a load of othercalculations that need to fire. I thought about using VBA to do an index match(using project code and date) – am I correct that the VBA will only work if bothcondition are found, i.e. it matches on both project code and today’s date,then inserts that value into another table that has project code vertically anddates (each day of the year) horizontally – BUT will values in other cellsremain intact (hence maintaining a historical record of status, by project forwhatever day the spreadsheet was opened).

I have spent the morning looking for solutions online andsearched this forum, but am not experienced in VBA – if someone could point mein the direction where I can teach myself, or better yet have some code intheir back pocket, it would be hugely appreciated.


Thanks.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,213,565
Messages
6,114,338
Members
448,570
Latest member
rik81h

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