Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
just a quick one, I am trying to count stuff within a month, This If
statement counts if it is an April date: If r1.Value "1/4/2007" And r1.Value < "31/04/2007" Then counter = counter + 1 Address2 = r1.Offset(1, 0).Address(ReferenceStyle:=xlR1C1) End If This works fine, but: If r1.Value "1/5/2007" And r1.Value < "31/05/2007" Then counter = counter + 1 Address2 = r1.Offset(1, 0).Address(ReferenceStyle:=xlR1C1) End If Lets through all sort of dates... including june and what not... Am i going blind? or just plainly stupid? What am idoing wrong? Thank you all! Janos |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
IF statement inside a SUMIF statement.... or alternative method | Excel Worksheet Functions | |||
Reconcile Bank statement & Credit card statement & accounting data | Excel Worksheet Functions | |||
Linking dats on a worksheet to control panel | Charts and Charting in Excel | |||
Working day(s)/Time between two dats (No Weekend or Holidays) | Excel Worksheet Functions | |||
How to add cells yet neglecting alphabet dats | Excel Discussion (Misc queries) |