Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I want to be able to look up all occurances in column A for 1000 and add the
corresponding results in column B. So that column E will show the results for product "1000". A B D E 1 1000 5 1000 = 7 2 3000 6 2000 = 0 3 1000 2 3000 = 6 Do I use VLOOKUP? How do I get it to add the results from column B? |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try sumif rather than vlookup... =sumif($a$1:$a$3,d1,$b$1:$b$3).
"Keith" wrote: I want to be able to look up all occurances in column A for 1000 and add the corresponding results in column B. So that column E will show the results for product "1000". A B D E 1 1000 5 1000 = 7 2 3000 6 2000 = 0 3 1000 2 3000 = 6 Do I use VLOOKUP? How do I get it to add the results from column B? |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Keith wrote:
I want to be able to look up all occurances in column A for 1000 and add the corresponding results in column B. So that column E will show the results for product "1000". A B D E 1 1000 5 1000 = 7 2 3000 6 2000 = 0 3 1000 2 3000 = 6 Do I use VLOOKUP? How do I get it to add the results from column B? VLOOKUP will only return a single value in column B. You want the sum of all values in column B based on your criteria. This will do what you ask, but I'm not sure if what's you want. Put this in E1 and fill down. =SUMIF($A:$A,$A1,$B:$B) |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks "bpeltzer" & "smartin". A buddy of mine told me the exact same thing.
=) I have no idea what I was thinking. I knew about sumif but I was, for whatever reason, thinking that sumif was restricted to only one column. So THANKS AGAIN! "Keith" wrote: I want to be able to look up all occurances in column A for 1000 and add the corresponding results in column B. So that column E will show the results for product "1000". A B D E 1 1000 5 1000 = 7 2 3000 6 2000 = 0 3 1000 2 3000 = 6 Do I use VLOOKUP? How do I get it to add the results from column B? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VLOOKUP Pulls Incorrectly | Excel Discussion (Misc queries) | |||
Sum results of VLOOKUP | Excel Worksheet Functions | |||
vlookup results in 0 | Excel Discussion (Misc queries) | |||
to sum up all value results from VLOOKUP | Excel Worksheet Functions | |||
how do you add vlookup results? | Excel Worksheet Functions |