Need Help with Indirect function combined with Index/Offset/Address function in excel

Ria_Ko

New Member
Joined
Mar 18, 2020
Messages
43
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hello everybody! Hope all are well.

I need some help in filling data in a particular table. I have tried multiple times to get the right formula, tried to seek help from youtube videos but none of it helped me get through.
In the worksheet "Part1" I want to write a formula that uses indirect combined with index/offset/address function in cell J23 that can be dragged across and down J23:M25 to return the exchange rate for the desired currency (J20), year (column I) and month (row 22), and that will update when a new currency is chosen at J20. The years and months needed will change depending on what currency is selected.

The data has to be filled in "Part1" from the 5 worksheets namely, "2012","2013","2014","2015","2016".
I have attached the file for the same.

Any help would be appreciated.


Thankyou,

Ria
 

Attachments

  • Screenshot (1).png
    Screenshot (1).png
    243 KB · Views: 37
  • Screenshot (2).png
    Screenshot (2).png
    221.3 KB · Views: 35
  • Screenshot (3).png
    Screenshot (3).png
    222.7 KB · Views: 24
  • Screenshot (4).png
    Screenshot (4).png
    222.7 KB · Views: 20
  • Screenshot (5).png
    Screenshot (5).png
    222.7 KB · Views: 19
  • Screenshot (6).png
    Screenshot (6).png
    222.9 KB · Views: 29

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Hi Ria_Ko,
I hope I have understood your requirements correctly. Try this:
=INDEX(INDIRECT("'"&$I25&"'!B2:D13"),MATCH(M$22,INDIRECT("'"&$I25&"'!A2:A13"),0),MATCH($J$20,INDIRECT("'"&$I25&"'!B1:D1"),0))
I have set up my worksheet in the same way as yours in the screenshots so all references should match.
 
Upvote 0
Hi Ria_Ko,
I hope I have understood your requirements correctly. Try this:
=INDEX(INDIRECT("'"&$I25&"'!B2:D13"),MATCH(M$22,INDIRECT("'"&$I25&"'!A2:A13"),0),MATCH($J$20,INDIRECT("'"&$I25&"'!B1:D1"),0))
I have set up my worksheet in the same way as yours in the screenshots so all references should match.
Hi sparky2205,
Thanks alot for trying to help me but the formula is returning a reference error. I am sure the formula should be somewhere near to the correct one. I will try to get to the correct one.
 
Upvote 0
Hi sparky2205,
Thanks alot for trying to help me but the formula is returning a reference error. I am sure the formula should be somewhere near to the correct one. I will try to get to the correct one.
It is returning the same value when i pull it across and down.
 
Upvote 0
It is returning the same value when i pull it across and down.
and also, the value retrieved for February 2012 in J23 is incorrect according to the 2012 worksheet.
 
Upvote 0
Strange,
I created a few sheets based on your screenshots so that you wouldn't need to adjust any cell references in the formula.
It works fine for me. It must be something simple.
Is it possible to upload your file to tinyupload.com and send a link so that I can take a look?
Make sure you purge any sensitive information first.
 
Upvote 0
Upvote 0
My bad,
I used an abbreviated form of your spreadsheet, just to get it working.
So, instead of having 10 currencies, I only used 3. But I forgot to adjust the formula for a larger number of currencies before sending it to you.
Try this now and it should work:
=INDEX(INDIRECT("'"&$I23&"'!B2:K13"),MATCH(J$22,INDIRECT("'"&$I23&"'!A2:A13"),0),MATCH($J$20,INDIRECT("'"&$I23&"'!B1:K1"),0))
 
Upvote 0
My bad,
I used an abbreviated form of your spreadsheet, just to get it working.
So, instead of having 10 currencies, I only used 3. But I forgot to adjust the formula for a larger number of currencies before sending it to you.
Try this now and it should work:
=INDEX(INDIRECT("'"&$I23&"'!B2:K13"),MATCH(J$22,INDIRECT("'"&$I23&"'!A2:A13"),0),MATCH($J$20,INDIRECT("'"&$I23&"'!B1:K1"),0))
Hi sparky2205,
It worked! Thank you so much for your help. Had been trying to get the right formula the entire day. Need to practice more of indirect function. Once again thanks alot. Take Care.
 
Upvote 0
You're welcome Ria_Ko. Glad I could help.
I've gotten so much help myself over the years from this forum, it's good to give back when I can.
Have a good day.
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,824
Members
449,050
Latest member
Bradel

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