 • 413K Members
• 9,930 Online
• 471K Conversations

Highlighted

excel if calculations

can someone help with the correct formula for the following;

if (B3 = 1 then M8), if (B3 = 2 then N8), if (B3 = 3 then O8)

many thanks

6 Replies

Re: excel if calculations

try:

=IFS(B3=1,M8,B3=2,N8,B3=3,O8)

Re: excel if calculations

Please try below formula:

=IF(B3=1,M8,IF(B3=2,N8,O8))

Thanks

Tauqeer

Re: excel if calculations

It could be

=CHOOSE(B3,M8,N8,O8)

or

=INDEX(M8:O8,B3)

Re: excel if calculations

Thank you @Sergei Baklan

CHOOSE works great

Re: excel if calculations

Thank you @finaly

I have 20 rows i need to apply this too, when I drag the calculation down the rows it obviously changes the B3 to B4 and so on, I need the B3 input to remain constant where the M N & O can ascend, any suggestions?

Re: excel if calculations

In any of above formulas use absolute reference for B3 and relative one for others, like

=CHOOSE(\$B\$3,\$M8,\$N8,\$O8)

Related Conversations
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
Edge insider Dev bypasses IE mode website list
HotCakeX in Enterprise on
4 Replies