How do I make a cell use different formulas based off of another cell's input?
Example: C2 = w , formula in F2 =1+(e2*10%)
C2 = L , formula in F2 =-1+(e2*8%)
Thanks!
How do I make a cell use different formulas based off of another cell's input?
Example: C2 = w , formula in F2 =1+(e2*10%)
C2 = L , formula in F2 =-1+(e2*8%)
Thanks!
Something like =IF(C2="w",1+(e2*10%),if(C2="L",1+(e2*8%),""))
If the choice is a binary choice (C2 will be w or L and nothing else), you could use the IF() function =1+e2*if(C2="w",0.1,0.08)
If there are more choices, you could continue to nest IF() functions, but I would usually prefer to build a lookup table, then refer to that with a lookup function. =1+e2*vlookup(c2,lookup_table,2) http://office.microsoft.com/en-us/ex...011.aspx?CTT=1
Originally Posted by shg
"Something like =IF(C2="w",1+(e2*10%),if(C2="L",1+(e2*8%),"")) "
That worked perfectly! Thanks for the help. I love excel, but I am still in the learning process.
Look forward to learning about lookup tables and more about IF functions, etc...
Thanks for all replies.
Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.
In future, to mark your thread as Solved, you can do the following -
Select Thread Tools-> Mark thread as Solved.
Incase your issue is not solved, you can undo it as follows -
Select Thread Tools-> Mark thread as Unsolved.
Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
If I have helped, Don't forget to add to my reputation (click on the star below the post)
Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
Use code tags when posting your VBA code: [code] Your code here [/code]
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks