VLOOKUP WITH HLOOKUP

Jewells0905

New Member
Joined
Mar 10, 2024
Messages
42
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I am trying to write a formula using VLOOKUP with HLOOKUP as the index. This formula will return the annual revenue for a given salesperson in cell B12 and year in cell B13.

I am currently using formula =VLOOKUP(HLOOKUP(B13,B2:F3,2,FALSE)&B12,A4:F10,1,false) but I am getting #N/A error, stating - Did not find value '4Jimmy' in VLOOKUP evaluation.

20182019202020212022
Column #23456
Jimmy$30,150$33,497$34,608$34,214$32,768
Freya$37,386$34,512$36,573$37,949$34,980
Artie$40,836$45,833$43,827$42,997$42,195
Marie$27,212$27,137$29,241$29,975$26,916
Dwayne$16,133$16,950$15,412$17,356$16,862
Grace$41,914$44,695$43,975$38,484$43,772
Westin$19,259$17,403$23,897$18,146$27,546
Salesperson:Jimmy
Year:2020
Revenue:
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Try:
Book3
ABCDEF
1
220182019202020212022
3Column #23456
4Jimmy$ 30,150$ 33,497$ 34,608$ 34,214$ 32,768
5Freya$ 37,386$ 34,512$ 36,573$ 37,949$ 34,980
6Artie$ 40,836$ 45,833$ 43,827$ 42,997$ 42,195
7Marie$ 27,212$ 27,137$ 29,241$ 29,975$ 26,916
8Dwayne$ 16,133$ 16,950$ 15,412$ 17,356$ 16,862
9Grace$ 41,914$ 44,695$ 43,975$ 38,484$ 43,772
10Westin$ 19,259$ 17,403$ 23,897$ 18,146$ 27,546
11
12Salesperson:Freya
13Year:2018
14Revenue:$ 37,386
Sheet3
Cell Formulas
RangeFormula
B14B14=VLOOKUP(B12,$A$4:$F$10,MATCH(B13,$B$2:$F$2,0)+1,FALSE)
 
Upvote 0
Try:
Book3
ABCDEF
1
220182019202020212022
3Column #23456
4Jimmy$ 30,150$ 33,497$ 34,608$ 34,214$ 32,768
5Freya$ 37,386$ 34,512$ 36,573$ 37,949$ 34,980
6Artie$ 40,836$ 45,833$ 43,827$ 42,997$ 42,195
7Marie$ 27,212$ 27,137$ 29,241$ 29,975$ 26,916
8Dwayne$ 16,133$ 16,950$ 15,412$ 17,356$ 16,862
9Grace$ 41,914$ 44,695$ 43,975$ 38,484$ 43,772
10Westin$ 19,259$ 17,403$ 23,897$ 18,146$ 27,546
11
12Salesperson:Freya
13Year:2018
14Revenue:$ 37,386
Sheet3
Cell Formulas
RangeFormula
B14B14=VLOOKUP(B12,$A$4:$F$10,MATCH(B13,$B$2:$F$2,0)+1,FALSE)
that did work thank you so much for your help. I also figured out that the below formula works and uses both VLOOKUP and the HLOOKUP functions
=VLOOKUP(B12, A4:F10, HLOOKUP(B13, B2:F3, 2, TRUE), FALSE)
 
Upvote 0
Solution

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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