Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 262
Default how do i use vlookup and add all the results in pulls?

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 171
Default how do i use vlookup and add all the results in pulls?

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 915
Default how do i use vlookup and add all the results in pulls?

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 262
Default how do i use vlookup and add all the results in pulls?

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLOOKUP Pulls Incorrectly Thomas [PBD] Excel Discussion (Misc queries) 4 May 12th 08 09:22 PM
Sum results of VLOOKUP Dewayne Excel Worksheet Functions 7 November 28th 07 04:53 PM
vlookup results in 0 sveazie Excel Discussion (Misc queries) 6 July 17th 07 09:20 AM
to sum up all value results from VLOOKUP Linn Excel Worksheet Functions 1 March 7th 07 02:45 AM
how do you add vlookup results? Anna Excel Worksheet Functions 3 March 26th 05 03:05 AM


All times are GMT +1. The time now is 02:15 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"