How to eliminate a #VALUE! error

Kemper

New Member
Joined
Oct 12, 2018
Messages
5
I have this formula that I'm working with and cannot find a way to correct the error.

=IF((AND($C$7=T12:T45,$C$13=W11:W32)),"YES","NO")

Thanks for any help
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
are you trying to say

if C7 equals the sum of T12 thru T45 AND C13 equals the sum of W11 thru W32 say YES or else say NO???
 
Last edited:
Upvote 0
Welcome to the Board!

Your formula doesn't really make sense. A single cell cannot be equal to an entire range, i.e.
$C$7=T12:T45
and
$C$13=W11:W32
are not valid formulas.

What are you trying to do there? Are you wanting to see if the value exists anywhere in that cell?
If so, try using COUNTIF instead, i.e.
COUNTIF(T12:T45,$C$7)>0
etc
 
Upvote 0
Weird... it wont let me edit ...

Well if the above post is correct do this

=IF((AND($C$7=SUM(T12:T45),$C$13=SUM(W11:W32))),"YES","NO")
 
Upvote 0
try this instead

Code:
=IF(AND(COUNTIF($T$12:$T$45,$C$7)>0,COUNTIF($W$11:$W$32,$C$13)>0),"YES","NO")
 
Upvote 0
I'm building an automotive maintenance menu. What the T12:T45 refers to is the year models and the W11:W32 refers to the vehicle mileages. I want to formula to give a Yes or No depending on the requirements at certain mileage and year models .
Thanks
 
Upvote 0
You still haven't really clarified what this formula should be doing (and we really cannot guess because we cannot see your data).

What exactly is in cell C7, and how does that relate to range T12:T45?
Likewise, what exactly is in cell C13, and how does that relate to range W11:W32?

Sometimes providing an actual example (with data) goes a long way in describing to us what it is you are actually trying to do.
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,269
Members
452,628
Latest member
dd2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top