Continue formula until reaching a blank cell.
Alberta, if I understand correctly you want to have the formulas until Col E
is blank; then place the formulas within the loop; no matter in which order
you keep it.
If this post helps click Yes
---------------
Jacob Skaria
"Alberta Rose" wrote:
The first row the formulas are in is row 6. I also have some formatting in
other cells that I want to stop when column E is empty. My question is do I
put the first part of the formula at the top of my macro and the second part
at the end of my macro?
Thanks...Laurie
"Jacob Skaria" wrote:
Dear Alberta
Try the below.
RowCount = 1
'I am not sure what row count is at the beginning. change to suit
'Loop Until E is empty
Do While Range("E" & RowCount) < ""
'put your formulas 1,2,3 inside the loop
'Range("U" & RowCount) = "=IF(V" & RowCount & "<AA" & RowCount & _
",AA" & RowCount & "*AG" & RowCount & ",MAX(K" & RowCount & _
",N" & RowCount & ",AA" & RowCount & "*AG" & RowCount & "))"
RowCount = RowCount + 1
Loop
If this post helps click Yes
---------------
Jacob Skaria
"Alberta Rose" wrote:
I have 3 formulas that need to be repeated in column U (dependant on the cost
type) as long as there is information in column E. One of the formulas I
have in Column U is: =IF(V" & RowCount & "<AA" & RowCount & _
",AA" & RowCount & "*AG" & RowCount & ",MAX(K" & RowCount & _
",N" & RowCount & ",AA" & RowCount & "*AG" & RowCount & "))".
Would I need to put another =IF in front of this code to have it proceed and
run this formula until it encounters a blank cell in column E?
It's my last little bit on this MONSTER! Help anyone ??
|