If Statement

MrNerd

New Member
Joined
Jan 9, 2018
Messages
36
Office Version
  1. 2003 or older
Platform
  1. Windows
What I would like to do is give me the results for each person (A,B,C...) based on which test we are looking at. In cell B14, I would like to put in the number of which test and have it use a formula to tell me which result. In the current example, I show test 1 being used in B14 and below are what I would like to auto populate using a formula. Since each person can only qualify for one option and after that option is used, no other person can be that for that specific test. (make sense?)

ABCDEFG
Test Group
A
B
C
D
E
F
G
H
I

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]

[TD="align: center"]1[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]6[/TD]

[TD="align: center"]2[/TD]

[TD="align: center"]RCF[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFF00]#FFFF00[/URL] , align: center"]Unclear[/TD]
[TD="align: center"]RCF[/TD]
[TD="align: center"]RCF[/TD]
[TD="align: center"]RCF[/TD]
[TD="align: center"]RCF[/TD]

[TD="align: center"]3[/TD]

[TD="align: center"]CA[/TD]
[TD="align: center"]CA[/TD]
[TD="align: center"]CA[/TD]
[TD="align: center"]CA[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFF00]#FFFF00[/URL] , align: center"]Unclear[/TD]
[TD="align: center"]CA[/TD]

[TD="align: center"]4[/TD]

[TD="align: center"]PT[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFF00]#FFFF00[/URL] , align: center"]Unclear[/TD]
[TD="align: center"]PT[/TD]
[TD="align: center"]PT[/TD]
[TD="align: center"]PT[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFF00]#FFFF00[/URL] , align: center"]Unclear[/TD]

[TD="align: center"]5[/TD]

[TD="align: center"]TRD[/TD]
[TD="align: center"]TRD[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFF00]#FFFF00[/URL] , align: center"]Unclear[/TD]
[TD="align: center"]TED[/TD]
[TD="align: center"]TRD[/TD]
[TD="align: center"]TRD[/TD]

[TD="align: center"]6[/TD]

[TD="align: center"]LCF[/TD]
[TD="align: center"]LCF[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFF00]#FFFF00[/URL] , align: center"]Unclear[/TD]
[TD="align: center"]LCF[/TD]
[TD="align: center"]LCF[/TD]
[TD="align: center"]LCF[/TD]

[TD="align: center"]7[/TD]

[TD="align: center"]FST[/TD]
[TD="align: center"]FST[/TD]
[TD="align: center"]FST[/TD]
[TD="align: center"]FST[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFF00]#FFFF00[/URL] , align: center"]Unclear[/TD]
[TD="align: center"]FST[/TD]

[TD="align: center"]8[/TD]

[TD="align: center"]SHS[/TD]
[TD="align: center"]PT[/TD]
[TD="align: center"]TRD[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFF00]#FFFF00[/URL] , align: center"]Unclear[/TD]
[TD="align: center"]FST[/TD]
[TD="align: center"]SHS[/TD]

[TD="align: center"]9[/TD]

[TD="align: center"]RF[/TD]
[TD="align: center"]RF[/TD]
[TD="align: center"]RF[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFF00]#FFFF00[/URL] , align: center"]Unclear[/TD]
[TD="align: center"]RF[/TD]
[TD="align: center"]RF[/TD]

[TD="align: center"]10[/TD]

[TD="align: center"]LF[/TD]
[TD="align: center"]SHS[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFF00]#FFFF00[/URL] , align: center"]Unclear[/TD]
[TD="align: center"]LF[/TD]
[TD="align: center"]SHS[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFF00]#FFFF00[/URL] , align: center"]Unclear[/TD]

