Forum Discussion

MSrobinann's avatar
MSrobinann
Copper Contributor
Mar 17, 2021

COUNTIFS and date range selection = #VALUE! error

Hi,

I am working on a spreadsheet where I am counting the number of times a specific item has been entered during a specific period. Everything is fine until I enter the range selection

 

               "<=" & Trans!$E3

 

It is the " " around <= and the & that causes the problem because it now considers the outcome to be a text string and not a date value. It shows the correct date number i.e. 44265 but it is in ""...

 

How can I work around this?

 

Thx in adv

6 Replies

    • MSrobinann's avatar
      MSrobinann
      Copper Contributor

      SergeiBaklan 

       

      Nope, not when you are doing a 2nd criteria too. What I am doing is:

       

      Count how many times is a specific item entered during a date range less than or = 03/10/21 i.e. 44265

       

      When I run thru the Function Arguments all the criteria-answers are correct - except for the Criteria2. it put "" around the answer.

       

      Btw, I am using the Excel365 version on Windows10.

Resources