Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
SUMIF and text with decimals
Why does Excels SUMIF formula consider cells with text data such as:
2.1 and 2.10 as equal (it sums their values) when used in the range and criteria? |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
SUMIF and text with decimals
SUMIF (and COUNTIF) does not make a difference between numbers and numbers
represented as text, you would need to use SUMPRODUCT for that =SUMPRODUCT(--(A2:A100="2.10"),B2:B100) will sum B2:B100 where A2:A100 equals "2.10" -- Regards, Peo Sjoblom "Mark" wrote in message ... Why does Excel's SUMIF formula consider cells with text data such as: 2.1 and 2.10 as equal (it sums their values) when used in the range and criteria? |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
SUMIF and text with decimals
Nel ,
Mark ha scritto: Why does Excels SUMIF formula consider cells with text data such as: 2.1 and 2.10 as equal (it sums their values) when used in the range and criteria? Hi Mark, because Excel treat as number text that can be treated as number, when you use it in calculation. So if you use a number formatted as text in a calculation, it will be treated as a number. -- (I'm not sure of names of menus, options and commands, because translating from the Italian version of Excel...) Hope I helped you. Thanks in advance for your feedback. Ciao Franz Verga from Italy |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
SUMIF and text with decimals
Thank you - that works
"Peo Sjoblom" wrote: SUMIF (and COUNTIF) does not make a difference between numbers and numbers represented as text, you would need to use SUMPRODUCT for that =SUMPRODUCT(--(A2:A100="2.10"),B2:B100) will sum B2:B100 where A2:A100 equals "2.10" -- Regards, Peo Sjoblom "Mark" wrote in message ... Why does Excel's SUMIF formula consider cells with text data such as: 2.1 and 2.10 as equal (it sums their values) when used in the range and criteria? |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
SUMIF and text with decimals
Only some function do that, not SUMPRODUCT for instance
-- Regards, Peo Sjoblom "Franz Verga" wrote in message ... Nel , Mark ha scritto: Why does Excel's SUMIF formula consider cells with text data such as: 2.1 and 2.10 as equal (it sums their values) when used in the range and criteria? Hi Mark, because Excel treat as number text that can be treated as number, when you use it in calculation. So if you use a number formatted as text in a calculation, it will be treated as a number. -- (I'm not sure of names of menus, options and commands, because translating from the Italian version of Excel...) Hope I helped you. Thanks in advance for your feedback. Ciao Franz Verga from Italy |
#6
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
SUMIF and text with decimals
Thank you for clarification
-- (I'm not sure of names of menus, options and commands, because translating from the Italian version of Excel...) Hope I helped you. Thanks in advance for your feedback. Ciao Franz Verga from Italy "Peo Sjoblom" ha scritto nel messaggio ... Only some function do that, not SUMPRODUCT for instance -- Regards, Peo Sjoblom "Franz Verga" wrote in message ... Nel , Mark ha scritto: Why does Excel's SUMIF formula consider cells with text data such as: 2.1 and 2.10 as equal (it sums their values) when used in the range and criteria? Hi Mark, because Excel treat as number text that can be treated as number, when you use it in calculation. So if you use a number formatted as text in a calculation, it will be treated as a number. -- (I'm not sure of names of menus, options and commands, because translating from the Italian version of Excel...) Hope I helped you. Thanks in advance for your feedback. Ciao Franz Verga from Italy |
#7
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
SUMIF and text with decimals
Thanks Franz
"Franz Verga" wrote: Nel , Mark ha scritto: Why does Excels SUMIF formula consider cells with text data such as: 2.1 and 2.10 as equal (it sums their values) when used in the range and criteria? Hi Mark, because Excel treat as number text that can be treated as number, when you use it in calculation. So if you use a number formatted as text in a calculation, it will be treated as a number. -- (I'm not sure of names of menus, options and commands, because translating from the Italian version of Excel...) Hope I helped you. Thanks in advance for your feedback. Ciao Franz Verga from Italy |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Sumif text is contained winthin a longer text string in a cell | Excel Worksheet Functions | |||
sumif with text? | Excel Discussion (Misc queries) | |||
Excel Automatically Changing Decimals to Text as Default | Excel Discussion (Misc queries) | |||
Pivot table formats text data with 2 decimals | Excel Discussion (Misc queries) | |||
Removing leading decimals for text list | Excel Discussion (Misc queries) |