#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Frank Menard
 
Posts: n/a
Default Sum & VLookup

How do I accomplish this. I have 2 sheets in one workbook. The first sheet
is:

BP# Total$ Misc
1 0
2 0
3 0

The second sheet is

BP# Phase Qunatity Unit Rate Subtotal
3 Demo 3 2 6
6 Drywall 2 2 4
3 Safety 5 1 5


i would like the TOTAL$ cell in the first sheet to be the SUM of all
subtotals in the second sheet where the BP# of the second sheet matches the
BP# of the row of that same TOTAL$ row in the first sheet.

So in this short example then the TOTAL$ for BP#3 in the first sheet would
equal $11.

Any help would be greatly appreciated. I am stuck.
Frank M.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bpeltzer
 
Posts: n/a
Default Sum & VLookup

Use sumif instead of vlookup. In cell b2, rather than
=vlookup(a2,Sheet2!A:E,5,false), it's =sumif(Sheet2!A:A,a2,Sheet2!E:E)

"Frank Menard" wrote:

How do I accomplish this. I have 2 sheets in one workbook. The first sheet
is:

BP# Total$ Misc
1 0
2 0
3 0

The second sheet is

BP# Phase Qunatity Unit Rate Subtotal
3 Demo 3 2 6
6 Drywall 2 2 4
3 Safety 5 1 5


i would like the TOTAL$ cell in the first sheet to be the SUM of all
subtotals in the second sheet where the BP# of the second sheet matches the
BP# of the row of that same TOTAL$ row in the first sheet.

So in this short example then the TOTAL$ for BP#3 in the first sheet would
equal $11.

Any help would be greatly appreciated. I am stuck.
Frank M.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Frank Menard
 
Posts: n/a
Default Sum & VLookup

Thank you it worked perfectly:)
--
Frank M.


"bpeltzer" wrote:

Use sumif instead of vlookup. In cell b2, rather than
=vlookup(a2,Sheet2!A:E,5,false), it's =sumif(Sheet2!A:A,a2,Sheet2!E:E)

"Frank Menard" wrote:

How do I accomplish this. I have 2 sheets in one workbook. The first sheet
is:

BP# Total$ Misc
1 0
2 0
3 0

The second sheet is

BP# Phase Qunatity Unit Rate Subtotal
3 Demo 3 2 6
6 Drywall 2 2 4
3 Safety 5 1 5


i would like the TOTAL$ cell in the first sheet to be the SUM of all
subtotals in the second sheet where the BP# of the second sheet matches the
BP# of the row of that same TOTAL$ row in the first sheet.

So in this short example then the TOTAL$ for BP#3 in the first sheet would
equal $11.

Any help would be greatly appreciated. I am stuck.
Frank M.

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 Problem Ian Excel Discussion (Misc queries) 3 April 6th 06 06:47 PM
VLOOKUP Limitations chris_manning Excel Worksheet Functions 2 August 9th 05 06:23 PM
Have Vlookup return a Value of 0 instead of #N/A Mr Mike Excel Worksheet Functions 4 May 25th 05 04:51 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 01:27 PM.

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

About Us

"It's about Microsoft Excel"