thanks for the clarification
a little more complicated then
in the example
you have 2 - where it shows 400 on the 1/1/22
then -200 on the 3/1/22 - WHY 2 days ???
i think possibly need quite a few more examples of the permutations that may be needed
i may not be able to help here , i maybe missing the obvious and cannot see it - ...... looks like a MIN and a MAX dates BUT not following the example,
when is the start date and why , when is the end date and why - then we can get the MIN and MAX and take them away to get days
but as posted - rather than image use xl2bb or a share
Book2 |
---|
|
---|
| A | B | C | D | E |
---|
1 | | | | | |
---|
2 | 1/1/23 | | 100 | | |
---|
3 | 2/2/23 | | 0 | or is this the start | |
---|
4 | 3/23/23 | | -100 | Start count of days - | 3/3/23 |
---|
5 | 4/4/23 | | 0 | | |
---|
6 | 5/4/23 | | 0 | | |
---|
7 | 5/10/23 | | 200 | | |
---|
8 | 6/11/23 | | 0 | | |
---|
9 | 9/1/23 | | -200 | | |
---|
10 | 10/2/23 | | 0 | | |
---|
11 | 10/3/23 | | -100 | last count of days | 10/3/23 |
---|
12 | 11/4/23 | | 200 | | |
---|
13 | 12/4/23 | | 200 | | |
---|
14 | | | | | |
---|
|
---|
Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet. Plus we cannot see any of the formulas used.
Therefore -
A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.
This will possibly enable a quicker and more accurate solution for you.
MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.
Excel 'mini-sheet' in messages - XL2BB Although experts prefer to read your description and question instead of working in your actual file to solve your problem, there are times that it is difficult to explain an issue without providing actual...
www.mrexcel.com
You can also test to see if it works ok, in the "Test Here" forum.
Use this forum to test your signature, learn bbcode, smilies, XL2BB, etc. Threads in this forum are automatically deleted after no replies for seven (7) days
www.mrexcel.com
OR if you cannot get XL2BB to work, or have restrictions on your PC
then put the sample spreadsheet onto a share
I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed
Make sure you set any share or google to share to everyone