Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hello, I made a formula that looks like this, =SUMIF(L:L,"HCAIN",P:P)
however, I need it to sum only the positive numbers and ignore the negative numbers, I am missing something in it and I cant figure it out. thank you for your help! -- Louie |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try this (note: you can't use entire columns as range references in this
formula (unless you're using Excel 2007)) =SUMPRODUCT(--(L1:L100="HCAIN"),--(P1:P1000),P1:P100) Biff "Louie" wrote in message ... Hello, I made a formula that looks like this, =SUMIF(L:L,"HCAIN",P:P) however, I need it to sum only the positive numbers and ignore the negative numbers, I am missing something in it and I cant figure it out. thank you for your help! -- Louie |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Louie,
Try the following array formula: =SUM(IF((L1:OFFSET(L1,MATCH("*",L:L,-1)-1,)="HCAIN")*(P1:OFFSET(L1,MATCH("*",L:L,-1)-1,)0),P1:OFFSET(L1,MATCH("*",L:L,-1)-1,),)) which you input with 'Ctrl-Shift-Enter', instead of just 'Enter'. Cheers -- macropod [MVP - Microsoft Word] ------------------------- "Louie" wrote in message ... Hello, I made a formula that looks like this, =SUMIF(L:L,"HCAIN",P:P) however, I need it to sum only the positive numbers and ignore the negative numbers, I am missing something in it and I cant figure it out. thank you for your help! -- Louie |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
thanks for your quick response, that worked perfect!
-- Louie "T. Valko" wrote: Try this (note: you can't use entire columns as range references in this formula (unless you're using Excel 2007)) =SUMPRODUCT(--(L1:L100="HCAIN"),--(P1:P1000),P1:P100) Biff "Louie" wrote in message ... Hello, I made a formula that looks like this, =SUMIF(L:L,"HCAIN",P:P) however, I need it to sum only the positive numbers and ignore the negative numbers, I am missing something in it and I cant figure it out. thank you for your help! -- Louie |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You're welcome. Thanks for the feedback!
Biff "Louie" wrote in message ... thanks for your quick response, that worked perfect! -- Louie "T. Valko" wrote: Try this (note: you can't use entire columns as range references in this formula (unless you're using Excel 2007)) =SUMPRODUCT(--(L1:L100="HCAIN"),--(P1:P1000),P1:P100) Biff "Louie" wrote in message ... Hello, I made a formula that looks like this, =SUMIF(L:L,"HCAIN",P:P) however, I need it to sum only the positive numbers and ignore the negative numbers, I am missing something in it and I cant figure it out. thank you for your help! -- Louie |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
XL2007
=SUMIFS(P:P,L:L,"HCAIN",P:P,"0") "Louie" wrote: Hello, I made a formula that looks like this, =SUMIF(L:L,"HCAIN",P:P) however, I need it to sum only the positive numbers and ignore the negative numbers, I am missing something in it and I cant figure it out. thank you for your help! -- Louie |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
odd sumif formula | Excel Discussion (Misc queries) | |||
Sumif Formula | Excel Worksheet Functions | |||
Formula using SUMIF & IF | Excel Worksheet Functions | |||
Is there a MAXIF formula similar to the SUMIF formula? | Excel Discussion (Misc queries) | |||
formula (perhaps sumif?) | Excel Discussion (Misc queries) |