If formula?? To show a result from a drop down selection

iandb

New Member
Joined
Feb 16, 2009
Messages
34
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I am looking to have a value shown in cell D4 depending on a selected option from a drop down.

The dropdown is in cell B2 from a range listed in Q4 - Q10. each range in Q has a corresponding value in R4 - 10

So the end result will be on the dropdown is selected the Q6 then D4 will result will be the value in R6
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
=index($R$4:$R$10,Match(B2,$Q$4:$Q$10,0))
But will show N/A if not found, so not show what you have as default
so if its blank , then
=IFERROR(index($R$4:$R$10,Match(B2,$Q$4:$Q$10,0)),"")
 
Upvote 0
=index($R$4:$R$10,Match(B2,$Q$4:$Q$10,0))
But will show N/A if not found, so not show what you have as default
so if its blank , then
=IFERROR(index($R$4:$R$10,Match(B2,$Q$4:$Q$10,0)),"")

Hi there,

Thanks, works a treat, although now kicks up another question on the end result display of another linked formula.

Using the the iferror, nothing selected so a blank then in another cell I have a formula calcuting prices / discounts that gives a #value! error.

Can either of your options be done so if no drop down selected then the result is 0 .00?
 
Upvote 0
yes
=IFERROR(index($R$4:$R$10,Match(B2,$Q$4:$Q$10,0)),0)
 
Upvote 0
Solution

Forum statistics

Threads
1,213,546
Messages
6,114,256
Members
448,557
Latest member
richa mishra

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