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"")"
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
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"")"
 
Upvote 0
Solution
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!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,213,489
Messages
6,113,954
Members
448,535
Latest member
alrossman

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