Second question - see this thread for related info: thread68-184936
Heres (another) one I have been wrestling with for a few hours. I am using Excel 2000.
I have 4 columns and 4 columns, in (unnamed) tables. They are:
TABLE 1
Column A: Unique (building) key
Column B: Square footage per building
Column C: A value of either "bid", "contract" or "core"
Column D: A value of either "occupied", "part occupied", "surrendered" or "vacant"
TABLE 2
Column H: Unique (building) key (same as above)
Column I: A value of either "datacentre" or "office"
Column J: A square footage value for datacentres only
Column K: Building cost
I need to do this using formulas only (no VBA, macros or otherwise for various reasons I will not bore you with):
I need to compare the uniqe building keys (which are the same numbers for the same properties in both tables). If there is a match, then I would like to take only those buildings that are designated "occupied" or "part occupied", then take the square footage in table 2 (sqft for the datacentre) and divide it by the total sqft value in table 1 that matches the unique building key.
If possible I would like THEN to take that value and multiply it by the building cost in table 2, all in one formula. I have got some of the way there, but not quite.
Also, I would prefer not to name the tables, as I am going to be making wholesale changes to the data and structures very soon. This is kind of an immediate requirement.
If I have to do it in two steps, fine, but any help would be appreciated.
Any thoughts??
Heres (another) one I have been wrestling with for a few hours. I am using Excel 2000.
I have 4 columns and 4 columns, in (unnamed) tables. They are:
TABLE 1
Column A: Unique (building) key
Column B: Square footage per building
Column C: A value of either "bid", "contract" or "core"
Column D: A value of either "occupied", "part occupied", "surrendered" or "vacant"
TABLE 2
Column H: Unique (building) key (same as above)
Column I: A value of either "datacentre" or "office"
Column J: A square footage value for datacentres only
Column K: Building cost
I need to do this using formulas only (no VBA, macros or otherwise for various reasons I will not bore you with):
I need to compare the uniqe building keys (which are the same numbers for the same properties in both tables). If there is a match, then I would like to take only those buildings that are designated "occupied" or "part occupied", then take the square footage in table 2 (sqft for the datacentre) and divide it by the total sqft value in table 1 that matches the unique building key.
If possible I would like THEN to take that value and multiply it by the building cost in table 2, all in one formula. I have got some of the way there, but not quite.
Also, I would prefer not to name the tables, as I am going to be making wholesale changes to the data and structures very soon. This is kind of an immediate requirement.
If I have to do it in two steps, fine, but any help would be appreciated.
Any thoughts??