Hi,
I have a sheet called "Consolidated data" in an Excel workbook. The sheet has prefilled information in A7:E698 (which can be extended or shortened downwards/vertically depending on raw data) and F1:CVM6 (which can be extended or shortened across/horizontally depending on raw data).
I have the following formula in cell F7, which is copied across F7:CVM698, but which needs to cover a larger or smaller area depending on the prefilled information described above:
=IFERROR(INDEX(INDIRECT("SAP"&"[["&F$6&"]:["&F$6&"]]"),MATCH('Consolidated data'!$B7&'Consolidated data'!F$1&'Consolidated data'!F$2&'Consolidated data'!F$3&'Consolidated data'!F$4&'Consolidated data'!F$5,SAP[[Batch]:[Batch]]&SAP[[Operation short text]:[Operation short text]]&SAP[[Step Text]:[Step Text]]&SAP[[MIP Text]:[MIP Text]]&SAP[[MIP]:[MIP]]&SAP[[Int2]:[Int2]],0)),"")
I need a VBA version of the formula above, which calculates the results required for the area defined by the abovementioned prefilled information, currently covering F7:CVM698.
I'd appreciate if anyone could help me with the code.
Best regards,
Marbleking
Bookmarks