True statement with ISNUMBER

McNeil87

New Member
Joined
Dec 6, 2019
Messages
31
Office Version
  1. 2016
Platform
  1. Windows
  2. MacOS
Hello,

I have the following formula written, but it’s not returning both ‘true’ or ‘false.’ Would love for feedback:

AND(Q2=“abc”,G2=“D”,ISNUMBER(Match(k2,abc_dom,0)))
Essentially, want to say if cell Q2=abc, and g2=d (that’s true) and if cell K2 matches the list from abc_dom, return false because I don’t want the criteria included if K2 matches, but if if matches, return true

will it work if I do this?
AND(Q2=“abc”,G2=“D”,ISNUMBER(Match(k2,abc_dom,0))=FALSE

thank you!
 

Some videos you may like

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Eric W

MrExcel MVP
Joined
Aug 18, 2015
Messages
10,748
I'm not sure about your criteria. First trying putting NOT around your first formula:

=NOT(AND(...))

and seeing if that works for you. If not, I'll want to see what results you want for each of the 8 possible combinations.
 

mikerickson

MrExcel MVP
Joined
Jan 15, 2007
Messages
23,953
What do each of the parts return seperately.
=(Q2="abc")
=(G2="D")
=ISNUMBER(MATCH(K2, abc_dom,0))

Also, is abc_dom a single column or a single row?
 

McNeil87

New Member
Joined
Dec 6, 2019
Messages
31
Office Version
  1. 2016
Platform
  1. Windows
  2. MacOS
Hello,
=(Q2="abc") — true
=(G2="D") - true
=ISNUMBER(MATCH(K2, abc_dom,0)) abc_dom is a single column list
 

Watch MrExcel Video

Forum statistics

Threads
1,127,210
Messages
5,623,410
Members
415,972
Latest member
SY1234

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
Top