pao13
Member
Hi. I've attached my spreadsheet. I want a macro or a function but preferably a macro for the following: In column K when the cells start being negative numbers eg. cell K5 I want Z6 to have a 1 and the same for Z7. The results I want for the macro need to be the same with the Z column (I have done it manually). In Z8 if K7 is negative to have 2 (Z9 also 2). In Z10 if K9 is negative to have 3 (Z11 also 3). When K turns positive (K17 in this case) then in Z I don't care what the number will be. But when K turns negative again (K35 in this case) I want Z36 to have a 1 again. So to "restart" the series.
Hope you understand what I'm doing. Sorry if I did not explain it correctly. English is not my native language!
Hope you understand what I'm doing. Sorry if I did not explain it correctly. English is not my native language!