# Formula to count negative periods and periods in between?

#### ClaireCat

##### New Member
I currently have a spreadsheet which tells me how many months build period we have, buy calculating how much capex we have, and over what time.
Issue I have is, if people spend X amount one month, and then X amount in 4 months time, my report will pull me off 2 months, whereas it should be 5 (1st spend to last spend) as it took 5 months to build it.

**no idea how to add an image of this, sorry - but here's a link to it! https://drive.google.com/file/d/1rQVKfJbEiQMFMcyGgpQLvUW2vuYqOr2H/view?usp=sharing

You'll see my formula brings back 4, as this is the number of capex items - but I really need it to bring me back 15.

Is there anyway to do this?

### Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Replies
4
Views
265
Replies
5
Views
592
Replies
2
Views
113
Replies
3
Views
514
Replies
1
Views
80

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,163,484
Messages
5,831,933
Members
430,094
Latest member
soconfused365

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back