Hello everyone!
I need to lookup this cell - at R1 "USD" or "EURO"
if "USD", A2*R2
if "EURO", B2*R2
below is my first part of formula but i do not know how to write the second part.
=IF($R$1="usd",A2*$R$2)
thank you in advance. =)
Hello everyone!
I need to lookup this cell - at R1 "USD" or "EURO"
if "USD", A2*R2
if "EURO", B2*R2
below is my first part of formula but i do not know how to write the second part.
=IF($R$1="usd",A2*$R$2)
thank you in advance. =)
Last edited by kevin1979; 11-02-2017 at 03:04 AM.
Hi, welcome to the forum
Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem - not what you think the answer might be. (think google search terms?). Once you have done this please send me a PM and I will remove this request. (Also, include a link to your thread - copy from the address bar)
Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?
To change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
(note: this change is not optional)
(just add the 2nd part, like you have it)
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
Try
Formula:
Please Login or Register to view this content.
If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
ops, sorry for not reading the rules. =(
I tried to search for the same "problem" in google and forum but unable to find it. that's why i created a account to seek for help.
noted, i will change the title.
thank you. =)
Try
Formula:
Please Login or Register to view this content.
why would you need the second IF function? wouldn't a standard IF work
unless you want it to only do the calculation if the cell has the USD or EURO part included.![]()
Please Login or Register to view this content.
an important thing to remember is to try and stream line your formulas and adding in a lot of IF functions can make something simple and fast in to something slow and complicated.
The Importance of INDEX - A GUIDE TO INDEX'S OTHER USES
<--- If a post helps hit the star
You can also use the INDIRECT function instead of the IF formula.
1. Name cell A2 "USD" AND B2 to "EURO"
2. Dropdown selection in R1 to select USD/EURO, etc.
3. Cell R2 holds value to be multiplied
4. Result in S2 using:
![]()
Please Login or Register to view this content.
Ben Van Johnson
Thank you guys. My problem solved.![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks