Formula needed

Slyon

New Member
Joined
Jul 26, 2021
Messages
16
Office Version
  1. 2016
Platform
  1. Windows
Hey all,

So I managed to solve one of my excel formula problems yesterday (thanks to this Forum ?), however I have now become stuck again..

(See previous post here How to class 'From' and 'To' dates that have the same date as 1 day, when counting amount of days from several dates.)

Following on from the above post, I now need to create another formula, which does the same thing but doesn't count any days from the dates given that are past a year ago from the current date.

If it helps, I'm trying to count how many days have been booked from the information entered on my spreadsheet, starting from the current date going back a year. This would need to basically eliminate any days that fall out of that time period.

Apologies if this doesn't make much sense! I'm open to new suggestions on how to get this info if needed. ?
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
How about
Excel Formula:
=IF(F3<EDATE(TODAY(),-12),0,F3-MAX(E3,EDATE(TODAY(),-12))+1)+IF(H3<EDATE(TODAY(),-12),0,H3-MAX(G3,EDATE(TODAY(),-12))+1)+IF(J3<EDATE(TODAY(),-12),0,J3-MAX(I3,EDATE(TODAY(),-12))+1)
 
Upvote 0
Solution
How about
Excel Formula:
=IF(F3<EDATE(TODAY(),-12),0,F3-MAX(E3,EDATE(TODAY(),-12))+1)+IF(H3<EDATE(TODAY(),-12),0,H3-MAX(G3,EDATE(TODAY(),-12))+1)+IF(J3<EDATE(TODAY(),-12),0,J3-MAX(I3,EDATE(TODAY(),-12))+1)
That's worked, thanks!!

Say if I wanted to input the dates onto several different tabs (sheets) and then bring the total of those dates for each person say, using the format above onto the main first sheet to bring all totals onto one page.. is that possible?
 
Upvote 0
As that's a completely different question, it needs a new thread. Thanks
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,582
Members
449,089
Latest member
Motoracer88

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top