ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   If Question (https://www.excelbanter.com/excel-discussion-misc-queries/255167-if-question.html)

KIWI

If Question
 
Hi everyone

Hope this isn't a silly question (as think I may have made it harder in my
head than it needs to be! given all the formulas I'm putting in are bringing
back errors!!)

I have one worksheet which gathers info from other sheets and has the
following info

A B C D
Name % % %

In another worksheet I have a list of names (column M say M3) next to the
names I want to put in a formula that will give me the following results:

If M3 is in worksheet 1 and the corresponding cells to that name in b, c and
d are all 0% write Yes otherwise write No but if M3 doesnt match anything on
the list write - .

Thanks as always

Kiwi

T. Valko

If Question
 
Try this...

Assuming this data:

A B C D
Name % % %


Is on Sheet1 in the range A1:D10

=IF(COUNTIF(Sheet1!A1:A10,M3),IF(COUNTIF(INDEX(She et1!B1:D10,MATCH(M3,Sheet1!A1:A10,0),0),"0")=3,"Y es","No"),"-")

--
Biff
Microsoft Excel MVP


"Kiwi" wrote in message
...
Hi everyone

Hope this isn't a silly question (as think I may have made it harder in my
head than it needs to be! given all the formulas I'm putting in are
bringing
back errors!!)

I have one worksheet which gathers info from other sheets and has the
following info

A B C D
Name % % %

In another worksheet I have a list of names (column M say M3) next to the
names I want to put in a formula that will give me the following results:

If M3 is in worksheet 1 and the corresponding cells to that name in b, c
and
d are all 0% write Yes otherwise write No but if M3 doesnt match anything
on
the list write - .

Thanks as always

Kiwi




Jacob Skaria

If Question
 
Try the below formula...

=IF(COUNTIF(Sheet1!A1:A100,M3),IF(SUMPRODUCT((Shee t1!A1:A100=M3)*
(Sheet1!B1:D100=0)),"No","Yes"),"-")

--
Jacob


"Kiwi" wrote:

Hi everyone

Hope this isn't a silly question (as think I may have made it harder in my
head than it needs to be! given all the formulas I'm putting in are bringing
back errors!!)

I have one worksheet which gathers info from other sheets and has the
following info

A B C D
Name % % %

In another worksheet I have a list of names (column M say M3) next to the
names I want to put in a formula that will give me the following results:

If M3 is in worksheet 1 and the corresponding cells to that name in b, c and
d are all 0% write Yes otherwise write No but if M3 doesnt match anything on
the list write - .

Thanks as always

Kiwi


KIWI

If Question
 
Thank you both so much - both very helpful :-)
--
Thanks as always

Kiwi


"T. Valko" wrote:

Try this...

Assuming this data:

A B C D
Name % % %


Is on Sheet1 in the range A1:D10

=IF(COUNTIF(Sheet1!A1:A10,M3),IF(COUNTIF(INDEX(She et1!B1:D10,MATCH(M3,Sheet1!A1:A10,0),0),"0")=3,"Y es","No"),"-")

--
Biff
Microsoft Excel MVP


"Kiwi" wrote in message
...
Hi everyone

Hope this isn't a silly question (as think I may have made it harder in my
head than it needs to be! given all the formulas I'm putting in are
bringing
back errors!!)

I have one worksheet which gathers info from other sheets and has the
following info

A B C D
Name % % %

In another worksheet I have a list of names (column M say M3) next to the
names I want to put in a formula that will give me the following results:

If M3 is in worksheet 1 and the corresponding cells to that name in b, c
and
d are all 0% write Yes otherwise write No but if M3 doesnt match anything
on
the list write - .

Thanks as always

Kiwi



.


T. Valko

If Question
 
You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Kiwi" wrote in message
...
Thank you both so much - both very helpful :-)
--
Thanks as always

Kiwi


"T. Valko" wrote:

Try this...

Assuming this data:

A B C D
Name % % %


Is on Sheet1 in the range A1:D10

=IF(COUNTIF(Sheet1!A1:A10,M3),IF(COUNTIF(INDEX(She et1!B1:D10,MATCH(M3,Sheet1!A1:A10,0),0),"0")=3,"Y es","No"),"-")

--
Biff
Microsoft Excel MVP


"Kiwi" wrote in message
...
Hi everyone

Hope this isn't a silly question (as think I may have made it harder in
my
head than it needs to be! given all the formulas I'm putting in are
bringing
back errors!!)

I have one worksheet which gathers info from other sheets and has the
following info

A B C D
Name % % %

In another worksheet I have a list of names (column M say M3) next to
the
names I want to put in a formula that will give me the following
results:

If M3 is in worksheet 1 and the corresponding cells to that name in b,
c
and
d are all 0% write Yes otherwise write No but if M3 doesnt match
anything
on
the list write - .

Thanks as always

Kiwi



.





All times are GMT +1. The time now is 12:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com