Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,560
Default Combo box result text not number

I am updating a spreadsheet that has 13 worksheets, each with questions where
the user "grades" themselves by selecting numbers through a combo box. The
combo box refers to a range elsewhere on the sheet containing numbers such as
0, 1, 2.5, 5 etc. These numbers are formatted as numbers. When the user
selects a number, the result is posted to a hidden cell to the right of the
combo box. However, this number result is posted as text and the formula
=sum(L5:L19) will not update. =sum(L5+l6+l7+etc) does work, but we are adding
rows and having to manually updating each formula. We really prefer the
results be in number format and not text without having to convert to number
or number * 1. The combo box is not done through Data Validation...which I've
tried. What suggestions can someone offer? I've looked at doing a macro on
the page to do the conversion, but don't know how to assign to any change on
any combo box (all the combo boxes use the numbers, so that could be an
answer) as I don't want to write code for individual combo boxes as their
name may change as they are copied and added to the new rows.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Combo box result text not number

(was unable to duplicate error)
Are you using the combo box from the forms toolbar?
Is the cell you're linking to formatted as number, not text?

I find the problem interesting, as even when you have text being used in a
combo box, it should return a number corresponding to row number of list.
Perhaps the problem is how you are "posting" the number. Are you using a
lookup or index formula?
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"David" wrote:

I am updating a spreadsheet that has 13 worksheets, each with questions where
the user "grades" themselves by selecting numbers through a combo box. The
combo box refers to a range elsewhere on the sheet containing numbers such as
0, 1, 2.5, 5 etc. These numbers are formatted as numbers. When the user
selects a number, the result is posted to a hidden cell to the right of the
combo box. However, this number result is posted as text and the formula
=sum(L5:L19) will not update. =sum(L5+l6+l7+etc) does work, but we are adding
rows and having to manually updating each formula. We really prefer the
results be in number format and not text without having to convert to number
or number * 1. The combo box is not done through Data Validation...which I've
tried. What suggestions can someone offer? I've looked at doing a macro on
the page to do the conversion, but don't know how to assign to any change on
any combo box (all the combo boxes use the numbers, so that could be an
answer) as I don't want to write code for individual combo boxes as their
name may change as they are copied and added to the new rows.

  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Combo box result text not number

One other thought
=sum(L5:L19)


Perhaps try "add a zero" to coerce text nums to real nums
viz,, use, array-entered*: =sum(L5:L19+0)
*press CTRL+SHIFT+ENTER to confirm the formula
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:21,000 Files:370 Subscribers:66
xdemechanik
---

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formulas - SUMIF but with a text not number result? Lindy Excel Discussion (Misc queries) 1 March 30th 07 05:30 AM
I want my combo box to return a date format instead of a number? Cainman Excel Discussion (Misc queries) 2 June 23rd 06 09:29 PM
How make text appear in a cell as a result of a number in another Jeff Ellison Excel Discussion (Misc queries) 6 January 9th 06 11:20 PM
trying to retrive number combo to = fixed amount jsb Excel Worksheet Functions 0 November 30th 05 04:37 PM
Creating combo box with different number of variables fullers Excel Worksheet Functions 1 July 4th 05 07:19 PM


All times are GMT +1. The time now is 06:56 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"