C
Confused
I have three worksheets. One is where I enter all my property data, the
second is a template which is automatically populated when I input the
property name in the third sheet. Also, the third sheet contains a list of
property names and a macro that will automatically populate and print the
template when I put an "X" in the column next to the property name. So if I
wanted to print twenty specific employee templates, I can check off the
twenty that I need to print.
In my second worksheet is a template that is automatically populated using a
series of vlookup formulas. There is one section that I would like to
customize since not all the lines there are applicable to each property and
not all properties have the same data. For example, some properties have a
number in a tax column, some have a number in insurance column and some have
a number in capital expenditure column. I only want to show the word "Tax",
"Insurance" or "Capital expenditure" if there is a number for each those of
the corresponding names. So if property XYZ has a number say 300 in the tax
column, 0 in the insurance column and 400 in the capital expenditure column,
my template should only show the word "Tax" in one line and "capital
expenditure" in another. I don't want to show the word "insurance" in
another line since it has a "0" value.
This is the formula I used
"=index(database,match(B1,prop_name,0),match(tax,database,0),match(insurance,database,0),match(capital_expenditure,database,0)"
I used defined name ranges.
Database = all my data in sheet 1
Prop_name = list of properties in sheet 1
tax = tax column in sheet 1
insurance = insurance column in sheet 1
capital expenditure = capital expenditure in sheet 1
Cell B1 is in Sheet 2 which is my template. In B1, I have a vlookup formula
that refers to Sheet 3 where I can input the name of the property in one
cell, and B1 reads that input and populates the template in sheet 2.
Am I getting a result of #REF because the index,match formula cannot
evaluate the vlookup formula in cell B1?
Also, is my formula correct? if not, please help !!!
Hope I am clear. Thanks for any help.
second is a template which is automatically populated when I input the
property name in the third sheet. Also, the third sheet contains a list of
property names and a macro that will automatically populate and print the
template when I put an "X" in the column next to the property name. So if I
wanted to print twenty specific employee templates, I can check off the
twenty that I need to print.
In my second worksheet is a template that is automatically populated using a
series of vlookup formulas. There is one section that I would like to
customize since not all the lines there are applicable to each property and
not all properties have the same data. For example, some properties have a
number in a tax column, some have a number in insurance column and some have
a number in capital expenditure column. I only want to show the word "Tax",
"Insurance" or "Capital expenditure" if there is a number for each those of
the corresponding names. So if property XYZ has a number say 300 in the tax
column, 0 in the insurance column and 400 in the capital expenditure column,
my template should only show the word "Tax" in one line and "capital
expenditure" in another. I don't want to show the word "insurance" in
another line since it has a "0" value.
This is the formula I used
"=index(database,match(B1,prop_name,0),match(tax,database,0),match(insurance,database,0),match(capital_expenditure,database,0)"
I used defined name ranges.
Database = all my data in sheet 1
Prop_name = list of properties in sheet 1
tax = tax column in sheet 1
insurance = insurance column in sheet 1
capital expenditure = capital expenditure in sheet 1
Cell B1 is in Sheet 2 which is my template. In B1, I have a vlookup formula
that refers to Sheet 3 where I can input the name of the property in one
cell, and B1 reads that input and populates the template in sheet 2.
Am I getting a result of #REF because the index,match formula cannot
evaluate the vlookup formula in cell B1?
Also, is my formula correct? if not, please help !!!
Hope I am clear. Thanks for any help.