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

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

etaf

Well-known Member
Joined
Oct 24, 2012
Messages
4,681
Office Version
  1. 365
Platform
  1. MacOS
=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)),"")
 

iandb

New Member
Joined
Feb 16, 2009
Messages
34
Office Version
  1. 365
Platform
  1. Windows
=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?
 

etaf

Well-known Member
Joined
Oct 24, 2012
Messages
4,681
Office Version
  1. 365
Platform
  1. MacOS
yes
=IFERROR(index($R$4:$R$10,Match(B2,$Q$4:$Q$10,0)),0)
 
Solution

etaf

Well-known Member
Joined
Oct 24, 2012
Messages
4,681
Office Version
  1. 365
Platform
  1. MacOS
you are welcome
 

Watch MrExcel Video

Forum statistics

Threads
1,130,169
Messages
5,640,550
Members
417,151
Latest member
ChickenTenderer

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
Top