ultros1234
New Member
Hi folks --
I'm trying my hand at making a simple dashboard, but I've run up against a frustrating problem. I'll tell you the bottom line first, and then the details.
I want to get a formula to return a reference to a named data range in a cell, but the formula constantly returns a digit rather than a data range. I have tried changing the number format on the cell, but nothing seems to help.
For example, the formula I want to make is something like this:
Cell A8 is the output cell for a combo box, which selects one of my four data sets. It returns a value of 1, 2, 3, or 4.
Cell A9 has a series of nested if statements to return the four data ranges:
=IF(A8=1,Appointment_data,IF(A8=2,SHIP_data,IF(A8=3,Advice_data,Specialty_data)))
But cell a9 just returns the number 3. The problem isn't with the formula. I've tested with something simple like
=Appointment_data
and still all I get is a digit. Interestingly, if I do this simple formula in successive cells in the same column, I get an increasing series of digits (i.e., it returns 3, then 4, then 5...).
Can I not have a formula return the name of a data range? If not, what's the best solution for having a combo box control which data that populates my graphs and tables? I'm sure there's a more efficient way for me to do this, but I would like to understand what's going on.
Thanks!
I'm trying my hand at making a simple dashboard, but I've run up against a frustrating problem. I'll tell you the bottom line first, and then the details.
I want to get a formula to return a reference to a named data range in a cell, but the formula constantly returns a digit rather than a data range. I have tried changing the number format on the cell, but nothing seems to help.
For example, the formula I want to make is something like this:
Cell A8 is the output cell for a combo box, which selects one of my four data sets. It returns a value of 1, 2, 3, or 4.
Cell A9 has a series of nested if statements to return the four data ranges:
=IF(A8=1,Appointment_data,IF(A8=2,SHIP_data,IF(A8=3,Advice_data,Specialty_data)))
But cell a9 just returns the number 3. The problem isn't with the formula. I've tested with something simple like
=Appointment_data
and still all I get is a digit. Interestingly, if I do this simple formula in successive cells in the same column, I get an increasing series of digits (i.e., it returns 3, then 4, then 5...).
Can I not have a formula return the name of a data range? If not, what's the best solution for having a combo box control which data that populates my graphs and tables? I'm sure there's a more efficient way for me to do this, but I would like to understand what's going on.
Thanks!