formula derived from cells

abanky

Board Regular
I know i've done this before, but can't figure it out.

A1: is a data validation list: Sum, Max, Min
A2: is a number
A3: is a number

I want a4 to become a formula based upon what is dropped down in A1 so, Sum(A2,A3), or Max(A2,A3), or Min(A2,A3)

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
wasn't sure if there was a way to do it with out adding that mod

If you have XL2010 or higher, here is one option:

=AGGREGATE(INDEX({9,4,5},MATCH(A1,{"Sum","Max","Min"},0)),4,A2:A3)

Replies
4
Views
46
Replies
2
Views
47
Replies
1
Views
165
Replies
3
Views
150
Replies
1
Views
72

1,203,241
Messages
6,054,326
Members
444,717
Latest member
melindanegron

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