[TD="align: center"]11[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]12[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]13[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]14[/TD]
[TD="align: center"]Test[/TD]
[TD="align: center"]1[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]15[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]16[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]17[/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]RCF[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]18[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]CA[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]19[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]PT[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]20[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]TRD[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]21[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]LCF[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]22[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]FST[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]23[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]SHS[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]24[/TD]
[TD="align: center"]H[/TD]
[TD="align: center"]RF[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]25[/TD]
[TD="align: center"]I[/TD]
[TD="align: center"]LF[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

</tbody>
Sheet3
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Re: If Statement Help

Hi,

I'm Not sure if I understand your requirements, it's a bit "unclear":


Book1
ABCDEFG
1Test Group123456
2ARCFUnclearRCFRCFRCFRCF
3BCACACACAUnclearCA
4CPTUnclearPTPTPTUnclear
5DTRDTRDUnclearTEDTRDTRD
6ELCFLCFUnclearLCFLCFLCF
7FFSTFSTFSTFSTUnclearFST
8GSHSPTTRDUnclearFSTSHS
9HRFRFRFUnclearRFRF
10ILFSHSUnclearLFSHSUnclear
11
12
13
14Test2
15
16
17AUnclear
18BCA
19CUnclear
20DTRD
21ELCF
22FFST
23GPT
24HRF
25ISHS
Sheet97
Cell Formulas
RangeFormula
B17=VLOOKUP(A17,A$2:G$10,B$14+1,0)


B17 formula copied down.
 
Upvote 0
Re: If Statement Help

[TABLE="class: grid"]
<tbody>[TR]
[TD][/TD]
[TD]
A
[/TD]
[TD]
B
[/TD]
[TD]
C
[/TD]
[TD]
D
[/TD]
[TD]
E
[/TD]
[TD]
F
[/TD]
[TD]
G
[/TD]
[/TR]
[TR]
[TD]
1
[/TD]
[TD]Test Group[/TD]
[TD]
1​
[/TD]
[TD]
2​
[/TD]
[TD]
3​
[/TD]
[TD]
4​
[/TD]
[TD]
5​
[/TD]
[TD]
6​
[/TD]
[/TR]
[TR]
[TD]
2
[/TD]
[TD]A[/TD]
[TD]RCF[/TD]
[TD]Unclear[/TD]
[TD]RCF[/TD]
[TD]RCF[/TD]
[TD]RCF[/TD]
[TD]RCF[/TD]
[/TR]
[TR]
[TD]
3
[/TD]
[TD]B[/TD]
[TD]CA[/TD]
[TD]CA[/TD]
[TD]CA[/TD]
[TD]CA[/TD]
[TD]Unclear[/TD]
[TD]CA[/TD]
[/TR]
[TR]
[TD]
4
[/TD]
[TD]C[/TD]
[TD]PT[/TD]
[TD]Unclear[/TD]
[TD]PT[/TD]
[TD]PT[/TD]
[TD]PT[/TD]
[TD]Unclear[/TD]
[/TR]
[TR]
[TD]
5
[/TD]
[TD]D[/TD]
[TD]TRD[/TD]
[TD]TRD[/TD]
[TD]Unclear[/TD]
[TD]TED[/TD]
[TD]TRD[/TD]
[TD]TRD[/TD]
[/TR]
[TR]
[TD]
6
[/TD]
[TD]E[/TD]
[TD]LCF[/TD]
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][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
17
[/TD]
[TD]A[/TD]
[TD]RCF[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
18
[/TD]
[TD]B[/TD]
[TD]CA[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
19
[/TD]
[TD]C[/TD]
[TD]PT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
20
[/TD]
[TD]D[/TD]
[TD]TRD[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
21
[/TD]
[TD]E[/TD]
[TD]LCF[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
22
[/TD]
[TD]F[/TD]
[TD]FST[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
23
[/TD]
[TD]G[/TD]
[TD]SHS[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
24
[/TD]
[TD]H[/TD]
[TD]RF[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
25
[/TD]
[TD]I[/TD]
[TD]LF[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


B17=VLOOKUP($A17,$A$1:$G$10,MATCH($B$14,$A$1:$G$1,0),FALSE) copy down

 
Upvote 0

Forum statistics

Threads
1,225,483
Messages
6,185,264
Members
453,284
Latest member
osy25

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