IFS function to display the value of another cell

urz2006

New Member
Joined
Jan 9, 2019
Messages
6
Office Version
  1. 2016
Platform
  1. Windows
Sorry this is probably a simple fix, but I can't make any combination work and can't see why this shouldn't work :(

I have a variety of currencies that may be used in a spreadsheet of costa, and want to have cells A4:B6 showing the current exchange rates

Rows 9 downwards will contatin various prices in column F, but will be in a variety of currencies. I will need some further calcuations to add in later....

I wan't cell H9 to look at what currency (ZAR, USD or EUR) that I type into E9 and then to look up what the corresponding exchange rate value is (i.e. the corresponding figure in B4/5/6), BUT I can't seem to make my function work, constantly get #NAME errors no matter what I try.

Below is latest example, I have tried various articles and tried putting TRUE at the end of the formula etc etc. Obviously doing something wrong but I can't make any combo work! Can any of you lovely people poitn me in right direction please?

(I was trying to make it do a more complex calculation initially, i.e if E9 = ZAR then H9 to take cell value of F9 and divide by cell value B4, if e9 = USD then H9 = F9 / B5, If E9 = EUR then H9 = F9 / E6 .....but I couldn't make that work, so I was trying to simplify it first and then use this calculated value in the next steps, but I can't make the more basic one work even)

Hope that makes some sense! thank you for any help

Ian


1682509862142.png
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Your profile does not state what your XL version is. the NAME error probably indicates you have are using a version older than XL2019 ?
In your case you can use
Excel Formula:
=VLOOKUP($E$9,$A$4:$B$6,2,0)
to retrieve the rate
or
Excel Formula:
=$F$9/VLOOKUP($E$9,$A$4:$B$6,2,0)
to have it all in one go
 
Upvote 1
Solution
What version of Excel are you using?
The #NAME error suggests that you do not have the IFS function
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
in cell H9 try this =F9/VLOOKUP(E9,$A$4:$B$6,2,0)
then fill down

fyi, in think the last comma in your original formula should not be there.
 
Upvote 1
Thank you both so much, I knew there would be something straightforward, but I didn;t know this VLOOKUP function. works perfectly - thank you! And also good to know about the #name error thing. Brilliant - thanks all
 
Upvote 0
Can you please update your profile to show which version of Excel you are using, as requested?
 
Upvote 1

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
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