IFERROR, but not use previously used?

cspengel

Board Regular
Joined
Oct 29, 2022
Messages
173
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Not exactly sure How to describe my exact issue. I have two tables as such below.

showdown4.xlsm
ABCDEFGHIJ
1MVPFLEXFLEX2FLEX3FLEX4CARFLEXFLEX2FLEX3FLEX4
2RB1QB1DATLTE1QB1
3QB1TE2WR3WR1RB1
4WR1WR4QB1TE1K
5RB1TE1QB1DQB1
6WR1TE1QB1WR2WR3
7QB1WR1KRB2RB1
8RB1WR2QB1WR1WR1
9WR1QB1TE2DQB1
10WR1WR3KWR1RB1
11QB1TE1WR1RB2QB1
12RB1QB1RB3QB1WR4
13DRB1QB1KD
14QB1TE1RB1RB2WR1
15RB1DWR1QB1D
16WR1WR5WR1QB1RB1
17QB1RB3WR1KRB2
18QB1WR2DTE2RB1
19RB1TE1WR1QB1RB3
20RB1RB2DRB1D
21WR1DWR4QB1WR2
22QB1RB3WR2WR1K
23WR1WR2QB1RB1WR3
24RB1DQB1TE2WR2
25TE1QB1KWR2RB2
26RB1WR1KQB1WR5
27RB1QB1WR5RB2QB1
28RB1TE1WR2RB2QB1
29QB1WR2TE2RB2QB1
30QB1RB2KWR2RB2
31RB1DQB1QB1WR3
32RB1QB1WR3RB1K
33QB1WR3WR1WR4TE1
34RB1WR2QB1WR4RB1
35RB1KQB1WR2RB1
36RB3QB1DKRB1
37DRB2QB1RB1WR3
38DRB1KWR2RB1
39QB1WR1WR3WR5RB1
Lines


I have another table to the right of those tables like so:

showdown4.xlsm
LMNOP
1MVPFLEXFLEX2FLEX3FLEX4
2D'Onta ForemanP.J. WalkerP.J. WalkerKyle PittsKyle Pitts
3P.J. WalkerIan ThomasDJ MooreDJ Moore
4DJ MooreDamiere ByrdDamiere ByrdKyle PittsKyle Pitts
5D'Onta ForemanTommy TrembleTommy TrembleAtlanta FalconsAtlanta Falcons
6DJ MooreTommy TrembleTommy TrembleOlamide ZaccheausOlamide Zaccheaus
7P.J. WalkerDrake LondonDrake LondonTyler AllgeierTyler Allgeier
8D'Onta ForemanLaviska Shenault Jr.Laviska Shenault Jr.DJ MooreDJ Moore
9DJ MooreP.J. WalkerP.J. WalkerMarcus MariotaMarcus Mariota
10DJ MooreKhaDarel HodgeKhaDarel HodgeDrake LondonDrake London
11P.J. WalkerTommy TrembleTommy TrembleTyler AllgeierTyler Allgeier
12D'Onta ForemanP.J. WalkerP.J. WalkerDamiere ByrdDamiere Byrd
13Carolina PanthersD'Onta ForemanD'Onta ForemanEddy PineiroEddy Pineiro
14P.J. WalkerTommy TrembleTommy TrembleChuba HubbardChuba Hubbard
15D'Onta ForemanCarolina PanthersCarolina PanthersP.J. WalkerP.J. Walker
16DJ Moore#N/A#N/AMarcus MariotaMarcus Mariota
17P.J. WalkerRaheem BlackshearRaheem BlackshearYounghoe KooYounghoe Koo
18P.J. WalkerLaviska Shenault Jr.Laviska Shenault Jr.Parker HesseParker Hesse
19D'Onta ForemanTommy TrembleTommy TrembleP.J. WalkerP.J. Walker
20D'Onta ForemanChuba HubbardChuba HubbardCordarrelle PattersonCordarrelle Patterson
21DJ MooreCarolina PanthersCarolina PanthersP.J. WalkerP.J. Walker
22P.J. WalkerRaheem BlackshearRaheem BlackshearDJ MooreDJ Moore
23DJ MooreLaviska Shenault Jr.Laviska Shenault Jr.Cordarrelle PattersonCordarrelle Patterson
24D'Onta ForemanCarolina PanthersCarolina PanthersIan ThomasIan Thomas
25Tommy TrembleP.J. WalkerP.J. WalkerTyler AllgeierTyler Allgeier
26D'Onta ForemanDJ MooreDJ MooreYounghoe KooYounghoe Koo
27D'Onta ForemanP.J. WalkerP.J. WalkerMarcus MariotaMarcus Mariota
28D'Onta ForemanTommy TrembleTommy TrembleMarcus MariotaMarcus Mariota
29P.J. WalkerLaviska Shenault Jr.Laviska Shenault Jr.Chuba HubbardChuba Hubbard
30P.J. WalkerChuba HubbardChuba HubbardOlamide ZaccheausOlamide Zaccheaus
31D'Onta ForemanCarolina PanthersCarolina PanthersMarcus MariotaMarcus Mariota
32D'Onta ForemanP.J. WalkerP.J. WalkerYounghoe KooYounghoe Koo
33P.J. WalkerShi SmithShi SmithDamiere ByrdDamiere Byrd
34D'Onta ForemanLaviska Shenault Jr.Laviska Shenault Jr.Cordarrelle PattersonCordarrelle Patterson
35D'Onta ForemanEddy PineiroEddy PineiroCordarrelle PattersonCordarrelle Patterson
36Raheem BlackshearP.J. WalkerP.J. WalkerEddy PineiroEddy Pineiro
37Carolina PanthersChuba HubbardChuba HubbardD'Onta ForemanD'Onta Foreman
38Carolina PanthersD'Onta ForemanD'Onta ForemanOlamide ZaccheausOlamide Zaccheaus
39P.J. WalkerDJ MooreDJ Moore#N/ARB1
Lines
Cell Formulas
RangeFormula
L2:L39L2=VLOOKUP(Table9[@MVP],Table16,3,0)
M2:N2,M4:N39,M3M2=IFERROR(VLOOKUP(Table9[@FLEX],Table16,3,0),VLOOKUP(Table13[@FLEX],Table2,3,0))
O2:O39O2=IFERROR(VLOOKUP(Table9[@FLEX3],Table16,3,0),IFERROR(VLOOKUP(Table13[@FLEX3],Table2,3,0),VLOOKUP(Table13[@FLEX],Table2,3,0)))
P2:P39P2=IFERROR(VLOOKUP(Table9[@FLEX3],Table16,3,0),IFERROR(VLOOKUP(Table13[@FLEX3],Table2,3,0),IFERROR(VLOOKUP(Table13[@FLEX],Table2,3,0),Table13[@FLEX2])))


What I have been trying to do is lookup the values in each row until it reaches a blank.(values in table1 are looked up in a separate sheet than values in table 2). Once it reaches a blank, it goes to the next table and looks up the values in that table. The issue I am having is that some rows reach blanks sooner than the next one. I'm kind of wondering if anyone has any suggestions on my dilemma. Thank you for your time.
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
I've given this some thought and think I know what I need to do. I need to count the blank rows after the text entered. So if row 2 has:

Jim in ColA, Bob in colB, and Sam in Column C out of 5 columns in the table then it needs to return Jim Bob Sam 1 2.

Does that make sense?

Then I could use a nested if to test if each cell contains 1 2 3 4 and if not then perform the vlookup.

How could I auto enter the numbers in the blanks?
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
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