Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I am trying do do a sumif using 2 conditions
For example: I want to add the values in column d if the value in column a is either C or X. -- DMM |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
One way:
=SUM(SUMIF(A1:A10,{"C","X"},D1:D10)) -- Biff Microsoft Excel MVP "soconfused" wrote in message ... I am trying do do a sumif using 2 conditions For example: I want to add the values in column d if the value in column a is either C or X. -- DMM |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
This didn't work, it gave me 0 for the answer.
-- DMM "T. Valko" wrote: One way: =SUM(SUMIF(A1:A10,{"C","X"},D1:D10)) -- Biff Microsoft Excel MVP "soconfused" wrote in message ... I am trying do do a sumif using 2 conditions For example: I want to add the values in column d if the value in column a is either C or X. -- DMM |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Are the numbers in column D actually numbers?
In E1 enter =ISNUMBER(D1) and copy down. TRUE or FALSE returned? If FALSE, format all to General. Copy an empty cell and Paste SpecialAddOKEsc. Gord Dibben MS Excel MVP On Tue, 4 Mar 2008 05:20:00 -0800, soconfused wrote: This didn't work, it gave me 0 for the answer. |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
It should work. See this screencap:
http://img118.imageshack.us/img118/9061/sumsumifkx2.jpg If you're getting a result of 0 then there's a problem with your data. The numbers may be numbers formatted as TEXT or there may be unseen charactes in column A like leading/trailing spaces. Try this first: Select an empty cell that hasn't been formatted or used in any way. Copy that empty cell: EditCopy Select the range of numbers in column D. Then, EditPaste SpecialAddOK Does the formula now work? -- Biff Microsoft Excel MVP "soconfused" wrote in message ... This didn't work, it gave me 0 for the answer. -- DMM "T. Valko" wrote: One way: =SUM(SUMIF(A1:A10,{"C","X"},D1:D10)) -- Biff Microsoft Excel MVP "soconfused" wrote in message ... I am trying do do a sumif using 2 conditions For example: I want to add the values in column d if the value in column a is either C or X. -- DMM |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thank you so much, it was the leading/trailing spaces.
-- DMM "T. Valko" wrote: It should work. See this screencap: http://img118.imageshack.us/img118/9061/sumsumifkx2.jpg If you're getting a result of 0 then there's a problem with your data. The numbers may be numbers formatted as TEXT or there may be unseen charactes in column A like leading/trailing spaces. Try this first: Select an empty cell that hasn't been formatted or used in any way. Copy that empty cell: EditCopy Select the range of numbers in column D. Then, EditPaste SpecialAddOK Does the formula now work? -- Biff Microsoft Excel MVP "soconfused" wrote in message ... This didn't work, it gave me 0 for the answer. -- DMM "T. Valko" wrote: One way: =SUM(SUMIF(A1:A10,{"C","X"},D1:D10)) -- Biff Microsoft Excel MVP "soconfused" wrote in message ... I am trying do do a sumif using 2 conditions For example: I want to add the values in column d if the value in column a is either C or X. -- DMM |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Glad you got it straightened out. Thanks for the feedback!
-- Biff Microsoft Excel MVP "soconfused" wrote in message ... Thank you so much, it was the leading/trailing spaces. -- DMM "T. Valko" wrote: It should work. See this screencap: http://img118.imageshack.us/img118/9061/sumsumifkx2.jpg If you're getting a result of 0 then there's a problem with your data. The numbers may be numbers formatted as TEXT or there may be unseen charactes in column A like leading/trailing spaces. Try this first: Select an empty cell that hasn't been formatted or used in any way. Copy that empty cell: EditCopy Select the range of numbers in column D. Then, EditPaste SpecialAddOK Does the formula now work? -- Biff Microsoft Excel MVP "soconfused" wrote in message ... This didn't work, it gave me 0 for the answer. -- DMM "T. Valko" wrote: One way: =SUM(SUMIF(A1:A10,{"C","X"},D1:D10)) -- Biff Microsoft Excel MVP "soconfused" wrote in message ... I am trying do do a sumif using 2 conditions For example: I want to add the values in column d if the value in column a is either C or X. -- DMM |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sumif with n conditions | Excel Worksheet Functions | |||
Using Sumif with 2 conditions | Excel Worksheet Functions | |||
sumif with 2 conditions ?? can this be done?? | Excel Worksheet Functions | |||
sumif with 3 conditions | Excel Worksheet Functions | |||
SUMIF with two conditions | Excel Discussion (Misc queries) |