Hi All
I need a formula that will count the number of dates within a column that are between 2 cells both with a date in each?
Many Thanks
Chris
Hi All
I need a formula that will count the number of dates within a column that are between 2 cells both with a date in each?
Many Thanks
Chris
Try Sumproduct
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
VBA Noob
_________________________________________
Credo Elvem ipsum etian vivere
_________________________________________
A message for cross posters
Please remember to wrap code.
Forum Rules
Please add to your signature if you found this link helpful. Excel links !!!
I have read all through the link u gave, som,e real useful data on there, but it doesent actually state how to use the sum product formula to check a list of data for dates between 2 specific dates in cell references, it has hjow to check each specified data entered but would be a huge formula and would need changing every day, not ideal.
Any More Ideas
Chris
Something like:
=Sumproduct(--(date_range>=Date1),--(date_range<=Date2),--(data_range=criteria))
where date_range is range containing dates to search between Date1 & Date2
data_range is range containing data to search criteria
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
That looks Good, Just what im looking for, although i have entered the following formula:
=SUMPRODUCT(--(date_range>=B174),--(date_range<=B175),--(datarange=D:10:D149)
Gettin #NAME come up, Cells B174 and B175 have the 2 dates in
Any Ideas?
Chris
You have to replace date_range and data_range with actual ranges containing the data , eg. A10:A149, unless you named your ranges?
Also, the last argument in your formula references a range incorrectly
--(datarange=D:10:D149) should be perhaps --(datarange=D10:D149)
ok, Have changed formula to the below but still get #NAME
=SUMPRODUCT(--(D10:D149>=B174),--(D10:D149<=B175),--(Datarange=D10:D149))
Any more ideas, or am i just missin soemthing?
Chris
What's the last part supposed to check for?
What's datarange?
Ah Yes, forgot about that, well thanks its all workin now i removed the end part.
Cheers
Chris
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks