What does this mean? =IF(AND(OR(T2=B2,T2=C2),A2>0),A2, IF(A2>0,6,IF(J2=0,-1,0)))

romanomad

New Member
Joined
Oct 27, 2011
Messages
1
What does this mean?

=IF(AND(OR(T2=B2,T2=C2),A2>0),A2, IF(A2>0,6,IF(J2=0,-1,0)))

Im trying to find out if students have obtained the degree they originally applied for when entering the program. T2, B2, and C2 are all text fields while A2 and J2 are numerical. T2 is the original degree program entered in, B2 and C2 are the degrees obtained and A2 tells whether they entered in a STEM field #1-5 (1-chemistry, 2-computer science, 3-geography, 4-math, or 5-physics and 0 for all other degrees). J2 just tells if they have a degree or not- 0 for no, 1 for yes.

Someone else wrote this code and I don't know what 0, 6, or -1 mean. I just need to know if the student received the degree they originally applied under "6" if yes but not in a STEM field, "0" if no, and "1-5" if yes and in one of the five STEM fields. Some students switch their major from one STEM field to another STEM field and those we would also like to flag as "8".

Can someone figure out what if/and/or code I need to make this happen?

Help is appreciated!!
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
See if this helps:

Excel Workbook
ABCDEFGHIJKLMNOPQRSTUV
10NumberSTEM FieldDegree ObtainedDegree ObtainedDegree Received?0=NO1=YESOriginal Degree0-No1-Yes, Chemistry2-Yes, Computer Science3-Yes, Geograpgy4-Yes, Math5-Yes, Physics6-Original7-To/From STEM Feild8-Switched STEM FieldHelper Cell
11Test1Test63
1241383
1351Doctor83
14Doctor1273
15 0
16 0
17 0
18 0
19 0
20 0
21 0
221Doctor82
Sheet1




Kevin
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,331
Members
452,636
Latest member
laura12345

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