Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have multiple spreadsheets in a workbook and each worksheet contains
recorded rainfall data for each day of a month. In the column containing the recorded rainfall, the data is entered as: 1 or 1" I need to add the totals for each month, but I cannot since some of the contains contain alphanumeric values.is there a function that I can use that can disregard the text and focus only on the numeric value of the cell instead of having to copy the value into a new cell each time I want to add? Thanks. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try this small UDF:
Public Function zum(r As Range) As Variant zum = 0 For Each rr In r zum = zum + Val(rr.Value) Next End Function You can use it in the worksheet like SUM(). It will ignore trailing text in cells that start with a number, but end with text. -- Gary''s Student - gsnu200802 "scott" wrote: I have multiple spreadsheets in a workbook and each worksheet contains recorded rainfall data for each day of a month. In the column containing the recorded rainfall, the data is entered as: 1 or 1" I need to add the totals for each month, but I cannot since some of the contains contain alphanumeric values.is there a function that I can use that can disregard the text and focus only on the numeric value of the cell instead of having to copy the value into a new cell each time I want to add? Thanks. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=SUMPRODUCT(--SUBSTITUTE(A1:A4,"""",""))
"scott" wrote: I have multiple spreadsheets in a workbook and each worksheet contains recorded rainfall data for each day of a month. In the column containing the recorded rainfall, the data is entered as: 1 or 1" I need to add the totals for each month, but I cannot since some of the contains contain alphanumeric values.is there a function that I can use that can disregard the text and focus only on the numeric value of the cell instead of having to copy the value into a new cell each time I want to add? Thanks. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
both suggestions worked wonderfully and thanks for your help. can you explain
the "--" in functions? To me, it logically seems that is a double-negative, but I am sure there is a different meaning. Thanks! "Teethless mama" wrote: =SUMPRODUCT(--SUBSTITUTE(A1:A4,"""","")) "scott" wrote: I have multiple spreadsheets in a workbook and each worksheet contains recorded rainfall data for each day of a month. In the column containing the recorded rainfall, the data is entered as: 1 or 1" I need to add the totals for each month, but I cannot since some of the contains contain alphanumeric values.is there a function that I can use that can disregard the text and focus only on the numeric value of the cell instead of having to copy the value into a new cell each time I want to add? Thanks. |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
It converts TRUE/FALSE to 1/0
"scott" wrote: both suggestions worked wonderfully and thanks for your help. can you explain the "--" in functions? To me, it logically seems that is a double-negative, but I am sure there is a different meaning. Thanks! "Teethless mama" wrote: =SUMPRODUCT(--SUBSTITUTE(A1:A4,"""","")) "scott" wrote: I have multiple spreadsheets in a workbook and each worksheet contains recorded rainfall data for each day of a month. In the column containing the recorded rainfall, the data is entered as: 1 or 1" I need to add the totals for each month, but I cannot since some of the contains contain alphanumeric values.is there a function that I can use that can disregard the text and focus only on the numeric value of the cell instead of having to copy the value into a new cell each time I want to add? Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Calculation based on cell format results | Excel Discussion (Misc queries) | |||
Hours calculation in 24h format | Excel Discussion (Misc queries) | |||
Time format - problems with calculation | Excel Discussion (Misc queries) | |||
Converting decimal calculation to h:mm format | Excel Worksheet Functions | |||
format to calculation cell | Excel Discussion (Misc queries) |