Auto fill cell based on drop down menu

Pretty sure this is a simple formula but I’m pulling what’s left of my hair out!


I have a drop down menu in C3 that contains 3 possible selections : 1, 2, 3.

If I choose 1 from the drop down menu I want cell D3 to populate with A.

If I choose 2 from the drop down menu I want cell D3 to populate with B.

If I choose 3 from the drop down menu I want cell D3 to populate with C.


And if possible how would I apply that setting so it would work the same for C4/D4.


Any help is much appreciated.

MacBook Pro 15", macOS 10.13

Posted on Apr 6, 2019 11:56 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 6, 2019 12:07 PM

One way is to do this:


Set up a Pop-Up Menu (they're not called drop-down menus in Numbers):



Then use this formula in D3, filled down:




=INDEX({"A";"B";"C"},MATCH(C3,{1;2;3},0))


The MATCH finds where the value in C3 occurs in the list in the second set of brackets. The INDEX then retrieves the corresponding value from the list in the first set of brackets.


Substitute ; for , in the formula if your region uses , as a decimal separator.


SG

9 replies
Question marked as Top-ranking reply

Apr 6, 2019 12:07 PM in response to hughdillon

One way is to do this:


Set up a Pop-Up Menu (they're not called drop-down menus in Numbers):



Then use this formula in D3, filled down:




=INDEX({"A";"B";"C"},MATCH(C3,{1;2;3},0))


The MATCH finds where the value in C3 occurs in the list in the second set of brackets. The INDEX then retrieves the corresponding value from the list in the first set of brackets.


Substitute ; for , in the formula if your region uses , as a decimal separator.


SG

Apr 6, 2019 9:29 PM in response to hughdillon

Just guessing but perhaps you put the 2d 7h 35m directly in the list in the formula. Unfortunately Numbers won't recognize it as a duration. So as a workaround you could put the number of minutes in the Pop-Up Menu. Then use an extra column to convert that to Duration, something like this:




The formula in E3:


=DURATION(,,,D3)


converts the number of minutes to a Duration, which can then be added as Ian demonstrates.



SG

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Auto fill cell based on drop down menu

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.