1 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

Countifs resulting in #VALUE! with error “A value used in the formula is of the wrong data type.”

Our take

When using the COUNTIFS function in Excel to analyze valet performance during peak hours, encountering a #VALUE! error indicates a data type issue within your criteria. In your formula, the timestamps in columns I and AJ may not be formatted consistently, causing the error when combining conditions. Ensure that both columns contain valid time data types.

I’m trying to put together a presentation for a valet company and I’m looking to see how well we perform during peak hours. I have a column for when a vehicle is checked in(column i) and another column for how long it took to retrieve the vehicle(column AJ). I’m using countifs(i3:i2000, “>=06:45”,i3:i2000, “<8:00”,aj3:aj2000, “<00:10:00”) and it results in the problem in the title.

I can do a separate countifs for the i column with the time range above and get a numerical result(65) and another countif for the aj problem and get a numerical result(500) but when combining the two I get the #VALUE! error. What am I doing wrong?

submitted by /u/R0BZ1LLA
[link] [comments]

Read on the original site

Open the publisher's page for the full experience

View original article

Related Articles