Nested IF

smithomatic

New Member
Joined
Jun 4, 2011
Messages
9
Hello,

I was wandering if someone here would be able to help me write a nested IF/AND/OR statement or something that will perform a similar job.

I need Cell A1 to say "Yes" if Cell A3 has any of the following names:

Laura
Jade
Rebecca
Sarah
Zoe
Elaine
Sue
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Hello,

I was wandering if someone here would be able to help me write a nested IF/AND/OR statement or something that will perform a similar job.

I need Cell A1 to say "Yes" if Cell A3 has any of the following names:

Laura
Jade
Rebecca
Sarah
Zoe
Elaine
Sue
Put those names in a range of cells like E1:E7.

Then:

=IF(COUNTIF(E1:E7,A3),"Yes","No")
 
Upvote 0
Try

=IF(ISNUMBER(MATCH(A3,{"Laura","Jade","Rebecca","Sarah","Zoe","Elaine","Sue"},0)),"Yes","")
 
Upvote 0
Another approach,
=IF(A3<>"",IF(ISNUMBER(FIND(A3,"LauraJadeRebeccaSarahZoeElaineSue",1)),"YES","NO"),"")
 
Upvote 0
I actually did have one more problem I need solving, little hard to explain but here goes;

Ok so I have one column that contains the names of the people I posted previously and another column that contains a number. I need to count the total that each person has next to thier name, E.G:

Column A Column B

Laura 60
Laura 20

Jade 60
Rebecca 30
Sarah 20

Laura 20


So from this we can see that in Total Laura has 100, Jade 60, rebecca 30 and sarah 20. I need a formula that can count these totals. *The columns do containt random spaces, as I have tried to demonstrate.

Im thinking this will probably require some kind of Vlookup but il leave it to you experts to decide my best route.

Many thanks for all your posts so far
 
Upvote 0
I actually did have one more problem I need solving, little hard to explain but here goes;

Ok so I have one column that contains the names of the people I posted previously and another column that contains a number. I need to count the total that each person has next to thier name, E.G:

Column A Column B

Laura 60
Laura 20

Jade 60
Rebecca 30
Sarah 20

Laura 20


So from this we can see that in Total Laura has 100, Jade 60, rebecca 30 and sarah 20. I need a formula that can count these totals. *The columns do containt random spaces, as I have tried to demonstrate.

Im thinking this will probably require some kind of Vlookup but il leave it to you experts to decide my best route.

Many thanks for all your posts so far
Try this...

Book1
ABCDE
2Laura60_Laura100
3Laura20_Jade60
4___Rebecca30
5Jade60_Sarah20
6Rebecca30___
7Sarah20___
8_____
9Laura20___
Sheet1

This formula entered in E2 and copied down:

=SUMIF(A$2:A$9,D2,B$2:B$9)
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,331
Members
452,907
Latest member
Roland Deschain

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