Idex Match in For Loop to alter Column data is taken from

jap7675

New Member
Joined
Nov 13, 2015
Messages
23
Good Morning,

I dont understand why this peice of code will not work for 'i'. I can loop the column very easily. But, with or without the column for loop, the 'i' for loop will not work.

For Col = 1 To 7
For i = 1 To 7
With Application.WorksheetFunction
Sheets("Summary").Cells(15, Col) = _
.Index(Sheets(iYear).Range("A3:G50"), .Match(Sheets("Summary").Range("B15"), Rng, 1), i)
End With
Next i
Next Col​

I basically want to populate a row of data from one sheet 'iYear' into the summary. iYear is a string already defined in the code, and does not need quotations etc...

Thanks,
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
For a matter of fact, my Index Match also isnt working as it should! When i changce my lookup value, it will not search for it!
 
Upvote 0

Forum statistics

Threads
1,215,327
Messages
6,124,289
Members
449,149
Latest member
mwdbActuary

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