Need Some help. IF formula

ThedoreHolley

New Member
Joined
Sep 26, 2016
Messages
49
Office Version
  1. 365
Platform
  1. Windows
So I'm trying to do this formula for ARMY promotion times. I need a couple of thinks to happen for this. So I need some date for Secondary, Primary, and MIL.

Secondary zone 17 months TIS, 5 months TIG

Primary zone 35 months TIS, 11 months TIG

Mandatory list integration: 47 months TIS , 23 months TIG

So here is my table
NAMERANKBASDTISDORTIGZONE
FOXSPC2-Feb-14461-Jul-1617PRIMARY
ANDERSONSPC6-Oct-14381-Jul-1617PRIMARY
<colgroup><col width="154" style="width: 116pt; mso-width-source: userset; mso-width-alt: 5632;"> <col width="64" style="width: 48pt;"> <col width="69" style="width: 52pt; mso-width-source: userset; mso-width-alt: 2523;"> <col width="50" style="width: 38pt; mso-width-source: userset; mso-width-alt: 1828;"> <col width="68" style="width: 51pt; mso-width-source: userset; mso-width-alt: 2486;"> <col width="64" style="width: 48pt;"> <col width="82" style="width: 62pt; mso-width-source: userset; mso-width-alt: 2998;"> <tbody> </tbody>
Zone formula I have is =IF(AND(D2>=17,F2>=5),IF(AND(D2>=35,F2>=7),"PRIMARY","SECONDARY"),"UNDEFINED")
trying to have it work for all 3 =IF(AND(D2>=17,F2>=5),IF(AND(D2>=35,F2>=7),),IF(AND(D2>=47,F2>=23)"PRIMARY","SECONDARY", "MIL"),"UNDEFINED")



 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
I think I understood this, I looked at these 'ZONES'

NOP
2TISTIGZONE
300UNDEFINED
4175MIL
5357SECONDARY
64723PRIMARY

<tbody>
</tbody>
Sheet2



And with that I came to this

ABCDEFGH
1NAMERANKBASDTISDORTIGZONENew ZONE
2FOXSPC########4601-Jul-1617PRIMARYPRIMARY
3ANDERSONSPC06-Oct-143801-Jul-1617PRIMARYPRIMARY

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet2

Worksheet Formulas
CellFormula
G2=IF(AND(D2>=17,F2>=5),IF(AND(D2>=35,F2>=7),"PRIMARY","SECONDARY"),"UNDEFINED")
H2=CHOOSE(1+((D2>=17)*(F2>=5))+((D2>=35)*(F2>=7))+((D2>=47)*(F2>=23)), "UNDEFINED", "MIL", "PRIMARY", "SECONDARY")

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Last edited:
Upvote 0
So I just tried to input that into my table and it's not coming out right. The issue is the person needs both TIS and TIG to be in one of the zones Secondary, Primary and MIL and of course if they don't meet any of them Undefined(not qualified). Don't know if there are to many variables for it to work.
If you see the table below CAUBLE should be Secondary because he doesn't meet the TIS of 35
Christopher is correct for Primary
Degust should be MIL he over the 47 TIS and over TIG 23 but comes up as Primary
Detmers is undefined because does not have 17 TIS

CAUBLESPC6-Apr-15321-Dec-1612SECONDARY
CHRISTOPHERSPC9-Sep-14399-Sep-1615PRIMARY
DEGUSTSPC5-Feb-13581-Oct-1438PRIMARY
DETMERSSPC10-Aug-16161-Apr-178UNDEFINED
<colgroup><col width="154" style="width: 116pt; mso-width-source: userset; mso-width-alt: 5632;"> <col width="64" style="width: 48pt;"> <col width="69" style="width: 52pt; mso-width-source: userset; mso-width-alt: 2523;"> <col width="50" style="width: 38pt; mso-width-source: userset; mso-width-alt: 1828;"> <col width="68" style="width: 51pt; mso-width-source: userset; mso-width-alt: 2486;"> <col width="64" style="width: 48pt;"> <col width="82" style="width: 62pt; mso-width-source: userset; mso-width-alt: 2998;"> <tbody> </tbody>
 
Upvote 0
Hi,

Try this:

=IF(AND(D2>=47,F2>=23),"Mil",IF(AND(D2>=35,F2>=11),"Primary",IF(AND(D2>=17,F2>=5),"SECONDARY","UNDEFINED")))
 
Upvote 0

Forum statistics

Threads
1,215,832
Messages
6,127,149
Members
449,365
Latest member
AlienSx

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