cell to equal based on multiple data validation options

jimjim001

New Member
Joined
Jan 8, 2022
Messages
13
Office Version
  1. 365
Platform
  1. MacOS
Im trying to do something simple, I think... and im stuck.

A1 has 4 drop down options.
I want B1 to read either C1, C2, C3 or C4 based on the drop down selected in A1

So like this.
if I select P1 in the drop down at A1, then B1 would read C1, and show "5"
if I select P2 in the drop down at A1, then B1 would read C2, and show "10"
if I select P3 in the drop down at A1, then B1 would read C3, and show "15"
if I select P2 in the drop down at A1, then B1 would read C4, and show "20"

Screenshot attached for reference

Help please!

TIA.
 

Attachments

  • Screen Shot 2022-01-09 at 1.07.45 pm.png
    Screen Shot 2022-01-09 at 1.07.45 pm.png
    17.1 KB · Views: 5

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
I don't think you need column C. Unless you're changing C. But try this:
Book1.xlsx
ABC
1P4205
210
315
420
Sheet8
Cell Formulas
RangeFormula
B1B1=IFS(A1="P1",C1,A1="P2",C2,A1="P3",C3,A1="P4",C4,TRUE,"")
Cells with Data Validation
CellAllowCriteria
A1ListP1,P2,P3,P4
 
Upvote 0
Solution
I don't think you need column C. Unless you're changing C. But try this:
Book1.xlsx
ABC
1P4205
210
315
420
Sheet8
Cell Formulas
RangeFormula
B1B1=IFS(A1="P1",C1,A1="P2",C2,A1="P3",C3,A1="P4",C4,TRUE,"")
Cells with Data Validation
CellAllowCriteria
A1ListP1,P2,P3,P4
legend!

C may change over time, so will keep it there. Thanks heaps!
 
Upvote 0
GOT IT WORKING!

The formula looked a little different in the end, it was this:

=IFS(E8=1,$J$132,E8=3,$J$129,E8=6,$J$126,E8=12,$E$129,E8=18,$E$126,E8="","")
 
Upvote 0

Forum statistics

Threads
1,214,429
Messages
6,119,428
Members
448,896
Latest member
MadMarty

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