
Originally Posted by
JCrain
Ok. Thank you. I think this will work now.
But how does this code know to index the numbers that are on a completely different worksheet?
Can I add numbers to the chart on the other worksheet and then add them to this code and it work correctly, or is there a limit on the number of variables that can be included in one array?
I am sorry that I am asking so many questions about everything, but I am really trying to teach myself how to understand and use Excel so maybe I will be able to help people in the future who are new users like I am.
Actually, I didn't see that you had created a table in the PL Sizes sheet, so my formula "hard-coded" the index numbers... to use your table...try:
=INDEX('PL Sizes'!A1:A9,MATCH(TRUE,'PL Sizes'!A1:A9>=ROUNDUP(SUM(E13:G13),0),0))
again confirmed with CTRL+SHIFT+ENTER...
If you want to be able to make your list in PL Sizes dynamic so that you can add/subtract index numbers, then you have to create a defined named range.
Go to Insert|Name|Define and enter a name such as "PLSizes" (without quotes) in the Names in Workbook field. Then enter this formula in the Refers to field:
Now update your formula in A13 to:
Now if you add more items to the list in the PL Sizes sheet, they will be incorporated into the formula.
See attached.
Bookmarks