If Logic

nirvehex

Well-known Member
Joined
Jul 27, 2011
Messages
505
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have an if statement that is not quite working for me. Here is the code:

Code:
=IF(ISNUMBER(AND(SEARCH("Comp",D27),Dashboard!$H$16="Yes")),IF(E27="WD","No",IF(AP27<=2,"Yes","No")),IF(ISNUMBER(AND(SEARCH("Open",D27),Dashboard!$H$15="Yes")),IF(E27="WD","No",IF(AP27<=2,"Yes","No")),"No"))

It should return a "Yes" because of the following:
D27 = Open
E27 = T
AP27 = 1.77
DashboardH16="Yes"
DashboardH15="Yes"

Could someone please help me understand why my if statement is not getting to the point where it returns a "Yes" and how to fix it so it does? It keeps returning a "No."

Thanks!
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Re: Help with If Logic

This:

AND(SEARCH("Comp",D27),Dashboard!$H$16="Yes"))

returns either TRUE or FALSE - not a number. So, the ISNUMBER will always return FALSE which takes the formula to the first "No".
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,169
Members
453,021
Latest member
Justyna P

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