ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Using Data from Drop Down Menus in Sum Formulas (https://www.excelbanter.com/excel-worksheet-functions/137528-using-data-drop-down-menus-sum-formulas.html)

Will Emms

Using Data from Drop Down Menus in Sum Formulas
 
Hi there,
I'd like to set up a spreadsheet with numerical drop down menus, the
selected values of which can then be taken and added together using the sum
function. I've tried adding in a drop down using the forms tool bar but sum
function won't seem to add the values.
Can anybody help?
Thanks
Will

Max

Using Data from Drop Down Menus in Sum Formulas
 
Think the numbers you are trying to sum are text numbers

Instead of, say: =SUM(I1:I10)

Try, array-entered, ie press CTRL+SHIFT+ENTER
instead of just pressing ENTER:
=SUM(I1:I10+0)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Will Emms" wrote:
Hi there,
I'd like to set up a spreadsheet with numerical drop down menus, the
selected values of which can then be taken and added together using the sum
function. I've tried adding in a drop down using the forms tool bar but sum
function won't seem to add the values.
Can anybody help?
Thanks
Will


Will Emms[_2_]

Using Data from Drop Down Menus in Sum Formulas
 
Hi Max,
Thanks for that but that still doesn't seem to work. Do you think I might
need to format the numbers in the drop down menu?
What do you reckon?
Will

"Max" wrote:

Think the numbers you are trying to sum are text numbers

Instead of, say: =SUM(I1:I10)

Try, array-entered, ie press CTRL+SHIFT+ENTER
instead of just pressing ENTER:
=SUM(I1:I10+0)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Will Emms" wrote:
Hi there,
I'd like to set up a spreadsheet with numerical drop down menus, the
selected values of which can then be taken and added together using the sum
function. I've tried adding in a drop down using the forms tool bar but sum
function won't seem to add the values.
Can anybody help?
Thanks
Will


Max

Using Data from Drop Down Menus in Sum Formulas
 
Formatting doesn't change underlying values. I wonder if you did array-enter
the suggested formula correctly? It should work ok. If you did array enter it
correctly you should see that the formula is wrapped with curly braces: { }
in the formula bar. These braces are inserted by Excel. Perhaps try it again?
Just click inside the formula bar where you placed: =SUM(I1:I10+0), then
press CTRL+SHIFT+ENTER. The addition of the zero: +0 should suffice to coerce
the text numbers within I1:I10 to real numbers, but the formula needs to be
array-entered.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Will Emms" wrote:
Hi Max,
Thanks for that but that still doesn't seem to work. Do you think I might
need to format the numbers in the drop down menu?
What do you reckon?
Will



All times are GMT +1. The time now is 02:48 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com