hi,
I would like to count number of single days in multiple overlapping and nonoverlapping date ranges.
For example:
Nowy obraz (1).png
hi,
I would like to count number of single days in multiple overlapping and nonoverlapping date ranges.
For example:
Nowy obraz (1).png
are the days always sequential in col A?
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
Try in D2 and fill down. (Done in E2 of attached.)Formula:Please Login or Register to view this content.
Last edited by FlameRetired; 07-16-2018 at 08:34 PM.
Dave
This is shorter.Formula:Please Login or Register to view this content.
no, these are random
HI,
THANKS FOR REPLAY. Your second formula works fine. Are you able to add one more condition. example in column A with 2 products.
p.s. are you able to include in the formula possiblitity of empty rows?
Nowy obraz.png
Last edited by afgi; 07-17-2018 at 06:41 AM.
Hi
Why not this
First Row =B2-A2
2nd row on wards =B3-MAX(A3,MAX($A$2:B2))
I am trying to count number of days. doesnt matter if it's overlapping nor nonoverlapping - I dont want to count the same days twice or miss any
Try this replacement.Formula:Please Login or Register to view this content.
You'll need to give us examples and expected results for the empty rows part.
Last edited by FlameRetired; 07-17-2018 at 02:02 PM.
Formula for your request is
Cell E2
Confirmed with Ctrl+Shift+EnterPlease Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks