Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
My data looks like this:
A B C Faye 14,874 Faye 18,050 Faye 31,255 Faye 56,351 Faye 59,352 Faye 74,887 Jean 42,671 Jean 45,560 Jean 60,170 Jean 100,357 Jean 112,163 Jeff 18,078 Jeff 26,859 Jeff 49,090 Jeff 74,579 .... .... I want to know how to loop through this dataset and for each value in Column A, I will do some calculations for the associated data in Column B and then place the result on Column C. For example, I want to find the minimum/maximum of the value in Column B for the associated value in Column A, then place the result in Column C. I have started the code like this, For RowNdx = Selection(Selection.Cells.Count).Row To Selection(1).Row + 1 Step -1 If Cells(RowNdx, ColNum).Value = Cells(RowNdx - 1, ColNum).Value Then ... End If Next RowNdx I need help. Thanks. Faye Larson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Range Loop | Excel Programming | |||
Add a Range to an existing Range in a loop? | Excel Programming | |||
loop in range | Excel Programming | |||
Loop in a Range | Excel Programming | |||
Loop through a range | Excel Programming |