-1

I have an Excel sheet as below-

Cell No / Column A
-------------------
1.    Total
2.    $1,350.00
3.    $2,670.00
4.    $2,891.00
5.    $1,107.00

6.    Drop-Down List

I have added Data Validation List with some function name like MIN, MAX, SUM.I want to calculate the value of A2:A5 cell and display in A6 cell, if i select any of one function in A6 cell, which is added through data validations. Suppose I select SUM form in A6 cell, it will show sum of value function like SUM(A2:A5).

How can I do that?

Community
  • 1
  • 1

1 Answers1

3

You can simply create these three formulas in Column B, say, MIN in B1, MAX in B2, SUM in B3. Then pull your data validation drop down list from these cells which already contain that formula.
However you need to format your B1, B2, B3 cells so that in data validation list you see for example MIN, MAX or SUM. I have done this for you in this dropbox link

like this:
here is the preview

enter image description here
You can hide column B so that nobody can make any changes to it.
I have also selected the entire column range in column A in the formulas so if you add anything later to that column it automatically calculates them alL.
You can add as many formulas to column B as you want,and then put them in your data validation dropdown menu. Don't forget to format your cells in column B. You should custom format it and put your desired text inside "", like "MIN PRICE".

Marcel
  • 2,764
  • 1
  • 24
  • 40