Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have a sheet A B John 100 Alex 150 John 175 Steve 125 i want to get the sum of the entries for John, say here i have to get the result as 100+175 = 275. Is there any function for me to do it? I tried LookUp but its returning only the first value. Thanks in advance John, |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
You can use =SUMIF(A2:A5,"John",B2:B5) "John" wrote: Hi, I have a sheet A B John 100 Alex 150 John 175 Steve 125 i want to get the sum of the entries for John, say here i have to get the result as 100+175 = 275. Is there any function for me to do it? I tried LookUp but its returning only the first value. Thanks in advance John, |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can also use an array formula:
{sum((A2:A5="john")*B2:B5)} or if you have more than one criteria, you want john and steves totals: {sum((A2:A5="john")+(A2:A5="steve")*B2:B5)} remember to hold ctr+shift when you hit the enter key for array formulas. "Sam Wilson" wrote: Hi, You can use =SUMIF(A2:A5,"John",B2:B5) "John" wrote: Hi, I have a sheet A B John 100 Alex 150 John 175 Steve 125 i want to get the sum of the entries for John, say here i have to get the result as 100+175 = 275. Is there any function for me to do it? I tried LookUp but its returning only the first value. Thanks in advance John, |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Lookup returning #n/a | Excel Discussion (Misc queries) | |||
Lookup is not returning the right value. | Excel Worksheet Functions | |||
Lookup returning one more than expected | Excel Worksheet Functions | |||
Returning all values from a lookup - not just the first/last one | Excel Worksheet Functions | |||
Returning varying rows of data through lookup function | Excel Programming |