Dear all,
So I have to set up a somewhat complicated model. Maybe someone can help me think through how to do it best? I am afraid I am about to set this up all incorrectly and then regret it later... Here is an overview:
-- Sheet 1 has a list of unique buildings, 10000 of them. Each building has 10 estimates of its value at different points in the future.
-- Sheet 2 has estimates of % damage that each of those unique buildings can suffer from five different types of natural disasters, each with four scenarios
-- Sheet 3 is the computation engine - for each building it computes the 200 possible damage values (10 value estimates times 20 different kinds of damage)
Now what I want to do is to be able to say, for a subset of buildings (filtered dynamically, e.g. only those in a certain zipcode), what is the total value of damage under different scenarios?
I guess one way I could do it is to:
-- Use VBA to filter Sheet 1 by chosen conditions and come up with list of buildings
-- Create a computation sheet with 200 columns for each possible outcome
-- Use VBA to copy the list of assets into the computation sheet and then do the summing
But seems like that 200 column thing is a bad idea... What if I need to add a scenario?
Do you think there is a way that I can use iteration or data tables to calculate the damage estimate in Sheet 3 for each building and keep summing these estimates as I calculate them? Happy to use a little VBA...
If you have any ideas, please tell! Oh, and you would be helping protect a big city from climate change.
So I have to set up a somewhat complicated model. Maybe someone can help me think through how to do it best? I am afraid I am about to set this up all incorrectly and then regret it later... Here is an overview:
-- Sheet 1 has a list of unique buildings, 10000 of them. Each building has 10 estimates of its value at different points in the future.
-- Sheet 2 has estimates of % damage that each of those unique buildings can suffer from five different types of natural disasters, each with four scenarios
-- Sheet 3 is the computation engine - for each building it computes the 200 possible damage values (10 value estimates times 20 different kinds of damage)
Now what I want to do is to be able to say, for a subset of buildings (filtered dynamically, e.g. only those in a certain zipcode), what is the total value of damage under different scenarios?
I guess one way I could do it is to:
-- Use VBA to filter Sheet 1 by chosen conditions and come up with list of buildings
-- Create a computation sheet with 200 columns for each possible outcome
-- Use VBA to copy the list of assets into the computation sheet and then do the summing
But seems like that 200 column thing is a bad idea... What if I need to add a scenario?
Do you think there is a way that I can use iteration or data tables to calculate the damage estimate in Sheet 3 for each building and keep summing these estimates as I calculate them? Happy to use a little VBA...
If you have any ideas, please tell! Oh, and you would be helping protect a big city from climate change.