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

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
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,226,729
Messages
6,192,696
Members
453,747
Latest member
tylerhyatt04

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