Why is my vlookup + MATCH formula not working?

Jyggalag

Active Member
Joined
Mar 8, 2021
Messages
445
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
hi all,

i have this overview:

1687266925441.png


And in my other sheet entitled "XXX" i have this table:

1687266896810.png


I am using this formula to calculate my nominal value in EUR:

=IF(J2="EUR";I2;I2*VLOOKUP(J2;'XXX'!AO6:AS7;MATCH(J2;'XXX'!AO6:AS6;0);FALSE))

it should in the case above say 12046,37 * 0,134192, since the currency is DKK and not EUR, so it needs to recalculate the value into EUR.

However, my formula just returns "#N/A"

what have I done wrong and can someone please help me fix my formula?

thanks!
 

Attachments

  • 1687266867410.png
    1687266867410.png
    4 KB · Views: 9

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Try using INDEX

=IF(J2="EUR",I2,2*INDEX(N3:Q4,2,MATCH(J2,N3:Q3,0)))

the currency conversion was in the same sheet so you need to set the new range in the formula to point to your range for N3:Q4 and N3:Q3

MATCH gives the column offset and the 2 is the row offset
 
Upvote 0
Try using INDEX

=IF(J2="EUR",I2,2*INDEX(N3:Q4,2,MATCH(J2,N3:Q3,0)))

the currency conversion was in the same sheet so you need to set the new range in the formula to point to your range for N3:Q4 and N3:Q3

MATCH gives the column offset and the 2 is the row offset
My currency table starts at AO5 (cell value "Currency") and ends at AS6 (cell value "1,022008").

Your formula unfortunately does not work, or maybe I have misinterpreted it?

this is what I wrote, and it still returns #N/A

=IF(J2="EUR";I2;2*INDEX('XXX'!AO6:AS7;2;MATCH(J2;'XXX'!AO6:AS7;0)))

also tried with this to no avail:

=IF(J2="EUR";I2;2*INDEX('Intercompany loans overview'!AO6:AS6;2;MATCH(J2;'Intercompany loans overview'!AO6:AS7;0)))
 
Upvote 0
Try
Excel Formula:
=IF(J2="EUR";I2;I2*HLOOKUP(J2;'XXX'!AO6:AS7;2;FALSE))
 
Upvote 1
Solution
I know it solved but does this work?

=IF(J2="EUR",I2,I2*INDEX(XXX!AO5:AS6,2,MATCH(J2,XXX!AO5:AS5,0)))
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,193
Members
452,616
Latest member
intern444

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