Countif & Vlookup

mickiey

Board Regular
Joined
Jan 9, 2013
Messages
55
Hi there
can any please help with this request;

i have a date say in "A1" which is gotten from a Vlookup from say dates in column"C", this works fine. however i am trying to use the date in "A1" to count the amount of dates in say column "E" which are before the date in "A1" but i keep getting 0 which i know is incorrect, if i reference the date which is not from the vlookup but manually enterd into another cell then it works, any suggestions.

mickiey
 
Hi there this is what i have;
In cell (L3) i have a date of the 29/03/2013
In cell (L4) i have a date of the 05/04/2013
there are hundreds of in the sheet but i just need the total in between the two dates which is (124) not (-124)

does this make sense, sorry if i have ddouble sent the message
 
Upvote 0

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hi there this is what i have;
In cell (L3) i have a date of the 29/03/2013
In cell (L4) i have a date of the 05/04/2013
there are hundreds of in the sheet but i just need the total in between the two dates which is (124) not (-124)

does this make sense, sorry if i have ddouble sent the message

That is: L3 <= L4. Given that:

=COUNTIF(C:C,">"&L3)-COUNTIF(C:C,">="&L4)

=COUNTIFS(C:C,">"&L3,C:C,"<"&L4)
 
Upvote 0
Hi there, yes that works (you know there will be a but) i need the formula to include the actual dates given and not between, sorry to be a pain.

many thanks
 
Upvote 0
Hi there, yes that works (you know there will be a but) i need the formula to include the actual dates given and not between, sorry to be a pain.

many thanks

Try...

=COUNTIF(C:C,">="&L3)-COUNTIF(C:C,">"&L4)

=COUNTIFS(C:C,">="&L3,C:C,"<="&L4)
 
Upvote 0

Forum statistics

Threads
1,214,824
Messages
6,121,783
Members
449,049
Latest member
greyangel23

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