[VBA or excel function]- how to get value from certain cell in row/column match

cmcamilo

New Member
Joined
Dec 19, 2022
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Hello eveyone,

I have multiple excel files that should "report" to a single one.
Imagine this example:

Excel 1)
1673539611515.png

Excel 1 is the one that receives the whole information from the other files. In that cell with the green circle it should get the value which has row="6" and column="JAN" on other excel (Excel 2).

Excel 2)
1673539743870.png

In this excel there is a cell that has exactly the row="6" and column="JAN". The value does not match in the cell number of each excel (in this example, the cell I want to fill in Excel 1 is E21 and in Excel 2 is E20).
Plus, I want this to be dynamic. If I now understand that the KPI I want to show in number 6 is other one I should change the number in Excel 2 and it should be getting that new value in Excel 1.

Was this clear? I'm sorry, english is not my primary language and I understand if it is a little bit confusing.
Thank you.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
where Book2 is your Excel 2 and assuming Jan is in Cell "C3" in both excel.

so starting with Cell "C4" try this the drag down and across
Excel Formula:
=INDEX([Book2]Sheet1!$C$4:$X$100,MATCH($B4,[Book2]Sheet1!$B$4:$B$100,0),MATCH(C$3,[Book2]Sheet1!$C$3:$X$3,0))
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,636
Latest member
laura12345

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