Lisa P NYC
New Member
- Joined
- Feb 26, 2020
- Messages
- 16
- Office Version
- 365
- 2016
- Platform
- Windows
I would greatly appreciate it if someone could help me. I am feeling not so smart today. LOL
I need to create a formula based on several criteria. The first step is to find all of the matches in one column, then I need to take all of the items that match and tell it to look at another column, to check for matches there. Not the same matches as in the first column.
For example, the first column contains a list of 50 to 100 products. I need to locate all of the same products. The second column says buy or sell, nothing else. I need to find all of the buys of the same product and all of the sells of the same product. Once they are found I need to check if it occurred within a 5 minute time frame. That data is in a third column.
I realize the explanation is super confusing so I have attached the sheet.
This is my Goal
1 - Find all of the matches in Column G
2 - If there are matches look at Column E and A - Look for Buys of the same products and B - Look for Sells of the same products
3 - Take all Buys (same product) look at Column D and see if they occurred in 5 or less minutes of each other. Same for Sells (same product) D is in hours, minutes, and seconds. 22:30:25 = 22 hundred hours 30 minutes and 25 seconds.
4 - If true say yes or whatever trigger anyone thinks is the easiest.
At this point I am not even sure it is possible??
Thank you in advance to anyone who may be able to help.
Lisa
I need to create a formula based on several criteria. The first step is to find all of the matches in one column, then I need to take all of the items that match and tell it to look at another column, to check for matches there. Not the same matches as in the first column.
For example, the first column contains a list of 50 to 100 products. I need to locate all of the same products. The second column says buy or sell, nothing else. I need to find all of the buys of the same product and all of the sells of the same product. Once they are found I need to check if it occurred within a 5 minute time frame. That data is in a third column.
I realize the explanation is super confusing so I have attached the sheet.
This is my Goal
1 - Find all of the matches in Column G
2 - If there are matches look at Column E and A - Look for Buys of the same products and B - Look for Sells of the same products
3 - Take all Buys (same product) look at Column D and see if they occurred in 5 or less minutes of each other. Same for Sells (same product) D is in hours, minutes, and seconds. 22:30:25 = 22 hundred hours 30 minutes and 25 seconds.
4 - If true say yes or whatever trigger anyone thinks is the easiest.
At this point I am not even sure it is possible??
Thank you in advance to anyone who may be able to help.
Lisa
Book1.xlsx | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | |||
1 | Acct | Name | Date | Time open | Type | Lot | Asset | Price | SL | TP | Time date | Time Close | Price Close | xyz | Profit | ||
2 | 2011100 | #REF! | 2024.05.14 | 0:28:32 | buy | 0.01 | USDJPYc | 156.225 | 0 | 157.655 | 2024.05.14 | 5:11:11 | 156.461 | Mobile | 1.51 | ||
3 | 2011100 | #REF! | 2024.05.14 | 1:02:04 | buy | 1 | GBPJPYc | 196.201 | 0 | 0 | 2024.05.14 | 16:03:00 | 196.632 | Mobile | 275.18 | ||
4 | 2011100 | #REF! | 2024.05.14 | 1:02:18 | buy | 1.5 | GBPJPYc | 196.201 | 0 | 0 | 2024.05.14 | 16:03:00 | 196.632 | Mobile | 412.76 | ||
5 | 2011100 | #REF! | 2024.05.14 | 1:02:26 | buy | 2.5 | GBPJPYc | 196.201 | 0 | 197.39 | 2024.05.14 | 7:54:38 | 196.337 | Mobile | 217.41 | ||
6 | 2011100 | #REF! | 2024.05.13 | 1:10:17 | buy | 10 | GBPJPYc | 195.056 | 195.917 | 200.358 | 2024.05.14 | 11:14:27 | 195.221 | Client | 1 058.08 | ||
7 | 2011100 | #REF! | 2024.05.14 | 1:15:44 | buy | 1.5 | XAUUSDc | 2337.62 | 2333.85 | 2348 | 2024.05.14 | 5:37:58 | 2342.69 | Mobile | 760.5 | ||
8 | 2011100 | #REF! | 2024.05.14 | 1:15:59 | buy | 1.5 | XAUUSDc | 2337.65 | 2333.5 | 2348.04 | 2024.05.14 | 5:38:03 | 2342.69 | Mobile | 756 | ||
9 | 2011100 | #REF! | 2024.05.14 | 1:17:37 | sell | 0.1 | USDJPYc | 156.188 | 156.271 | 155.479 | 2024.05.14 | 1:37:23 | 156.23 | Client | -2.69 | ||
10 | 2011100 | #REF! | 2024.05.14 | 1:18:27 | buy | 1.5 | DJ30.s | 39462.17 | 39292.73 | 0 | 2024.05.14 | 3:43:28 | 39470.73 | Client | 128.4 | ||
11 | 2011100 | #REF! | 2024.05.13 | 1:19:45 | buy | 5 | USTEC.s | 18148.66 | 18079.44 | 18260.46 | 2024.05.14 | 15:30:05 | 18118.62 | Client | -1 502.00 | ||
12 | 2011100 | #REF! | 2024.05.14 | 1:37:27 | buy | 0.1 | USDJPYc | 156.23 | 0 | 156.788 | 2024.05.14 | 8:10:26 | 156.411 | Client | 11.57 | ||
13 | 2011100 | #REF! | 2024.05.14 | 1:42:19 | sell | 0.1 | DJ30.s | 39459.73 | 39469.34 | 39417.66 | 2024.05.14 | 2:13:53 | 39469.34 | Client | -9.61 | ||
14 | 2011100 | #REF! | 2024.05.14 | 1:48:36 | sell | 5 | XAUUSDc | 2338.35 | 2338.65 | 0 | 2024.05.14 | 2:48:14 | 2338.65 | Mobile | -150 | ||
15 | 2011100 | #REF! | 2024.05.14 | 1:49:08 | sell | 0.4 | XAUUSDc | 2338.31 | 2341.64 | 2334 | 2024.05.14 | 4:56:11 | 2341.64 | Mobile | -133.2 | ||
16 | 2011100 | #REF! | 2024.05.14 | 1:49:46 | sell | 0.2 | XAUUSDc | 2338.17 | 2338.91 | 2334.73 | 2024.05.14 | 2:48:17 | 2338.91 | Client | -14.8 | ||
17 | 2011100 | #REF! | 2024.05.14 | 1:53:21 | sell | 0.1 | GBPJPYc | 196.169 | 196.236 | 196.004 | 2024.05.14 | 2:50:00 | 196.236 | Client | -4.29 | ||
18 | 2011100 | #REF! | 2024.05.14 | 1:56:34 | sell | 0.1 | DJ30.s | 39463.73 | 39469.48 | 39417.14 | 2024.05.14 | 2:13:53 | 39469.48 | Client | -5.75 | ||
19 | 2011100 | #REF! | 2024.05.14 | 2:04:20 | buy | 2.5 | DJ30.s | 39467.17 | 39427.44 | 39656 | 2024.05.14 | 3:35:31 | 39473.73 | Mobile | 164 | ||
20 | 2011100 | #REF! | 2024.05.14 | 2:04:39 | buy | 1 | DJ30.s | 39467.17 | 39409.55 | 39677.43 | 2024.05.14 | 3:35:27 | 39472.73 | Mobile | 55.6 | ||
21 | 2011100 | #REF! | 2024.05.14 | 2:10:34 | sell | 1 | XAUUSDc | 2338.09 | 2343 | 2329 | 2024.05.14 | 3:45:26 | 2335.5 | Mobile | 259 | ||
22 | 2011100 | #REF! | 2024.05.14 | 2:19:41 | sell | 1 | XAUUSDc | 2338.07 | 2343 | 2329 | 2024.05.14 | 3:44:49 | 2335.24 | Mobile | 283 | ||
23 | 2011100 | #REF! | 2024.05.14 | 2:32:21 | sell | 0.05 | XAUUSDc | 2337.72 | 0 | 0 | 2024.05.14 | 3:22:53 | 2339.6 | Client | -9.4 | ||
24 | 2011100 | #REF! | 2024.05.14 | 2:34:03 | sell | 0.2 | XAUUSDc | 2337.73 | 0 | 0 | 2024.05.14 | 3:22:35 | 2339.57 | Client | -36.8 | ||
25 | 2011100 | #REF! | 2024.05.01 | 2:38:22 | sell | 0.5 | GBPAUDc | 1.92844 | 1.932 | 0 | 2024.05.14 | 18:00:22 | 1.90046 | Mobile | 926.74 | ||
26 | 2011100 | #REF! | 2024.05.13 | 2:43:23 | buy | 0.2 | XAUUSDc | 2361.13 | 2322 | 2358 | 2024.05.14 | 19:55:00 | 2354.49 | Mobile | -132.8 | ||
27 | 2011100 | #REF! | 2024.05.14 | 2:45:24 | sell | 1 | XAUUSDc | 2337.84 | 2343 | 2329 | 2024.05.14 | 3:44:53 | 2335.29 | Mobile | 255 | ||
28 | 2011100 | #REF! | 2024.05.14 | 2:49:36 | sell | 0.5 | XAUUSDc | 2338.2 | 0 | 0 | 2024.05.14 | 23:44:16 | 2357.88 | Client | -984 | ||
29 | 2011100 | #REF! | 2024.05.14 | 2:49:44 | sell | 0.5 | XAUUSDc | 2338.61 | 0 | 0 | 2024.05.14 | 23:44:09 | 2357.93 | Client | -966 | ||
30 | 2011100 | #REF! | 2024.05.14 | 2:50:49 | sell | 1 | XAUUSDc | 2338.92 | 2343 | 2329 | 2024.05.14 | 3:45:56 | 2335.89 | Mobile | 303 | ||
31 | 2011100 | #REF! | 2024.05.14 | 3:16:15 | sell | 5 | USDJPYc | 156.259 | 156.293 | 156.104 | 2024.05.14 | 3:17:13 | 156.293 | Client | -108.77 | ||
32 | 2011100 | #REF! | 2024.05.14 | 3:17:39 | sell | 5 | USDJPYc | 156.263 | 156.31 | 156.049 | 2024.05.14 | 3:27:32 | 156.31 | Client | -150.34 | ||
33 | 2011100 | #REF! | 2024.05.10 | 3:25:00 | sell | 1.51 | USDJPYc | 155.525 | 0 | 0 | 2024.05.14 | 18:51:41 | 156.481 | Expert | -922.51 | ||
34 | 2011100 | #REF! | 2024.05.14 | 3:30:18 | buy | 3 | GBPJPYc | 196.311 | 0 | 197.033 | 2024.05.14 | 3:30:59 | 196.264 | Client | -90.19 | ||
35 | 2011100 | #REF! | 2024.05.14 | 3:30:22 | buy | 3 | USDJPYc | 156.359 | 0 | 0 | 2024.05.14 | 3:31:00 | 156.332 | Client | -51.81 | ||
36 | 2011100 | #REF! | 2024.05.14 | 3:31:36 | sell | 3 | GBPJPYc | 196.269 | 196.31 | 195.982 | 2024.05.14 | 3:34:34 | 196.31 | Client | -78.67 | ||
37 | 2011100 | #REF! | 2024.05.14 | 3:31:36 | sell | 3 | USDJPYc | 156.328 | 156.368 | 156.094 | 2024.05.14 | 3:34:52 | 156.358 | Client | -57.56 | ||
38 | 2011100 | #REF! | 2024.05.14 | 3:37:44 | buy | 5 | USDJPYc | 156.362 | 156.17 | 160.154 | 2024.05.14 | 5:58:15 | 156.427 | Mobile | 208.4 | ||
39 | 2011100 | #REF! | 2024.05.14 | 3:42:53 | buy | 10 | USDJPYc | 156.381 | 156.171 | 157.282 | 2024.05.14 | 5:58:10 | 156.427 | Mobile | 295.35 | ||
40 | 2011100 | #REF! | 2024.05.14 | 3:45:44 | buy | 0.24 | XAUUSDc | 2335.67 | 0 | 2337 | 2024.05.14 | 3:58:26 | 2336.84 | Mobile | 28.08 | ||
41 | 2011100 | #REF! | 2024.05.14 | 3:46:01 | buy | 1 | XAUUSDc | 2335.66 | 0 | 0 | 2024.05.14 | 4:01:19 | 2337.32 | Mobile | 166 | ||
42 | 2011100 | #REF! | 2024.05.14 | 3:46:35 | buy | 1 | XAUUSDc | 2335.5 | 0 | 0 | 2024.05.14 | 4:01:24 | 2337.59 | Mobile | 209 | ||
43 | 2011100 | #REF! | 2024.05.14 | 3:50:23 | buy | 1 | XAUUSDc | 2335.42 | 0 | 0 | 2024.05.14 | 4:01:28 | 2337.8 | Mobile | 238 | ||
44 | 2011100 | #REF! | 2024.05.14 | 4:01:36 | sell | 1 | XAUUSDc | 2337.83 | 2353 | 2336 | 2024.05.14 | 9:37:51 | 2337.91 | Mobile | -8 | ||
45 | 2011100 | #REF! | 2024.05.14 | 4:01:54 | sell | 1 | XAUUSDc | 2337.73 | 2353 | 2336 | 2024.05.14 | 9:38:01 | 2337.76 | Mobile | -3 | ||
46 | 2011100 | #REF! | 2024.05.14 | 4:02:05 | sell | 1.01 | XAUUSDc | 2338.3 | 0 | 0 | 2024.05.14 | 4:05:43 | 2338.11 | Mobile | 19.19 | ||
47 | 2011100 | #REF! | 2024.05.14 | 4:02:43 | sell | 1 | XAUUSDc | 2338.88 | 2343 | 2330 | 2024.05.14 | 4:40:48 | 2338.62 | Mobile | 26 | ||
48 | 2011100 | #REF! | 2024.05.14 | 4:07:34 | buy | 0.24 | XAUUSDc | 2337.8 | 0 | 0 | 2024.05.14 | 4:11:44 | 2339.29 | Mobile | 35.76 | ||
49 | 2011100 | #REF! | 2024.05.14 | 4:09:36 | sell | 0.1 | XAUUSDc | 2338.54 | 0 | 0 | 2024.05.14 | 4:27:05 | 2338.51 | Mobile | 0.3 | ||
50 | 2011100 | #REF! | 2024.05.14 | 4:10:17 | sell | 11.1 | XAUUSDc | 2338.73 | 2338.73 | 0 | 2024.05.14 | 4:27:47 | 2338.73 | Mobile | 0 | ||
51 | 2011100 | #REF! | 2024.05.14 | 4:11:49 | buy | 0.02 | USDJPYc | 156.394 | 156.286 | 0 | 2024.05.14 | 12:29:59 | 156.286 | Mobile | -1.38 | ||
52 | 2011100 | #REF! | 2024.05.13 | 4:12:21 | buy | 8 | GBPJPYc | 194.834 | 195.465 | 200.447 | 2024.05.14 | 11:17:18 | 195.586 | Client | 3 864.24 | ||
53 | 2011100 | #REF! | 2024.05.14 | 4:12:38 | sell | 1 | XAUUSDc | 2339.85 | 2343 | 2330 | 2024.05.14 | 4:40:54 | 2338.69 | Mobile | 116 | ||
54 | 2011100 | #REF! | 2024.05.14 | 4:17:25 | sell | 1 | GBPUSDc | 1.2555 | 1.25825 | 1.24732 | 2024.05.14 | 7:15:11 | 1.25585 | Client | -35 | ||
55 | 2011100 | #REF! | 2024.05.14 | 4:17:29 | sell | 1 | GBPUSDc | 1.25547 | 1.2582 | 1.24732 | 2024.05.14 | 7:15:09 | 1.25585 | Client | -38 | ||
56 | 2011100 | #REF! | 2024.05.14 | 4:17:31 | sell | 1 | GBPUSDc | 1.25547 | 1.2582 | 1.24732 | 2024.05.14 | 7:15:08 | 1.25585 | Client | -38 | ||
57 | 2011100 | #REF! | 2024.05.14 | 4:17:31 | sell | 1 | GBPUSDc | 1.25547 | 1.25815 | 1.24732 | 2024.05.14 | 7:15:07 | 1.25585 | Client | -38 | ||
58 | 2011100 | #REF! | 2024.05.14 | 4:18:05 | sell | 5 | XAUUSDc | 2339.86 | 2341.8 | 0 | 2024.05.14 | 4:24:09 | 2339.16 | Mobile | 350 | ||
59 | 2011100 | #REF! | 2024.05.14 | 4:27:49 | sell | 0.22 | XAUUSDc | 2338.81 | 2346 | 2333 | 2024.05.14 | 5:00:26 | 2342.69 | Mobile | -85.36 | ||
60 | 2011100 | #REF! | 2024.05.14 | 4:30:52 | sell | 1 | GBPUSDc | 1.25556 | 1.2675 | 1.24752 | 2024.05.14 | 7:14:57 | 1.25585 | Client | -29 | ||
61 | 2011100 | #REF! | 2024.05.14 | 4:31:06 | sell | 1 | GBPUSDc | 1.25551 | 1.2675 | 1.24752 | 2024.05.14 | 7:14:56 | 1.25585 | Client | -34 | ||
62 | 2011100 | #REF! | 2024.05.14 | 4:36:06 | sell | 0.1 | XAUUSDc | 2339.86 | 2339.86 | 0 | 2024.05.14 | 4:45:48 | 2339.3 | Mobile | 5.6 | ||
63 | 2011100 | #REF! | 2024.05.14 | 4:36:31 | buy | 0.34 | XAUUSDc | 2340.22 | 2336.3 | 2348 | 2024.05.14 | 4:56:14 | 2341.22 | Mobile | 34 | ||
64 | 2011100 | #REF! | 2024.05.08 | 4:40:31 | buy | 0.5 | CHFJPYc | 170.406 | 170 | 0 | 2024.05.14 | 18:00:19 | 172.575 | Mobile | 693.38 | ||
65 | 2011100 | #REF! | 2024.05.14 | 4:42:06 | buy | 0.1 | XAUUSDc | 2338.22 | 0 | 0 | 2024.05.14 | 4:45:32 | 2339.22 | Mobile | 10 | ||
66 | 2011100 | #REF! | 2024.05.14 | 4:52:56 | sell | 1 | XAUUSDc | 2340.23 | 2353 | 2336 | 2024.05.14 | 9:33:06 | 2340.74 | Mobile | -51 | ||
67 | 2011100 | #REF! | 2024.05.14 | 4:53:39 | sell | 1 | XAUUSDc | 2340.22 | 2353 | 2336 | 2024.05.14 | 9:32:25 | 2340.07 | Mobile | 15 | ||
68 | 2011100 | #REF! | 2024.05.14 | 4:55:25 | sell | 0.7 | XAUUSDc | 2340.62 | 0 | 0 | 2024.05.14 | 15:30:58 | 2339.61 | Mobile | 70.7 | ||
69 | 2011100 | #REF! | 2024.05.14 | 4:55:52 | buy | 0.34 | XAUUSDc | 2341.05 | 0 | 2343 | 2024.05.14 | 4:59:34 | 2341.72 | Mobile | 22.78 | ||
70 | 2011100 | #REF! | 2024.05.14 | 4:56:03 | sell | 0.01 | XAUUSDc | 2340.85 | 0 | 0 | 2024.05.14 | 4:57:02 | 2341.53 | Mobile | -0.68 | ||
71 | 2011100 | #REF! | 2024.05.14 | 4:56:39 | buy | 1.5 | XAUUSDc | 2341.55 | 2337 | 2345.6 | 2024.05.14 | 7:42:31 | 2344.14 | Mobile | 388.5 | ||
72 | 2011100 | #REF! | 2024.05.14 | 4:58:02 | buy | 0.34 | XAUUSDc | 2341.69 | 0 | 0 | 2024.05.14 | 4:59:56 | 2341.78 | Mobile | 3.06 | ||
73 | 2011100 | #REF! | 2024.05.14 | 4:59:04 | buy | 0.42 | XAUUSDc | 2342.14 | 2339 | 2346 | 2024.05.14 | 5:01:30 | 2342.69 | Mobile | 23.1 | ||
74 | 2011100 | #REF! | 2024.05.14 | 4:59:31 | buy | 0.21 | XAUUSDc | 2341.99 | 2337 | 2376 | 2024.05.14 | 8:10:22 | 2343.26 | Mobile | 26.67 | ||
75 | 2011100 | #REF! | 2024.05.14 | 5:00:35 | buy | 0.22 | XAUUSDc | 2342.56 | 2339 | 2348 | 2024.05.14 | 5:11:11 | 2343.01 | Mobile | 9.9 | ||
76 | 2011100 | #REF! | 2024.05.14 | 5:00:52 | buy | 0.2 | XAUUSDc | 2342.89 | 2341.5 | 2368 | 2024.05.14 | 8:02:16 | 2343.4 | Mobile | 10.2 | ||
77 | 2011100 | #REF! | 2024.05.14 | 5:01:12 | sell | 1 | XAUUSDc | 2342.57 | 0 | 2334 | 2024.05.14 | 5:48:37 | 2342.38 | Mobile | 19 | ||
78 | 2011100 | #REF! | 2024.05.14 | 5:02:10 | buy | 1.5 | XAUUSDc | 2342.26 | 2337 | 2345.3 | 2024.05.14 | 7:42:31 | 2344.14 | Mobile | 282 | ||
Test |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B2:B78 | B2 | =XLOOKUP(A2,#REF!,#REF!) |