dear all,
i have been looking for solutions for my previous excel problems in this forum, and i must say i can find lots of info...thanks to all who have contributed!
however, i have this problem which i am not able to solve...hope u guys can help
I have the following range:
Column A
1 (row 1)
1000 (row 2)
1000 (row 3)
1002 (row 4)
1001 (row 5)
1003 (row 6)
1004 (row 7)
1005 (row 8)
(row 9)
Is there a formula (or UDF) to compare a row (A2 and A3+A1), (A4 and A5+A1), (A6 and A7+A1), (A8 and A9+A1)? The objective is to find how many values in the odd are less than or equal to the corresponding values in the preceding even cell.
The logic is something like this:
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
For the selected range in column A starting from A2
If row is (not empty and it's an integer)
If row is even row
If (value in nextrow + value in A1) <= (value in row)
count = count + 1
End if
End if
End if
Increment next row
Return count
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
your help is very much appreciated. Thanks in advance!
i have been looking for solutions for my previous excel problems in this forum, and i must say i can find lots of info...thanks to all who have contributed!
however, i have this problem which i am not able to solve...hope u guys can help
I have the following range:
Column A
1 (row 1)
1000 (row 2)
1000 (row 3)
1002 (row 4)
1001 (row 5)
1003 (row 6)
1004 (row 7)
1005 (row 8)
(row 9)
Is there a formula (or UDF) to compare a row (A2 and A3+A1), (A4 and A5+A1), (A6 and A7+A1), (A8 and A9+A1)? The objective is to find how many values in the odd are less than or equal to the corresponding values in the preceding even cell.
The logic is something like this:
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
For the selected range in column A starting from A2
If row is (not empty and it's an integer)
If row is even row
If (value in nextrow + value in A1) <= (value in row)
count = count + 1
End if
End if
End if
Increment next row
Return count
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
your help is very much appreciated. Thanks in advance!
Last edited: