Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Does someone has a solution for the next problem
My worksheet is put in R1C1 mode and I am working with a Database on worksheet ("Database") I have made a selection of the unique values in Column 11 in ("Database") and I pasted this range temporarily under the database to perform first a formule "Sumif" on this range by using a "Do...Loop" method When this is done, I wil select both and copy them to another worksheet and use it as a rapport. The formula with the problem is... 1 Cells(Lastrow + 10, Colindex +1).Select 2 Do Crit1 = ActiveCell.Offset(0,-1).text ActiveCell.Formula = "=SUMIF(CC1:CC2, Crit1 ,CC3:CC4)" ActiveCell.Offset(1, 0).Select Loop Until IsEmpty(ActiveCell.Offset(0, -1)) ( The first part is the selection of the first cell to start the loop. Crit1 is a unique value and CC1,CC2,CC3,CC4 are the different variables for the Cells in the Range to use in the formula. ) when ever I perform this code the result is Unique value sum albert heijn 0 aldi 0 alex 0 ecc....... ( when I change (as a test) the Sumif formula to something more simple like ActiveCell.Formula = CC4 * CC3 it is working fine.......) what am I doing wrong? Thanks in advance.... Domin |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
R1C1 formula question | Excel Worksheet Functions | |||
R1C1 Formula in Excel | Excel Worksheet Functions | |||
Variable in an R1C1 formula | Excel Programming | |||
Wow can I switch to R1C1 mode? | Excel Programming | |||
looping formula - r1c1 problem | Excel Programming |