A formula that meets all conditions

mully_10

New Member
Joined
Jun 21, 2011
Messages
23
I'm trying to create a formula that meets all the conditions. Below is table that I manually enter data into.
tinypic.com
[/URL][/IMG]

I'm trying to create a formula for each cell in the below table that will meet these conditions:

Looks in the PAD column for either 34H or 81G etc. Then is it "Remaining/Drilled" and in the "Target Zone" and either North or South for "Direction".

tinypic.com
[/URL][/IMG]

Thanks
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
COUNTIFS should work.

Excel 2010
ABCDEFGHIJKLM
1PADWELLrdtargdir
234H1dMiddles
334H2dLowern
434H3rUppern
534H4rMiddlen
634H5dUppern
781G1dUppern
881G2dLowern
981G3dMiddlen
1081G4dMiddlen
1181G5dMiddlen
1281G6rMiddles
1381G7rUppers
14
15
16drilled upperDrilled middleDrilled lowerRemaining UpperRemaining MiddleRemaining lower
17northsouthnorthsouthnorthsouthnorthsouthnorthsouthnorthsouth
1834h100110101000
1981g103010010100

<colgroup><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet35

Worksheet Formulas
CellFormula
B18=COUNTIFS($A$2:$A$13,$A18,$E$2:$E$13,LEFT(B$17,1),$D$2:$D$13,RIGHT(B$16,LEN(B$16)-SEARCH(" ",B$16)),$C$2:$C$13,LEFT(B$16,1))
C18=COUNTIFS($A$2:$A$13,$A18,$E$2:$E$13,LEFT(C$17,1),$D$2:$D$13,RIGHT(B$16,LEN(B$16)-SEARCH(" ",B$16)),$C$2:$C$13,LEFT(B$16,1))
D18=COUNTIFS($A$2:$A$13,$A18,$E$2:$E$13,LEFT(D$17,1),$D$2:$D$13,RIGHT(D$16,LEN(D$16)-SEARCH(" ",D$16)),$C$2:$C$13,LEFT(D$16,1))
E18=COUNTIFS($A$2:$A$13,$A18,$E$2:$E$13,LEFT(E$17,1),$D$2:$D$13,RIGHT(D$16,LEN(D$16)-SEARCH(" ",D$16)),$C$2:$C$13,LEFT(D$16,1))
F18=COUNTIFS($A$2:$A$13,$A18,$E$2:$E$13,LEFT(F$17,1),$D$2:$D$13,RIGHT(F$16,LEN(F$16)-SEARCH(" ",F$16)),$C$2:$C$13,LEFT(F$16,1))
G18=COUNTIFS($A$2:$A$13,$A18,$E$2:$E$13,LEFT(G$17,1),$D$2:$D$13,RIGHT(F$16,LEN(F$16)-SEARCH(" ",F$16)),$C$2:$C$13,LEFT(F$16,1))
H18=COUNTIFS($A$2:$A$13,$A18,$E$2:$E$13,LEFT(H$17,1),$D$2:$D$13,RIGHT(H$16,LEN(H$16)-SEARCH(" ",H$16)),$C$2:$C$13,LEFT(H$16,1))
I18=COUNTIFS($A$2:$A$13,$A18,$E$2:$E$13,LEFT(I$17,1),$D$2:$D$13,RIGHT(H$16,LEN(H$16)-SEARCH(" ",H$16)),$C$2:$C$13,LEFT(H$16,1))
J18=COUNTIFS($A$2:$A$13,$A18,$E$2:$E$13,LEFT(J$17,1),$D$2:$D$13,RIGHT(J$16,LEN(J$16)-SEARCH(" ",J$16)),$C$2:$C$13,LEFT(J$16,1))
K18=COUNTIFS($A$2:$A$13,$A18,$E$2:$E$13,LEFT(K$17,1),$D$2:$D$13,RIGHT(J$16,LEN(J$16)-SEARCH(" ",J$16)),$C$2:$C$13,LEFT(J$16,1))
L18=COUNTIFS($A$2:$A$13,$A18,$E$2:$E$13,LEFT(L$17,1),$D$2:$D$13,RIGHT(L$16,LEN(L$16)-SEARCH(" ",L$16)),$C$2:$C$13,LEFT(L$16,1))
M18=COUNTIFS($A$2:$A$13,$A18,$E$2:$E$13,LEFT(M$17,1),$D$2:$D$13,RIGHT(L$16,LEN(L$16)-SEARCH(" ",L$16)),$C$2:$C$13,LEFT(L$16,1))
B19=COUNTIFS($A$2:$A$13,$A19,$E$2:$E$13,LEFT(B$17,1),$D$2:$D$13,RIGHT(B$16,LEN(B$16)-SEARCH(" ",B$16)),$C$2:$C$13,LEFT(B$16,1))
C19=COUNTIFS($A$2:$A$13,$A19,$E$2:$E$13,LEFT(C$17,1),$D$2:$D$13,RIGHT(C$16,LEN(C$16)-SEARCH(" ",C$16)),$C$2:$C$13,LEFT(C$16,1))
D19=COUNTIFS($A$2:$A$13,$A19,$E$2:$E$13,LEFT(D$17,1),$D$2:$D$13,RIGHT(D$16,LEN(D$16)-SEARCH(" ",D$16)),$C$2:$C$13,LEFT(D$16,1))
E19=COUNTIFS($A$2:$A$13,$A19,$E$2:$E$13,LEFT(E$17,1),$D$2:$D$13,RIGHT(E$16,LEN(E$16)-SEARCH(" ",E$16)),$C$2:$C$13,LEFT(E$16,1))
F19=COUNTIFS($A$2:$A$13,$A19,$E$2:$E$13,LEFT(F$17,1),$D$2:$D$13,RIGHT(F$16,LEN(F$16)-SEARCH(" ",F$16)),$C$2:$C$13,LEFT(F$16,1))
G19=COUNTIFS($A$2:$A$13,$A19,$E$2:$E$13,LEFT(G$17,1),$D$2:$D$13,RIGHT(F$16,LEN(F$16)-SEARCH(" ",F$16)),$C$2:$C$13,LEFT(F$16,1))
H19=COUNTIFS($A$2:$A$13,$A19,$E$2:$E$13,LEFT(H$17,1),$D$2:$D$13,RIGHT(H$16,LEN(H$16)-SEARCH(" ",H$16)),$C$2:$C$13,LEFT(H$16,1))
I19=COUNTIFS($A$2:$A$13,$A19,$E$2:$E$13,LEFT(I$17,1),$D$2:$D$13,RIGHT(H$16,LEN(H$16)-SEARCH(" ",H$16)),$C$2:$C$13,LEFT(H$16,1))
J19=COUNTIFS($A$2:$A$13,$A19,$E$2:$E$13,LEFT(J$17,1),$D$2:$D$13,RIGHT(J$16,LEN(J$16)-SEARCH(" ",J$16)),$C$2:$C$13,LEFT(J$16,1))
K19=COUNTIFS($A$2:$A$13,$A19,$E$2:$E$13,LEFT(K$17,1),$D$2:$D$13,RIGHT(J$16,LEN(J$16)-SEARCH(" ",J$16)),$C$2:$C$13,LEFT(J$16,1))
L19=COUNTIFS($A$2:$A$13,$A19,$E$2:$E$13,LEFT(L$17,1),$D$2:$D$13,RIGHT(L$16,LEN(L$16)-SEARCH(" ",L$16)),$C$2:$C$13,LEFT(L$16,1))
M19=COUNTIFS($A$2:$A$13,$A19,$E$2:$E$13,LEFT(M$17,1),$D$2:$D$13,RIGHT(L$16,LEN(L$16)-SEARCH(" ",L$16)),$C$2:$C$13,LEFT(L$16,1))

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

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,582
Members
449,089
Latest member
Motoracer88

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