Object and arrays question

OldManExcellor

New Member
Joined
May 30, 2011
Messages
45
I have products that have properties. (product.name, product.weight, ...)
I have markets that have properties. (market.population, market.inflation, ...)
And then I have product*market combinations that have properties. (product*market.sales, product*market.share, ...)

What is the best way to organize this using objects and arrays?
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
That's the route a want to go then.

Do I want to create a product and a market class only, or do I want to create a product*market class as well?
 
Upvote 0
I'm not sales savy enough to understand what a product*market class might contain.

I would think that if someMarket were a Market object, someMarket.RestrictedToProduct("apple") could also be a Market object.

The restrictedToProduct property could take multiple arguments. Whether that would be an AND or and OR would be up to the designer.

Similarly, every Product object could have a RestrictedToMarket property.
 
Upvote 0

Forum statistics

Threads
1,224,560
Messages
6,179,520
Members
452,923
Latest member
JackiG

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top