Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming,microsoft.public.excel.misc,microsoft.public.fr.excel
|
|||
|
|||
![]()
I need help to write part of a VBA code in Excel. I am trying to do
calculations on rows that meeting certain requirements, but I do not know how to established that in VBA. I know that if I use the worksheet itself, I can do something like SUMIF() function. But, when I put the same function in the VBA editor, it returns error. A simple version of my data: Group No Member No Amount spent 1 1 10 1 2 3 1 3 4 2 1 6 2 2 1 3 1 12 4 1 3 4 2 1 I am trying to calculate the total amount spent based on the group no. FOr example, how much does group no.1 spent, how much does group no.2 spent, etc. I appreciate anybody who can help me with this. Thank you very much. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Write a macro that hides rows based on empty cells | Excel Discussion (Misc queries) | |||
VBA code to select rows | Excel Discussion (Misc queries) | |||
+/- in sheet2 based on conditions and dynamic rows in sheet1 | Excel Discussion (Misc queries) | |||
Conditionally summing cells based on conditions in other rows | Excel Worksheet Functions | |||
How do I write a formula to color code based on dates provided or. | Excel Worksheet Functions |