jns1087
New Member
- Joined
- May 3, 2020
- Messages
- 13
- Office Version
- 2016
- 2013
- 2011
- 2010
- 2007
- Platform
- Windows
Hi Guys,
Can i ask for help with this, I'm playing with this formula and can't get it done properly. me and chatgpt are running in circles for hours, anyway.
I have this formula that i want to convert the first negative source value (Column C) into months from data on Col. B, then the subsequent negative values (Column C) will display only as 0, the only thing that the subsequent value will change when the first negative value becomes positive.
thanks,
jns
Can i ask for help with this, I'm playing with this formula and can't get it done properly. me and chatgpt are running in circles for hours, anyway.
I have this formula that i want to convert the first negative source value (Column C) into months from data on Col. B, then the subsequent negative values (Column C) will display only as 0, the only thing that the subsequent value will change when the first negative value becomes positive.
Col A | Col B | Col C | Col D | Col E | Col F | Col G | Col H |
---|---|---|---|---|---|---|---|
Month | Date | Source Value | Value Converted month | Goal: Put the month value for the first negative source value, and 0 to subsequent negative values, else if the first negative value became positive it will turn into 0, then the next negative value will result to its corresponding month | Result | Subsequent Result if first negative value turn to positive | Subsequent Result if second negative value turn to positive |
Jan | 1/1/2023 | 1 | 0 | 1 | 0 | 0 | 0 |
Feb | 2/1/2023 | -50 | 2 | 0 | 2 | 0 | 0 |
Mar | 3/1/2023 | 0 | 0 | 3 | 0 | 0 | 0 |
Apr | 4/1/2023 | 2 | 0 | 4 | 0 | 0 | 0 |
May | 5/1/2023 | 3 | 0 | 5 | 0 | 0 | 0 |
Jun | 6/1/2023 | 5 | 0 | 6 | 0 | 0 | 0 |
Jul | 7/1/2023 | -100 | 7 | 0 | 0 | 7 | 0 |
Aug | 8/1/2023 | 0 | 0 | 8 | 0 | 0 | 0 |
Sep | 9/1/2023 | -200 | 9 | 0 | 0 | 0 | 9 |
Oct | 10/1/2023 | 0 | 0 | 10 | 0 | 0 | 0 |
Nov | 11/1/2023 | 6 | 0 | 11 | 0 | 0 | 0 |
Dec | 12/1/2023 | 7 | 0 | 12 | 0 | 0 | 0 |
=IF(SUM(C2)<0,MONTH(B2),0) | =IF(C2<0,0,MONTH(B2)) | |
thanks,
jns