Excel/Excel VBA Index Match Match returning incorrect column

Octofez2

New Member
Joined
Jul 7, 2016
Messages
9
Hello all,

The below formula is pulling from a +1 column which is incorrect. The Index and first Match info are aligning. The second Match are dates as column headers with Y or N below. I tried putting the formula in a cell, removed the IFERROR function to ensure it wasn't an error and had the same issue. I'm not sure what I am overlooking so any help would be greatly appreciated.


.Range("F6:F" & Ordid).Formula = "=IFERROR(INDEX(Polling_Schedule!$B:$R," & _
"MATCH(Raw_Data!E6,Polling_Schedule!$B:$B,0)," & _
"MATCH(Raw_Data!$D$2,Polling_Schedule!$A$1:$R$1,0)),""N"")"
 

Some videos you may like

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,549
Office Version
  1. 365
Platform
  1. Windows
Try
VBA Code:
.Range("F6:F" & Ordid).Formula = "=IFERROR(INDEX(Polling_Schedule!$B:$R," & _
                   "MATCH(Raw_Data!E6,Polling_Schedule!$B:$B,0)," & _
                   "MATCH(Raw_Data!$D$2,Polling_Schedule!$B$1:$R$1,0)),""N"")"
 
Solution

Octofez2

New Member
Joined
Jul 7, 2016
Messages
9
It works now. I had a lot of stuff to validate. I guess because the other data originates starting in column B so it was bugging out using A1 in the second match? Thank you!
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,549
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
1,127,589
Messages
5,625,671
Members
416,125
Latest member
NeedExcelHelp2021

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
Top