If formula

Smudge80

New Member
Joined
Sep 26, 2018
Messages
17
Hi Guys, hoping someone can help me with below.
Looking for formula that returns yes in
A5 if yes is entered in any cell range between A1:D1
Return no if not
Thanks in advance!
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Hello,

You could test the following

Code:
=IF(ISERROR(MATCH("yes",A1:D1,0)),"No","Yes")

HTH
 
Upvote 0
Please enter the below formula and hit Ctrl+Shift+Enter.
=IF(OR(A1:D1="Yes"),"Yes","No")

Regards
Nandu :)
 
Upvote 0
=COUNTIFS(A1:D1,"yes")+0

or

=ISNUMBER(MATCH("yes",A1:D1,0))+0

Custom format the formula cell as:

[=0]"";[>0]"yes";General
 
Upvote 0
Seems a tricky one to crack,
Was close on =if(countif(A1:D1,’’’’),’’’’,IF,(COUNTIF)A1:D1,’’NO,IF(COUNTIF(A1:D1,’’yes’’)=4,”yes”)))

Unfortunately this only returns yes if all 4 cells say yes when I want it to return yes if any cell in that range is yes
 
Upvote 0
Seems a tricky one to crack,
Was close on =if(countif(A1:D1,’’’’),’’’’,IF,(COUNTIF)A1:D1,’’NO,IF(COUNTIF(A1:D1,’’yes’’)=4,”yes”)))

Unfortunately this only returns yes if all 4 cells say yes when I want it to return yes if any cell in that range is yes

In E1 enter:

=COUNTIFS(A1:D1,"yes")+0

Now select E1; right click > Format Cells > Custom; now type in the box:

[=0]"No";[>0]"Yes";General

You can now copy the formula down if so desired.
 
Upvote 0
Hello Smudge80 :)
use this formula in cell e1
Code:
=IF(COUNTIF(A1:D1,"yes")>0,"yes","")
(y)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,232
Messages
6,123,759
Members
449,120
Latest member
Aa2

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