Value error in IF formula?

gony28

New Member
Joined
Apr 26, 2019
Messages
2
I require some help with the highlighted part of the formula as shown in the link below. I need it to return the value in J2 if the two criterias given matches. if not, contunie with the rest of the fomula. I keep getting a #value error. The criteria 1 is for the date in B2 to exist in the range B14:B25 and criteria 2 is for F2 to = 6. IF the criterias are fullfilled i need it to return the value in J2. What am I doing wrong here?

https://drive.google.com/open?id=13vUCqzxdI45ywHanwezz0xDj4y3euWPJ
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Hi, welcome to the forum!

You can't check if a value is in a range like that, but you could use something like this instead..

=IF(AND(ISNUMBER(MATCH(B2,B14:B25,0)),F2=6),.....etc.
 
Upvote 0
hi, welcome to the forum!

You can't check if a value is in a range like that, but you could use something like this instead..

=if(and(isnumber(match(b2,b14:b25,0)),f2=6),.....etc.


thank you so much!!! It really worked!
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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