Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 76
Default SUMIF with VLOOKUP nested

Hello:

I have an xls that has the following columns:

Territory ID
Modality
Quarter
Amount

I need to create a formula that would give me a sum for the amount for each
modality for a specific territory on quarterly basis.

Example:
Terr ID Modality Amount Qtr
399 RAD -9.0 09-Q1
399 CT -9.0 09-Q1
399 Nuclear 14.4 09-Q1
399 AW 32.0 09-Q2
399 Other 7.0 09-Q2
399 CT 649.1 09-Q3
399 Other -0.8 09-Q3
399 AW 0.0 09-Q4
399 CT 0.0 09-Q4
399 Other 7.0 09-Q1
400 MR 422.8 09-Q1
400 MR 1325.4 09-Q1
400 MR 422.8 09-Q1
400 MR -422.8 09-Q2
400 MR 368.5 09-Q2
400 MR 897.5 09-Q3
400 MR 1459.0 09-Q3
400 MR -422.8 09-Q4
400 MR 379.5 09-Q4
400 CT 425.0 09-Q1
403 Nuclear 1.9 09-Q1
403 Nuclear 14.7 09-Q1
403 Nuclear 202.5 09-Q1
403 Nuclear 10.6 09-Q2
403 Other 1.7 09-Q2
403 Nuclear 1.9 09-Q3
403 Other -1.7 09-Q3
403 Nuclear 14.7 09-Q4
403 Nuclear 213.3 09-Q4


Need to return the sum into the following format:
09-Q1 09-Q2 09-Q3 09-Q4
CT
MR
Mammo
RAD
R&F
Nuc
PET
AW
Core Total

thank you.
Monika
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,180
Default SUMIF with VLOOKUP nested

Excel 2007 PivotTable, PivotChart
No formulas of any kind needed.
Translation to 2003 will nuke it.
http://www.mediafire.com/file/zyximo...04_08_09a.xlsx

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default SUMIF with VLOOKUP nested

Hi Monika,
Use SUMPRODUCT formula
=SUMPRODUCT(--($B$2:$B$30="CT"),--($D$2:$D$30="09-Q1"),($C$2:$C$30))

"murkaboris" wrote:

Hello:

I have an xls that has the following columns:

Territory ID
Modality
Quarter
Amount

I need to create a formula that would give me a sum for the amount for each
modality for a specific territory on quarterly basis.

Example:
Terr ID Modality Amount Qtr
399 RAD -9.0 09-Q1
399 CT -9.0 09-Q1
399 Nuclear 14.4 09-Q1
399 AW 32.0 09-Q2
399 Other 7.0 09-Q2
399 CT 649.1 09-Q3
399 Other -0.8 09-Q3
399 AW 0.0 09-Q4
399 CT 0.0 09-Q4
399 Other 7.0 09-Q1
400 MR 422.8 09-Q1
400 MR 1325.4 09-Q1
400 MR 422.8 09-Q1
400 MR -422.8 09-Q2
400 MR 368.5 09-Q2
400 MR 897.5 09-Q3
400 MR 1459.0 09-Q3
400 MR -422.8 09-Q4
400 MR 379.5 09-Q4
400 CT 425.0 09-Q1
403 Nuclear 1.9 09-Q1
403 Nuclear 14.7 09-Q1
403 Nuclear 202.5 09-Q1
403 Nuclear 10.6 09-Q2
403 Other 1.7 09-Q2
403 Nuclear 1.9 09-Q3
403 Other -1.7 09-Q3
403 Nuclear 14.7 09-Q4
403 Nuclear 213.3 09-Q4


Need to return the sum into the following format:
09-Q1 09-Q2 09-Q3 09-Q4
CT
MR
Mammo
RAD
R&F
Nuc
PET
AW
Core Total

thank you.
Monika

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 76
Default SUMIF with VLOOKUP nested

Hello Herbert:

Can't use pivot table due to the final format as the raw data comes from a
different workbook and needs to just plug in number under the qtr based on
the criteria. I don't have Excel 2007, still on 2003... need a formula that
would do it...

Thank you for your assistance.

Monika

"Herbert Seidenberg" wrote:

Excel 2007 PivotTable, PivotChart
No formulas of any kind needed.
Translation to 2003 will nuke it.
http://www.mediafire.com/file/zyximo...04_08_09a.xlsx


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 76
Default SUMIF with VLOOKUP nested

Hello Vishu:

Thank you for your help it seems to be working even if I had to add another
condition for the Territory ID up front.
Thanks again!

Monika

"vishu" wrote:

Hi Monika,
Use SUMPRODUCT formula
=SUMPRODUCT(--($B$2:$B$30="CT"),--($D$2:$D$30="09-Q1"),($C$2:$C$30))

"murkaboris" wrote:

Hello:

I have an xls that has the following columns:

Territory ID
Modality
Quarter
Amount

I need to create a formula that would give me a sum for the amount for each
modality for a specific territory on quarterly basis.

Example:
Terr ID Modality Amount Qtr
399 RAD -9.0 09-Q1
399 CT -9.0 09-Q1
399 Nuclear 14.4 09-Q1
399 AW 32.0 09-Q2
399 Other 7.0 09-Q2
399 CT 649.1 09-Q3
399 Other -0.8 09-Q3
399 AW 0.0 09-Q4
399 CT 0.0 09-Q4
399 Other 7.0 09-Q1
400 MR 422.8 09-Q1
400 MR 1325.4 09-Q1
400 MR 422.8 09-Q1
400 MR -422.8 09-Q2
400 MR 368.5 09-Q2
400 MR 897.5 09-Q3
400 MR 1459.0 09-Q3
400 MR -422.8 09-Q4
400 MR 379.5 09-Q4
400 CT 425.0 09-Q1
403 Nuclear 1.9 09-Q1
403 Nuclear 14.7 09-Q1
403 Nuclear 202.5 09-Q1
403 Nuclear 10.6 09-Q2
403 Other 1.7 09-Q2
403 Nuclear 1.9 09-Q3
403 Other -1.7 09-Q3
403 Nuclear 14.7 09-Q4
403 Nuclear 213.3 09-Q4


Need to return the sum into the following format:
09-Q1 09-Q2 09-Q3 09-Q4
CT
MR
Mammo
RAD
R&F
Nuc
PET
AW
Core Total

thank you.
Monika

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
nested sumif Gluefoot Excel Discussion (Misc queries) 5 October 6th 08 08:33 PM
SUMIF nested Formula Lugar Excel Discussion (Misc queries) 1 November 17th 06 06:59 PM
If and nested Sumif error Joco Excel Worksheet Functions 4 July 22nd 06 07:25 PM
Will a Nested IF/SUMIF function instead of VBA? Ronny Hamida Excel Worksheet Functions 5 January 3rd 06 10:31 PM
nested sumif or sumif with two criteria dshigley Excel Worksheet Functions 5 April 5th 05 03:34 AM


All times are GMT +1. The time now is 01:04 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"