Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi, I am trying to do a sumif where the criteria is less than a certain number
EG row/col A B C 1 Month Value 3 2 1 50 3 2 75 4 3 100 5 4 200 6 5 300 If I enter the formula =sumif(A1:A6,"<3",B1:B6) then it works fine with the answer being 125. If I enter the formula =sumif(A1:A6,c1,B1:B6) then it works fine with the answer being 100. However I need the formula to refer to any months lower than the number in cell C1 and if I enter the formula =sumif(A1:A6,"<c1",B1:B6) the cell returns an answer of 0. Does anyone know what I am doing wrong please? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try this
=SUMPRODUCT((A2:A6<C1)*(B2:B6)) Thanks "Michael" wrote in message ... Hi, I am trying to do a sumif where the criteria is less than a certain number EG row/col A B C 1 Month Value 3 2 1 50 3 2 75 4 3 100 5 4 200 6 5 300 If I enter the formula =sumif(A1:A6,"<3",B1:B6) then it works fine with the answer being 125. If I enter the formula =sumif(A1:A6,c1,B1:B6) then it works fine with the answer being 100. However I need the formula to refer to any months lower than the number in cell C1 and if I enter the formula =sumif(A1:A6,"<c1",B1:B6) the cell returns an answer of 0. Does anyone know what I am doing wrong please? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Use this syntax:
=sumif(A1:A6,"<"&c1,B1:B6) Regards, Fred. "Michael" wrote in message ... Hi, I am trying to do a sumif where the criteria is less than a certain number EG row/col A B C 1 Month Value 3 2 1 50 3 2 75 4 3 100 5 4 200 6 5 300 If I enter the formula =sumif(A1:A6,"<3",B1:B6) then it works fine with the answer being 125. If I enter the formula =sumif(A1:A6,c1,B1:B6) then it works fine with the answer being 100. However I need the formula to refer to any months lower than the number in cell C1 and if I enter the formula =sumif(A1:A6,"<c1",B1:B6) the cell returns an answer of 0. Does anyone know what I am doing wrong please? |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thank you very much
"Fred Smith" wrote: Use this syntax: =sumif(A1:A6,"<"&c1,B1:B6) Regards, Fred. "Michael" wrote in message ... Hi, I am trying to do a sumif where the criteria is less than a certain number EG row/col A B C 1 Month Value 3 2 1 50 3 2 75 4 3 100 5 4 200 6 5 300 If I enter the formula =sumif(A1:A6,"<3",B1:B6) then it works fine with the answer being 125. If I enter the formula =sumif(A1:A6,c1,B1:B6) then it works fine with the answer being 100. However I need the formula to refer to any months lower than the number in cell C1 and if I enter the formula =sumif(A1:A6,"<c1",B1:B6) the cell returns an answer of 0. Does anyone know what I am doing wrong please? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
sumif for multi conditions. i.e sumif(A1:A10,"Jon" and B1:B10,"A" | Excel Worksheet Functions | |||
SumIf | Excel Worksheet Functions | |||
Embedding a Sumif in a sumif | 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 |