Index formula returning #REF!

JackDanIce

Well-known Member
Joined
Feb 3, 2010
Messages
9,922
Office Version
  1. 365
Platform
  1. Windows
Hi,

Table name: Currency, sheet name Currency

I have the following index formula on another sheet:
=INDEX(Currency,MATCH(D2,Currency[#Headers],0),MATCH(B2,Currency[[#Alll],[Date]],0))
D2 is a date, B2 is a currency label, both exist in the table

If I use Evaluate Formula, it becomes:
=INDEX('Currency'!$A$2,$R$7710,2,76)
Which returns #REF, despite valid values for row and column index numbers (i.e. Match returns a number)

Can anyone tell why? The cell it finds is B76 (which is within range A2:R7710) and contains value 1, so why does the formula return #REF!?

TIA,
Jack
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
The part in red is the column reference
=INDEX('Currency'!$A$2,$R$7710,2,76)
which is column BX hence the #REF error.
Should the two match functions be the other way round?
 
Upvote 0
Been staring at this screen for too long, urgh, should have re-checked that. Thanks @Fluff, solves it :)
 
Upvote 0

Forum statistics

Threads
1,214,650
Messages
6,120,734
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