Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
condition
I am creating a macro to calculate sum of the cells in
column. In a cells itself I have IF formulas which calculate value based on other cells in the row and display result if it is greater than 0 or display nothing ("") if it is 0. I am receiving error when the value in the cell is 0. How I can modify my macro so that it will allow 0 and will not try to add "" to the number ? Thanks for help. Tony |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
condition
Hi
post the relevant part of your code -- Regards Frank Kabel Frankfurt, Germany Tony wrote: I am creating a macro to calculate sum of the cells in column. In a cells itself I have IF formulas which calculate value based on other cells in the row and display result if it is greater than 0 or display nothing ("") if it is 0. I am receiving error when the value in the cell is 0. How I can modify my macro so that it will allow 0 and will not try to add "" to the number ? Thanks for help. Tony |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
condition
Hi Frank,
Thank you very much for your reply. In the meantime I have found solution to my problem. I have added the Val before the cell reference. It looks now like ... + Val(Worksheets("Entry").Cells(I, 7)) and it works exactly the way I wanted. Regards, Tony -----Original Message----- Hi post the relevant part of your code -- Regards Frank Kabel Frankfurt, Germany Tony wrote: I am creating a macro to calculate sum of the cells in column. In a cells itself I have IF formulas which calculate value based on other cells in the row and display result if it is greater than 0 or display nothing ("") if it is 0. I am receiving error when the value in the cell is 0. How I can modify my macro so that it will allow 0 and will not try to add "" to the number ? Thanks for help. Tony . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
SUM Condition | Excel Worksheet Functions | |||
Condition | Excel Discussion (Misc queries) | |||
lookup with multiple condition, but one condition to satisfy is en | Excel Worksheet Functions | |||
Combine an OR condition with an AND condition | Excel Discussion (Misc queries) | |||
Condition 1 overules condition 2? | Excel Worksheet Functions |