IF Question

Calibre16

Board Regular
Joined
Oct 19, 2014
Messages
51
Hi All,

I need assistance witht he following formula:
In cell O2 I am trying to display a "yes" if the number 3 populates any cell in colums M:M and N:N & a "no" for every other number and blanks


Thanks

Michael
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
O2 = IF(COUNTIF(M:N,3)>0,"yes","no")


Hi All,

I need assistance witht he following formula:
In cell O2 I am trying to display a "yes" if the number 3 populates any cell in colums M:M and N:N & a "no" for every other number and blanks


Thanks

Michael
 
Upvote 0
Thanks Joe. I tried this, however, any cells thad do not have the 3 are still displaying a yes. how do i get the formula to display a no

Michael
 
Upvote 0
Thanks Joe. I tried this, however, any cells thad do not have the 3 are still displaying a yes. how do i get the formula to display a no

Michael
I don't understand. You said the 3 might be in col M and/or N and you wanted a formula for cell O2. The formula I posted puts a "yes" in O2 if there is at least one cell in cols M:N with a 3 in it, otherwise it returns a "no" to O2. If that's not what you want, perhaps you can provide a clear description of what you do want.
 
Upvote 0
I probably wasnt clear enough, however, i have taken your formula and changed the M:N to specific M/N cells. From here dragged this down the O cells replicating the formula for the respective cells.
= IF(COUNTIF(M2:N2,3)>0,"yes","no")

Thanks for your help Joe:)
 
Upvote 0
I probably wasnt clear enough, however, i have taken your formula and changed the M:N to specific M/N cells. From here dragged this down the O cells replicating the formula for the respective cells.
= IF(COUNTIF(M2:N2,3)>0,"yes","no")

Thanks for your help Joe:)
You are welcome - thanks for the reply.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,333
Members
452,636
Latest member
laura12345

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