This seems like a fairly easy operation, but I haven't found a working formula. Also, I know I have layers of complexity, which is why I am turning to you wonderful people for help!
Data Source: On my main tab/sheet, I have a table with a list of Property Names in column 'A'. Moving across, each column represents a year (Year 0, 1, 2, etc.). On separate worksheets, I have a detailed report on each Property Name. The table is filled with letters, indicating in any given year, a property is being (P)urchased, (R)ented, or (S)old.
Ideal Formula: I'd like to have a formula that checks the content of the table cell that corresponds to a certain column. So, if the formula is in column B, I'd like it to look in column B of the table and calculate based on the content, S, R and P (or blank). Then, the formula needs to check the other worksheets for the correct data. So, if the formula is in the "cash flow" row, I need the sum of cash flow for all the active properties.
Method: I used simple "if" statements to accomplish the tasks. For example, for "Profit/Loss:" =IF(C2="P",-'PROP (1)'!$B$18,IF(C2="R",'PROP (1)'!$B$10,IF(C2="S",'PROP (1)'!$B$21,0))). And for "Cash Flow:" =IF(C$2="",0,'PROP (1)'!$B10)+IF(C$3="",0,'PROP (2)'!$B10)+IF(C$4="",0,'PROP (3)'!$B10)
Here's a sample property sheet:
The reason for my request is if I add Prop (4), or let's say 6 more properties, I know there's a better way to put this together. I'd like to have an array or index/match or sumproduct formula that can check the column 'A' names and sum the data by FINDING the corresponding "Prop (x)" sheets.
Can anyone help me with this?
Data Source: On my main tab/sheet, I have a table with a list of Property Names in column 'A'. Moving across, each column represents a year (Year 0, 1, 2, etc.). On separate worksheets, I have a detailed report on each Property Name. The table is filled with letters, indicating in any given year, a property is being (P)urchased, (R)ented, or (S)old.
Ideal Formula: I'd like to have a formula that checks the content of the table cell that corresponds to a certain column. So, if the formula is in column B, I'd like it to look in column B of the table and calculate based on the content, S, R and P (or blank). Then, the formula needs to check the other worksheets for the correct data. So, if the formula is in the "cash flow" row, I need the sum of cash flow for all the active properties.
Method: I used simple "if" statements to accomplish the tasks. For example, for "Profit/Loss:" =IF(C2="P",-'PROP (1)'!$B$18,IF(C2="R",'PROP (1)'!$B$10,IF(C2="S",'PROP (1)'!$B$21,0))). And for "Cash Flow:" =IF(C$2="",0,'PROP (1)'!$B10)+IF(C$3="",0,'PROP (2)'!$B10)+IF(C$4="",0,'PROP (3)'!$B10)
Here's a sample property sheet:
The reason for my request is if I add Prop (4), or let's say 6 more properties, I know there's a better way to put this together. I'd like to have an array or index/match or sumproduct formula that can check the column 'A' names and sum the data by FINDING the corresponding "Prop (x)" sheets.
Can anyone help me with this?