Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

date reference problem due to format

$
0
0

i have formula on sheet April as follows, =COUNTIFS('(1)'!$B:$B,">="&$A5,'(1)'!$B:$B,"<="&$A5,'(1)'!$I:$I,"="&B$3) in b column, where $b:$b and $a5 is date. it gives zero. if i change any thing identical in both ($B:$B & $A5) it give correct answer. again in i column =SUMIFS('(1)'!$K:$K,'(1)'!$B:$B,$A5,'(1)'!$J:$J,$AI$10)+SUMIFS('(1)'!$K:$K,'(1)'!$B:$B,$A5,'(1)'!$J:$J,$AI$14)+SUMIFS('(1)'!$K:$K,'(1)'!$B:$B,$A5,'(1)'!$J:$J,$AI$15)+SUMIFS('(1)'!$K:$K,'(1)'!$B:$B,$A5,'(1)'!$J:$J,$AI$16)+SUMIFS('(1)'!$K:$K,'(1)'!$B:$B,$A5,'(1)'!$J:$J,$AI$25)+SUMIFS('(1)'!$K:$K,'(1)'!$B:$B,$A5,'(1)'!$J:$J,$AI$24)  it gives correct answer but slow calculation. there are many more formula on the sheet. 

the date in formula is added from userform combo box having "Private Sub ComboBox1_Change()
ComboBox1.Value = Format(ComboBox1.Value, "dd-mm-yyyy")
End Sub" code for date format.it was given because the combo box changed automatically different date format .

please help me to make identical date format in all these places so that correct cell reference calculation can be done on sheet april.

thanks

dockhem


Viewing all articles
Browse latest Browse all 2535

Trending Articles



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