Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
sum only if there is a value in cells
I have the following formula:
A3=SUM(A1+A2) Is there a way so that A3 only sums if there is a value in both cells and not if there is text? The values are hours and minutes. |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
sum only if there is a value in cells
=IF(AND(ISNUMBER(A1),ISNUMBER(A2)),A1+A2,"")
-- Best Regards, Luke M *Remember to click "yes" if this post helped you!* "Geo" wrote: I have the following formula: A3=SUM(A1+A2) Is there a way so that A3 only sums if there is a value in both cells and not if there is text? The values are hours and minutes. |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
sum only if there is a value in cells
=IF(AND(ISNUMBER(A1),ISNUMBER(A2)),A1+A2,"")
=IF(COUNT(A1:A2)=2,A1+A2,"") -- Biff Microsoft Excel MVP "Luke M" wrote in message ... =IF(AND(ISNUMBER(A1),ISNUMBER(A2)),A1+A2,"") -- Best Regards, Luke M *Remember to click "yes" if this post helped you!* "Geo" wrote: I have the following formula: A3=SUM(A1+A2) Is there a way so that A3 only sums if there is a value in both cells and not if there is text? The values are hours and minutes. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel: match two cells in one sheet to two cells in another and return a third cells value | Excel Worksheet Functions | |||
Cells won't change font color or show hi-lighted cells in document | Excel Discussion (Misc queries) | |||
display a range of cells editible cells based on matching date | Excel Worksheet Functions | |||
Setting of input cells as blue font and formula cells as black fon | Excel Discussion (Misc queries) | |||
trying to create an (almost) circular formula between cells and data validated cells with lists | Excel Worksheet Functions |