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

iandb

New Member
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
=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
=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
yes
=IFERROR(index(\$R\$4:\$R\$10,Match(B2,\$Q\$4:\$Q\$10,0)),0)

iandb

New Member
yes
=IFERROR(index(\$R\$4:\$R\$10,Match(B2,\$Q\$4:\$Q\$10,0)),0)

Perfect.

Much appreciated

you are welcome

Replies
8
Views
225
Replies
5
Views
267
Replies
5
Views
324
Replies
2
Views
51
Replies
2
Views
131

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.

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

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