HLookup has stopped working

smiffydotnet

New Member
Joined
Jun 22, 2020
Messages
4
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I had an HLookup, which would pull data from Row 17 if it found "June2020CC" in the array.

I'd run this over several rows to pull over subtotal for each category on my June 2020 Credit Card sheet.

All was fine, but then for no apparent reason, it started to pull in the next column over i.e. not the one headed June2020CC, but the column to the right!

Reading the threads it's suggested to use INDEX and MATCH instead, but I can't get my head around this.

This is my current formula

VBA Code:
=HLOOKUP($M575,MonthEndValues,R576)

M575 contains the key i.e. JUNE20CC
R576 is the row number, in this example 17

So what I'm wanting to do is to pull over the value from Row 17 of the MonthEndValues array, where the column row contains "JUNE20CC"
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,214,649
Messages
6,120,731
Members
448,987
Latest member
marion_davis

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