Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Vlookup, HLOOKUP, To find Multiple items and then sum all in colum

I am working in sheet 3 and want to look up all items that match column b on
sheet 1 and then sum up column c on sheet a and return that value in sheet 3
Here is a sample
Sheet 3

A B C
400 (look up all 400s(B) on sheet 1 and return the sum of all the
values in col C)
1000
1200
--
Kind Regards,
Bobby
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 222
Default Vlookup, HLOOKUP, To find Multiple items and then sum all in colum

This appears to be a SUMIF:

=SUMIF(Sheet1!$A$1:$A$1000,Sheet3!A2,Sheet1!$C$1:$ C$1000)

Something like that. That assumes the "400" you wanted was in cell A2.
--
"Actually, I *am* a rocket scientist." -- JB

Your feedback is appreciated, click YES if this post helped you.


"Bobberjoe" wrote:

I am working in sheet 3 and want to look up all items that match column b on
sheet 1 and then sum up column c on sheet a and return that value in sheet 3
Here is a sample
Sheet 3

A B C
400 (look up all 400s(B) on sheet 1 and return the sum of all the
values in col C)
1000
1200
--
Kind Regards,
Bobby

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Vlookup, HLOOKUP, To find Multiple items and then sum all in c

It worked, great. THANKS!
I also got the same result using,
'=SUMPRODUCT(('Sheet1!$E$3:$E$243=400)*('SHEET1'!F 6:F246='SHEET1'!F6:F246)*('SHEET1'!F6:F246))

But your formula I understand how it worked. Thanks, again.
--
Kind Regards,
Bobby


"JBeaucaire" wrote:

This appears to be a SUMIF:

=SUMIF(Sheet1!$A$1:$A$1000,Sheet3!A2,Sheet1!$C$1:$ C$1000)

Something like that. That assumes the "400" you wanted was in cell A2.
--
"Actually, I *am* a rocket scientist." -- JB

Your feedback is appreciated, click YES if this post helped you.


"Bobberjoe" wrote:

I am working in sheet 3 and want to look up all items that match column b on
sheet 1 and then sum up column c on sheet a and return that value in sheet 3
Here is a sample
Sheet 3

A B C
400 (look up all 400s(B) on sheet 1 and return the sum of all the
values in col C)
1000
1200
--
Kind Regards,
Bobby

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Vlookup, HLOOKUP, To find Multiple items and then sum all in c

Not sure why you need this term in the middle:

('SHEET1'!F6:F246='SHEET1'!F6:F246)

You could try it this way:

=SUMPRODUCT(--('Sheet1!$E$3:$E$243=400),*('SHEET1'!F6:F246))

but generally SUMIF will be faster than SUMPRODUCT if you only have
one criteria.

Your second array is 3 cells down from your first array.

Hope this helps.

Pete

On Jan 15, 11:31*pm, Bobberjoe wrote:
It worked, great. *THANKS!
I also got the same result using,
'=SUMPRODUCT(('Sheet1!$E$3:$E$243=400)*('SHEET1'!F 6:F246='SHEET1'!F6:F246)**('SHEET1'!F6:F246))

But your formula I understand how it worked. *Thanks, again.
--
Kind Regards,
Bobby



"JBeaucaire" wrote:
This appears to be a SUMIF:


=SUMIF(Sheet1!$A$1:$A$1000,Sheet3!A2,Sheet1!$C$1:$ C$1000)


Something like that. That assumes the "400" you wanted was in cell A2.
--
"Actually, I *am* a rocket scientist." -- JB


Your feedback is appreciated, click YES if this post helped you.


"Bobberjoe" wrote:


*I am working in sheet 3 and want to look up all items that match column b on
sheet 1 and then sum up column c on sheet a and return that value in sheet 3
Here is a sample
Sheet 3


A * * *B * * * C
* * * *400 * *(look up all 400s(B) on sheet 1 and return the sum of all the
values in * * * * * * *col C)
* * * *1000
* * * *1200
--
Kind Regards,
Bobby- Hide quoted text -


- Show quoted text -


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 222
Default Vlookup, HLOOKUP, To find Multiple items and then sum all in c

Anytime you can use SUMIF instead of SUMPRODUCT, do it, much less strain on
the sheet performance. Good luck.
--
"Actually, I *am* a rocket scientist." -- JB

Your feedback is appreciated, click YES if this post helped you.


"Bobberjoe" wrote:

It worked, great. THANKS!
I also got the same result using,
'=SUMPRODUCT(('Sheet1!$E$3:$E$243=400)*('SHEET1'!F 6:F246='SHEET1'!F6:F246)*('SHEET1'!F6:F246))

But your formula I understand how it worked. Thanks, again.
--
Kind Regards,
Bobby



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
How can I find multiple items? JahFe Excel Discussion (Misc queries) 1 February 9th 06 04:59 PM
Look up data in colum a and find match in colum b Chris(new user) Excel Discussion (Misc queries) 1 March 22nd 05 01:41 PM
Check data on colum A and find match on colum b Chris(new user) Excel Discussion (Misc queries) 3 March 20th 05 04:45 PM
Look up data in colum a and find match in colum b Chris(new user) Excel Discussion (Misc queries) 1 March 19th 05 09:27 PM
How do I find a value in an array (VLOOKUP? HLOOKUP?) M Skabialka New Users to Excel 2 March 11th 05 02:52 AM


All times are GMT +1. The time now is 07:13 PM.

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"