IF Function query

SDBonner

New Member
Joined
Dec 23, 2009
Messages
28
Hi there, this is my first post, so I hope it makes sense!

I'm hoping someone can help with a problem I'm having with an IF function.

Here's the context: I have a database that records attendance at training events. Each event has several components that need to be attended before the individual can offically be 'trained'. Each component is compulsory but some are repeats, so the logic would be: If they attend session 1 AND session 2 AND EITHER session 3 or its Repeat then they are 'trained'. Attendance is recorded as YES or NO, the result from this is then fed into an overall result of YES or NO for thier attendance.

I've got the IF AND function plus IF OR functions to work to this end, however with certain cominations I get a FALSE return. I need either a YES or NO return for reporting purposes. ( I've also included an AND function to return a NO response if all courses are not attended).

Please be gentle with your suggestions (I'm learning as I go along!)
Any help GREATLY appreciated.

P.S. You may not get instant repsonses to suggestion as I don't have access to the web all the time.
 

Some videos you may like

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

lenze

Legend
Joined
Feb 18, 2002
Messages
13,690
Hi and welcome to the board!!
Say Session 1 in in Column "A"
Session 2 is in Column "B"
Session 3 is in Column "C"
Repeat is in Column "D"

In Column "E", use
Code:
=IF((A1="YES")*(B1="YES")*OR(C1="YES",D1="YES"),"YES","NO")

lenze
 

SDBonner

New Member
Joined
Dec 23, 2009
Messages
28
Hi there!

My sincere thanks to both of you - I've gone with Jonmo1's suggestion and all seems to be working - until the next stumbling block anyway.

Thanks again!
 

Watch MrExcel Video

Forum statistics

Threads
1,122,214
Messages
5,594,881
Members
413,947
Latest member
gizmolucy

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
Top