 • 587K Members
• 11.3K Online
• 711K Conversations

Highlighted

# Excel formula help for auto populate

This is what I am trying to so we have 4 predfined values for column 'A'

For example (P,Q,R,S)

and I want a formula to be automatically inserted in the Column 'B' as per the option I choose in column 'A'

For example:

P = x+y

Q = x-y

R = x*y

S = x/y

so if i choose 'P' in a cell in column 'A'

in column 'B' in adjacent cell the formula 'x+y' should be auto populated.

Any help would be highly appreciated.

Note: New in excel and using Microsoft Excel for MAC version 16.21.1

2 Replies
Highlighted

# Re: Excel formula help for auto populate

Hi,

This should work,=IF(A1="P","x+y",IF(A1="Q","x-y",IF(A1="R","x*y", IF(A1="S","x/y"))))
Highlighted

# Re: Excel formula help for auto populate

As an alternative to Nested IFs, you may use CHOOSE, as follows:
=CHOOSE(MATCH(A1,{"P","Q","R","S"}),
"x+y","x-y","x*y","x/y")
Related Conversations
Time Sheet Formula Help
masonwood291 in Excel on
0 Replies
Sorting out duplicates.
lesleypohl in Excel on
7 Replies
Excel graphing and trendline bug?
ET_69 in Excel on
0 Replies
Offset
Jrm92 in Excel on
0 Replies
List data validation
Tm81700 in Excel on
1 Replies