Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I need to sum the data in column A that meets criteria in column B "=J".
I've settled on SUMIF, but it returns zero. Also, now I need to include the criteria "blank". Am I using the right function? If so, where have I gone wrong? A B 1 1.7 J 2 5.3 U 3 5.3 U 4 5.3 5 5.3 U =SUMIF(B1:B5,J,A1:A5) |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try
=SUMIF(B1:B5,"J",A1:A5) "Idunno Yet" wrote: I need to sum the data in column A that meets criteria in column B "=J". I've settled on SUMIF, but it returns zero. Also, now I need to include the criteria "blank". Am I using the right function? If so, where have I gone wrong? A B 1 1.7 J 2 5.3 U 3 5.3 U 4 5.3 5 5.3 U =SUMIF(B1:B5,J,A1:A5) |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=SUMIF(B1:B5,"J,"A1:A5)
J is text so needs be placed in double quotes as shown If you want to include blank (empty) to could use: =SUMIF(B1:B5,"J",A1:A5)+SUMIF(B1:B5,"",A1:A5) HTH "Idunno Yet" wrote: I need to sum the data in column A that meets criteria in column B "=J". I've settled on SUMIF, but it returns zero. Also, now I need to include the criteria "blank". Am I using the right function? If so, where have I gone wrong? A B 1 1.7 J 2 5.3 U 3 5.3 U 4 5.3 5 5.3 U =SUMIF(B1:B5,J,A1:A5) |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=SUMIF(B:B,"J",A:A)+SUMIF(B:B,"",A:A)
or B1:B5 and A1:A5 -- Greetings from New Zealand "Idunno Yet" wrote in message ... I need to sum the data in column A that meets criteria in column B "=J". I've settled on SUMIF, but it returns zero. Also, now I need to include the criteria "blank". Am I using the right function? If so, where have I gone wrong? A B 1 1.7 J 2 5.3 U 3 5.3 U 4 5.3 5 5.3 U =SUMIF(B1:B5,J,A1:A5) |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
To make your orijnial formula work enclose the *J* in quotes:
=SUMIF(B1:B7,"J",A1:A7) To add a test for blank cells use: =SUMPRODUCT(((B1:B7="J")+(B1:B7=""))*A1:A7) -- HTH Sandy In Perth, the ancient capital of Scotland and the crowning place of kings with @tiscali.co.uk "Idunno Yet" wrote in message ... I need to sum the data in column A that meets criteria in column B "=J". I've settled on SUMIF, but it returns zero. Also, now I need to include the criteria "blank". Am I using the right function? If so, where have I gone wrong? A B 1 1.7 J 2 5.3 U 3 5.3 U 4 5.3 5 5.3 U =SUMIF(B1:B5,J,A1:A5) |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Another way:
=SUM(SUMIF(B1:B5,{"J",""},A1:A5)) -- HTH, RD --------------------------------------------------------------------------- Please keep all correspondence within the NewsGroup, so all may benefit ! --------------------------------------------------------------------------- "Idunno Yet" wrote in message ... I need to sum the data in column A that meets criteria in column B "=J". I've settled on SUMIF, but it returns zero. Also, now I need to include the criteria "blank". Am I using the right function? If so, where have I gone wrong? A B 1 1.7 J 2 5.3 U 3 5.3 U 4 5.3 5 5.3 U =SUMIF(B1:B5,J,A1:A5) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Simple SUMIF formula gone wrong! | Excel Worksheet Functions | |||
sumif wrong result | Excel Worksheet Functions | |||
What am I doing wrong? | Excel Worksheet Functions | |||
nested sumif or sumif with two criteria | Excel Worksheet Functions | |||
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function | Excel Worksheet Functions |