Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a formula to calculate a percentage,
dim used, guests as Long, result as single result = (USED / GUESTS)*100 and get the dreaded overflow on data type error on some of the answers. I tried double, variant and decimal in the dim statment. decimal wouldn't even take in the dim. then, I tried, result = round((USED / GUESTS)*100,1) but the syntax gets hung up on the parentheses ... help greatly appreciated. Larry Levinson Talking up to the vocal ... LLevinson*Bloomberg.net (remove the star etc ....) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I hide unused file types from file types list in save dial | Excel Discussion (Misc queries) | |||
Excel 2007 error "some chart types cannot be combined with other chart types. Select a different chart types" | Charts and Charting in Excel | |||
Data types when importing Excel data to SQLServer | Excel Discussion (Misc queries) | |||
Data overflow to second worksheet | Excel Worksheet Functions | |||
VBA Long data type overflow | Excel Programming |