samadhan 123
New Member
- Joined
- Jun 11, 2023
- Messages
- 2
- Office Version
- 2019
- Platform
- Windows
i have following type of sheet I wrote formulas but when comes ABC i want to calculate same formula by considering just before trending high or trending low Highs and lows
sqlexcel.csv | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | Date | Open | High | Low | Close | CandleType | ||
2 | Fri Jun 02 2023 09:15:00 GMT+0530 (India Standard Time) | 965.9 | 969.65 | 962.25 | 962.65 | Trending Candle | ||
3 | Fri Jun 02 2023 09:20:00 GMT+0530 (India Standard Time) | 962.65 | 963.35 | 961 | 962.3 | Trending Low | ||
4 | Fri Jun 02 2023 09:25:00 GMT+0530 (India Standard Time) | 962.3 | 962.4 | 958.5 | 958.6 | Trending Low | ||
5 | Fri Jun 02 2023 09:30:00 GMT+0530 (India Standard Time) | 958.95 | 960.6 | 958.4 | 960.6 | Trending Low | ||
6 | Fri Jun 02 2023 09:35:00 GMT+0530 (India Standard Time) | 960.6 | 961.25 | 959.25 | 959.25 | Trending High | ||
7 | Fri Jun 02 2023 09:40:00 GMT+0530 (India Standard Time) | 959.25 | 960 | 958 | 958.5 | Trending Low | ||
8 | Fri Jun 02 2023 09:45:00 GMT+0530 (India Standard Time) | 958.5 | 959.05 | 957.55 | 958.2 | Trending Low | ||
9 | Fri Jun 02 2023 09:50:00 GMT+0530 (India Standard Time) | 958.2 | 959.65 | 957.3 | 957.65 | ABC | ||
10 | Fri Jun 02 2023 09:55:00 GMT+0530 (India Standard Time) | 957.65 | 958.35 | 957.25 | 958.2 | ABC | ||
11 | Fri Jun 02 2023 10:00:00 GMT+0530 (India Standard Time) | 958.2 | 958.3 | 957.6 | 958 | ABC | ||
12 | Fri Jun 02 2023 10:05:00 GMT+0530 (India Standard Time) | 958.2 | 958.25 | 957 | 957.25 | ABC | ||
13 | Fri Jun 02 2023 10:10:00 GMT+0530 (India Standard Time) | 957.25 | 957.25 | 956.35 | 957.2 | ABC | ||
14 | Fri Jun 02 2023 10:15:00 GMT+0530 (India Standard Time) | 957.35 | 957.85 | 956.55 | 957.65 | ABC | ||
15 | Fri Jun 02 2023 10:20:00 GMT+0530 (India Standard Time) | 957.65 | 957.65 | 955.5 | 955.7 | ABC | ||
16 | Fri Jun 02 2023 10:25:00 GMT+0530 (India Standard Time) | 955.9 | 956 | 954.65 | 955 | ABC | ||
17 | Fri Jun 02 2023 10:30:00 GMT+0530 (India Standard Time) | 955 | 956.9 | 954.75 | 956.9 | ABC | ||
18 | Fri Jun 02 2023 10:35:00 GMT+0530 (India Standard Time) | 956.9 | 957.75 | 956.5 | 957.65 | ABC | ||
19 | Fri Jun 02 2023 10:40:00 GMT+0530 (India Standard Time) | 957.65 | 958.65 | 956.7 | 957 | ABC | ||
20 | Fri Jun 02 2023 10:45:00 GMT+0530 (India Standard Time) | 957 | 958.45 | 956.1 | 957.95 | ABC | ||
21 | Fri Jun 02 2023 10:50:00 GMT+0530 (India Standard Time) | 958 | 958.5 | 957.1 | 958.45 | ABC | ||
22 | Fri Jun 02 2023 10:55:00 GMT+0530 (India Standard Time) | 958.45 | 960.4 | 958 | 960.2 | ABC | ||
23 | Fri Jun 02 2023 11:00:00 GMT+0530 (India Standard Time) | 960.2 | 960.2 | 959.05 | 959.4 | ABC | ||
24 | Fri Jun 02 2023 11:05:00 GMT+0530 (India Standard Time) | 959.4 | 959.85 | 958.25 | 958.7 | ABC | ||
25 | Fri Jun 02 2023 11:10:00 GMT+0530 (India Standard Time) | 958.65 | 959.1 | 958.5 | 958.95 | ABC | ||
26 | Fri Jun 02 2023 11:15:00 GMT+0530 (India Standard Time) | 959.05 | 959.9 | 958.95 | 959.35 | ABC | ||
27 | Fri Jun 02 2023 11:20:00 GMT+0530 (India Standard Time) | 959.55 | 960.2 | 959 | 960 | ABC | ||
28 | Fri Jun 02 2023 11:25:00 GMT+0530 (India Standard Time) | 960 | 960.8 | 959.55 | 960.25 | ABC | ||
29 | Fri Jun 02 2023 11:30:00 GMT+0530 (India Standard Time) | 960.25 | 961.55 | 960.25 | 961.45 | ABC | ||
30 | Fri Jun 02 2023 11:35:00 GMT+0530 (India Standard Time) | 961.05 | 961.45 | 961 | 961 | ABC | ||
31 | Fri Jun 02 2023 11:40:00 GMT+0530 (India Standard Time) | 961.05 | 961.45 | 961 | 961.15 | ABC | ||
32 | Fri Jun 02 2023 11:45:00 GMT+0530 (India Standard Time) | 961.15 | 961.25 | 960.5 | 961 | ABC | ||
33 | Fri Jun 02 2023 11:50:00 GMT+0530 (India Standard Time) | 961 | 961.15 | 961 | 961.15 | ABC | ||
34 | Fri Jun 02 2023 11:55:00 GMT+0530 (India Standard Time) | 961.1 | 963.1 | 961 | 962.25 | ABC | ||
35 | Fri Jun 02 2023 12:00:00 GMT+0530 (India Standard Time) | 962.2 | 962.25 | 961.9 | 962 | ABC | ||
36 | Fri Jun 02 2023 12:05:00 GMT+0530 (India Standard Time) | 962 | 962.7 | 961.8 | 962 | ABC | ||
37 | Fri Jun 02 2023 12:10:00 GMT+0530 (India Standard Time) | 961.8 | 962.7 | 961.7 | 962.15 | ABC | ||
38 | Fri Jun 02 2023 12:15:00 GMT+0530 (India Standard Time) | 962.15 | 962.5 | 962 | 962 | ABC | ||
39 | Fri Jun 02 2023 12:20:00 GMT+0530 (India Standard Time) | 962.05 | 962.25 | 962 | 962.2 | ABC | ||
40 | Fri Jun 02 2023 12:25:00 GMT+0530 (India Standard Time) | 962.25 | 963 | 962 | 962.65 | ABC | ||
41 | Fri Jun 02 2023 12:30:00 GMT+0530 (India Standard Time) | 962.65 | 963.8 | 962.05 | 962.2 | ABC | ||
42 | Fri Jun 02 2023 12:35:00 GMT+0530 (India Standard Time) | 962.2 | 962.75 | 962.05 | 962.05 | ABC | ||
43 | Fri Jun 02 2023 12:40:00 GMT+0530 (India Standard Time) | 962.05 | 962.45 | 962.05 | 962.2 | ABC | ||
44 | Fri Jun 02 2023 12:45:00 GMT+0530 (India Standard Time) | 962.05 | 963.2 | 962.05 | 962.95 | ABC | ||
45 | Fri Jun 02 2023 12:50:00 GMT+0530 (India Standard Time) | 962.7 | 963.25 | 962.15 | 962.6 | ABC | ||
46 | Fri Jun 02 2023 12:55:00 GMT+0530 (India Standard Time) | 962.6 | 962.9 | 962.2 | 962.2 | ABC | ||
47 | Fri Jun 02 2023 13:00:00 GMT+0530 (India Standard Time) | 962.2 | 962.45 | 962 | 962 | ABC | ||
48 | Fri Jun 02 2023 13:05:00 GMT+0530 (India Standard Time) | 962 | 962.2 | 962 | 962 | ABC | ||
49 | Fri Jun 02 2023 13:10:00 GMT+0530 (India Standard Time) | 962 | 962.4 | 962 | 962 | ABC | ||
50 | Fri Jun 02 2023 13:15:00 GMT+0530 (India Standard Time) | 962 | 962.25 | 962 | 962.05 | ABC | ||
51 | Fri Jun 02 2023 13:20:00 GMT+0530 (India Standard Time) | 962 | 962.2 | 960.3 | 960.3 | ABC | ||
52 | Fri Jun 02 2023 13:25:00 GMT+0530 (India Standard Time) | 960.3 | 961.65 | 960.05 | 961.3 | ABC | ||
53 | Fri Jun 02 2023 13:30:00 GMT+0530 (India Standard Time) | 961.3 | 962 | 961.05 | 961.95 | ABC | ||
54 | Fri Jun 02 2023 13:35:00 GMT+0530 (India Standard Time) | 961.95 | 962.6 | 961.35 | 962.3 | ABC | ||
55 | Fri Jun 02 2023 13:40:00 GMT+0530 (India Standard Time) | 962.3 | 962.8 | 962 | 962.35 | ABC | ||
56 | Fri Jun 02 2023 13:45:00 GMT+0530 (India Standard Time) | 962.35 | 962.6 | 962 | 962 | ABC | ||
57 | Fri Jun 02 2023 13:50:00 GMT+0530 (India Standard Time) | 962 | 962.5 | 962 | 962.05 | ABC | ||
58 | Fri Jun 02 2023 13:55:00 GMT+0530 (India Standard Time) | 962.05 | 962.5 | 962 | 962.05 | ABC | ||
59 | Fri Jun 02 2023 14:00:00 GMT+0530 (India Standard Time) | 962.05 | 962.8 | 962 | 962.2 | ABC | ||
60 | Fri Jun 02 2023 14:05:00 GMT+0530 (India Standard Time) | 962.2 | 963.55 | 962.2 | 963.15 | ABC | ||
61 | Fri Jun 02 2023 14:10:00 GMT+0530 (India Standard Time) | 963.15 | 964 | 962.95 | 963.9 | ABC | ||
62 | Fri Jun 02 2023 14:15:00 GMT+0530 (India Standard Time) | 963.95 | 964.5 | 963.35 | 964.2 | ABC | ||
63 | Fri Jun 02 2023 14:20:00 GMT+0530 (India Standard Time) | 964.2 | 964.5 | 963 | 964.35 | ABC | ||
64 | Fri Jun 02 2023 14:25:00 GMT+0530 (India Standard Time) | 964.35 | 964.5 | 964 | 964.05 | ABC | ||
65 | Fri Jun 02 2023 14:30:00 GMT+0530 (India Standard Time) | 964.05 | 964.1 | 964 | 964 | ABC | ||
66 | Fri Jun 02 2023 14:35:00 GMT+0530 (India Standard Time) | 964 | 964.7 | 964 | 964.25 | ABC | ||
67 | Fri Jun 02 2023 14:40:00 GMT+0530 (India Standard Time) | 964.5 | 964.8 | 964 | 964.65 | ABC | ||
68 | Fri Jun 02 2023 14:45:00 GMT+0530 (India Standard Time) | 964.65 | 965.85 | 964.35 | 965.6 | ABC | ||
69 | Fri Jun 02 2023 14:50:00 GMT+0530 (India Standard Time) | 965.6 | 965.6 | 964.35 | 964.95 | ABC | ||
70 | Fri Jun 02 2023 14:55:00 GMT+0530 (India Standard Time) | 964.95 | 965.5 | 964.75 | 965.25 | ABC | ||
71 | Fri Jun 02 2023 15:00:00 GMT+0530 (India Standard Time) | 965.3 | 966.6 | 964.95 | 966.6 | ABC | ||
72 | Fri Jun 02 2023 15:05:00 GMT+0530 (India Standard Time) | 966.6 | 967.2 | 965.7 | 965.9 | ABC | ||
73 | Fri Jun 02 2023 15:10:00 GMT+0530 (India Standard Time) | 965.9 | 966.75 | 965.4 | 966.1 | ABC | ||
74 | Fri Jun 02 2023 15:15:00 GMT+0530 (India Standard Time) | 966.1 | 966.1 | 965.15 | 965.85 | ABC | ||
75 | Fri Jun 02 2023 15:20:00 GMT+0530 (India Standard Time) | 965.5 | 966 | 965.05 | 965.75 | ABC | ||
76 | Fri Jun 02 2023 15:25:00 GMT+0530 (India Standard Time) | 965.7 | 967 | 962.55 | 965 | ABC | ||
sqlexcel |
Cell Formulas | ||
---|---|---|
Range | Formula | |
F3 | F3 | =IF(AND(F2="Trending Candle",C3>C2,D3>=D2),"Trending High",IF(AND(F2="Trending Candle",D3<D2,C3<=C2),"Trending Low","")) |
F4:F76 | F4 | =IF(AND(OR(F3="Trending Low",F3="Trending High"),C4>C3,D4>=D3),"Trending High",IF(AND(OR(F3="Trending Low",F3="Trending High"),C4<=C3,D4<D3),"Trending Low","ABC")) |