Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
For example I have say 24 tanks and their quantities in col_A and
col_B.. Based on the cargo nominations the group of tanks might change. By using listbox I am able to get the selected tanks and their quantities in col_A and col_B. The difficulty I am facing is how to put it in VB -say- for the following scenearios say the quantites of the tanks start from row 10 1. If only one group with all 24 tanks as one group then the sum formula in cell B34 should be sum(b10.b33) 2. If two group of tanks like first group 12 and second group 12 then a sum forumla should be put in cell B22 as sum((b10.b21) and again another sum formula at b35 as sum(b22.b34) 3. If three groups of tanks like first group 4, second group 8 and third group 12 tanks then at the end of each group I need to put a sum formula as mentioned in item-2 for each group. 4. If more than one group then after leaving a blank row after the group is over one grand total sum formula adding the group like =sum(b22+b35+b 44 or whatever is next group ending row) col_A col_B tanks 1 centr 1000 -starting from row 10 2 centr 5000 3 centr 4000 row 14 =sum(b10.b13) - end of first group and total 4 centr 5 centr 6 centr row 18 =sum(b15.b17) - end of second group and total 7 centr 8 centr 9 centr 10 centr 11 centr 12 centr row 25 =sum(b19.b24) - end of third group and total row 26 =sum(sum at row 14+row18+row25) sum of all the groups. Pls note I hv shown only 3 groups for example and it can even be 5 or more groups which will be as announced by the company. How to incorporate in the VB and to put the formulas and group totals accordingly. As I mentioned earlier I am due to proceed on vacation in another 4 days and would appreciate quick guidance to make it user friendly and go. PLs help. I will be watching throughout the day constantly to work and finish the program tonight itself. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Multi-Level Category Labels | Charts and Charting in Excel | |||
How do I format multi-level category labels | Charts and Charting in Excel | |||
Multi level category labels | Excel Discussion (Misc queries) | |||
Multi-Level Category Gridlines | Charts and Charting in Excel | |||
representing multi category in a column chart | Charts and Charting in Excel |