A
Alexander Bogomolny
Hello:
I am new to Excel, although not new to programming.
I am to use Excel from a Java application in which the user defines
attributes, like products and business areas. (The latter are groups of
products and are very transient.)
Originally, I am supplied with a workbook with two worksheets: one for
products, the other for groups of products. I copy and delete them as
products or the groups are created or removed.
When I create a product group worksheet, I have to modify some cells
that refer to products in that group. For example, I may have a cell
like
=product1!A1 + product3!A1 + product12!A1, where
{product1, product3, product12) constitute the group at hand.
I can of course scan all the cells in a group worksheet and, if
necessary, modify them accordingly. However, I am certain there must be
a way to specify that the sum is across worksheets product1, product2,
product12 without checking and modifying every single cell. Perhaps it
could be possible to list the products (i.e. worksheet names) in a table
in an invisible worksheet and assign a variable to it and then use that
variable in the sum. So question number 1 is Is that possible? A
question number 2 is Is there another way to achieve my goals?
Many thanks,
Alex
I am new to Excel, although not new to programming.
I am to use Excel from a Java application in which the user defines
attributes, like products and business areas. (The latter are groups of
products and are very transient.)
Originally, I am supplied with a workbook with two worksheets: one for
products, the other for groups of products. I copy and delete them as
products or the groups are created or removed.
When I create a product group worksheet, I have to modify some cells
that refer to products in that group. For example, I may have a cell
like
=product1!A1 + product3!A1 + product12!A1, where
{product1, product3, product12) constitute the group at hand.
I can of course scan all the cells in a group worksheet and, if
necessary, modify them accordingly. However, I am certain there must be
a way to specify that the sum is across worksheets product1, product2,
product12 without checking and modifying every single cell. Perhaps it
could be possible to list the products (i.e. worksheet names) in a table
in an invisible worksheet and assign a variable to it and then use that
variable in the sum. So question number 1 is Is that possible? A
question number 2 is Is there another way to achieve my goals?
Many thanks,
Alex