Thank you to all you excel gurus who respond to these questions, and to anyone who may take a crack at this one:
Big picture:
I have a spreadsheet that has created a list of possible solar system configurations, and listed them by kW rating. essentially i have an array which will only display kW ratings if the system is within several constraints that the user chooses. what i need to do is move these active kW ratings of system configurations to a column and extract several cells of information for each possible system configuration.
I have sorted the info by kW easily:
=SMALL($E$5:$O$136,A5)
with this small() formula i can arrange all possible kW ratings in ascending order. what I can't do is extract the information that goes with each rating. I have tried match():
=MATCH(Q5,$E$5:$O$136,0)
which should compare the value chosen by small() in Q5 and find it in the array. but instead i only get a #REF! error. I've also tried:
=INDEX($B$5:$B$136,ROW(SMALL($E$5:$O$136,$A5)),1)
which i thought would easily return the data from column B based on the row of selected kW rating in small(). wrong again, b/c small() returns a value (kW rating), and not a cell reference..
Does anyone have a suggestion? Maybe someone sees a better "Big Picture" approach?.. I'm not well experienced with VBA, but if you think it would be an efficient way to accomplish this task then please share and I will learn it.
Thanks so much in advance.
Big picture:
I have a spreadsheet that has created a list of possible solar system configurations, and listed them by kW rating. essentially i have an array which will only display kW ratings if the system is within several constraints that the user chooses. what i need to do is move these active kW ratings of system configurations to a column and extract several cells of information for each possible system configuration.
I have sorted the info by kW easily:
=SMALL($E$5:$O$136,A5)
with this small() formula i can arrange all possible kW ratings in ascending order. what I can't do is extract the information that goes with each rating. I have tried match():
=MATCH(Q5,$E$5:$O$136,0)
which should compare the value chosen by small() in Q5 and find it in the array. but instead i only get a #REF! error. I've also tried:
=INDEX($B$5:$B$136,ROW(SMALL($E$5:$O$136,$A5)),1)
which i thought would easily return the data from column B based on the row of selected kW rating in small(). wrong again, b/c small() returns a value (kW rating), and not a cell reference..
Does anyone have a suggestion? Maybe someone sees a better "Big Picture" approach?.. I'm not well experienced with VBA, but if you think it would be an efficient way to accomplish this task then please share and I will learn it.
Thanks so much in advance.