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
1Test Group123456
2ARCFUnclearRCFRCFRCFRCF
3BCACACACAUnclearCA
4CPTUnclearPTPTPTUnclear
5DTRDTRDUnclearTEDTRDTRD
6ELCFLCFUnclearLCFLCFLCF
7FFSTFSTFSTFSTUnclearFST
8GSHSPTTRDUnclearFSTSHS
9HRFRFRFUnclearRFRF
10ILFSHSUnclearLFSHSUnclear
11
12
13
14Test1
15
16
17ARCF
18BCA
19CPT
20DTRD
21ELCF
22FFST
23GSHS
24HRF
25ILF

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

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
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

A
B
C
D
E
F
G
1
Test Group
1​
2​
3​
4​
5​
6​
2
ARCFUnclearRCFRCFRCFRCF
3
BCACACACAUnclearCA
4
CPTUnclearPTPTPTUnclear
5
DTRDTRDUnclearTEDTRDTRD
6
ELCFLCFUnclearLCFLCFLCF
7
FFSTFSTFSTFSTUnclearFST
8
GSHSPTTRDUnclearFSTSHS
9
HRFRFRFUnclearRFRF
10
ILFSHSUnclearLFSHSUnclear
11
12
13
14
Test
1​
15
16
17
ARCF
18
BCA
19
CPT
20
DTRD
21
ELCF
22
FFST
23
GSHS
24
HRF
25
ILF

<tbody>
</tbody>


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

 
Upvote 0
Re: If Statement Help

Thanks! That worked well.
 
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,384
Members
449,080
Latest member
Armadillos

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