Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

DatePicker format Issue Excel 2010

$
0
0

I have an employee absenteeism form that uses this formula to calculate number of days out of office.  J18 is the shift (shifts less than 40 are 3-day shifts, >40 are 4-day shifts).  The start date is in cell E28 and the end date is in H28.  AN69-AN96 are vacation days.

IF($J$18>40,(SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(E28&":"&H28)),2)<5),--(1-ISNUMBER(MATCH(ROW(INDIRECT(E28&":"&H28)),AN69:AN96,0))))),IF($J$18<40,(SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(E28&":"&H28)),2)>4),--(1-ISNUMBER(MATCH(ROW(INDIRECT(E28&":"&H28)),AN69:AN96,0)))))))

When a supervisor manually enters the dates, it works fine.  I added DatePicker and now the formula doesn't work.  If I retype the dates exactly as DatePicker puts them into my cells, the formula works!  

Any ideas as to why it doesn't work with DatePicker?

Thanks

Diana


Viewing all articles
Browse latest Browse all 11829

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>