#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ket
 
Posts: n/a
Default SUMIF??

Hello,

I have a workbook containing 3 sheets.
On sheet 1 in column A, I have reference numbers from 1 to 20. The
totals for these rows are in column I.
On sheet 2 in column A, I have reference numbers from 1 to 20. The
totals for these rows are on column L.
Sheet 3 is a summary sheet.
I need to do the following. Look for all occurances of ref 16 in sheet
1 and add up the corresponding figures in column I, then look for all
occurances of 16 in sheet 2 and add up the corresponding figures in
Column L to give me an overall sum total of all occurances of 16 in
both sheets.

I hope this is clear. Thanks in advance for any help.

Ket
London (UK)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JE McGimpsey
 
Posts: n/a
Default SUMIF??

One way:

=SUMIF(Sheet1!A:A,16,Sheet1!I:I) + SUMIF(Sheet2!A:A,16,Sheet2!L:L)

In article ,
Ket wrote:

Hello,

I have a workbook containing 3 sheets.
On sheet 1 in column A, I have reference numbers from 1 to 20. The
totals for these rows are in column I.
On sheet 2 in column A, I have reference numbers from 1 to 20. The
totals for these rows are on column L.
Sheet 3 is a summary sheet.
I need to do the following. Look for all occurances of ref 16 in sheet
1 and add up the corresponding figures in column I, then look for all
occurances of 16 in sheet 2 and add up the corresponding figures in
Column L to give me an overall sum total of all occurances of 16 in
both sheets.

I hope this is clear. Thanks in advance for any help.

Ket
London (UK)

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Domenic
 
Posts: n/a
Default SUMIF??

Here are a few options...

Option One:

=SUMIF(Sheet1!A1:A100,16,Sheet1!I1:I100)+SUMIF(She et2!A1:A100,16,Sheet2!L
1:L100)

Option Two:

=SUMPRODUCT(SUMIF(INDIRECT("Sheet"&{1,2}&"!A1:A100 "),16,OFFSET(INDIRECT("
Sheet"&{1,2}&"!I1:I100"),0,{0,3})))

or

=SUMPRODUCT(SUMIF(INDIRECT("'"&$B$1:$B$2&"'!A1:A10 0"),16,OFFSET(INDIRECT(
"'"&$B$1:$B$2&"'!I1:I100"),0,{0;3})))

....where B1:B2 contains the sheet names, such as Sheet1 and Sheet2.
Adjust the ranges accordingly.

Hope this helps!

In article ,
Ket wrote:

Hello,

I have a workbook containing 3 sheets.
On sheet 1 in column A, I have reference numbers from 1 to 20. The
totals for these rows are in column I.
On sheet 2 in column A, I have reference numbers from 1 to 20. The
totals for these rows are on column L.
Sheet 3 is a summary sheet.
I need to do the following. Look for all occurances of ref 16 in sheet
1 and add up the corresponding figures in column I, then look for all
occurances of 16 in sheet 2 and add up the corresponding figures in
Column L to give me an overall sum total of all occurances of 16 in
both sheets.

I hope this is clear. Thanks in advance for any help.

Ket
London (UK)

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ket
 
Posts: n/a
Default SUMIF??

Works great - thankyou!

On Tue, 24 Jan 2006 07:31:16 -0700, JE McGimpsey
wrote:

One way:

=SUMIF(Sheet1!A:A,16,Sheet1!I:I) + SUMIF(Sheet2!A:A,16,Sheet2!L:L)

In article ,
Ket wrote:

Hello,

I have a workbook containing 3 sheets.
On sheet 1 in column A, I have reference numbers from 1 to 20. The
totals for these rows are in column I.
On sheet 2 in column A, I have reference numbers from 1 to 20. The
totals for these rows are on column L.
Sheet 3 is a summary sheet.
I need to do the following. Look for all occurances of ref 16 in sheet
1 and add up the corresponding figures in column I, then look for all
occurances of 16 in sheet 2 and add up the corresponding figures in
Column L to give me an overall sum total of all occurances of 16 in
both sheets.

I hope this is clear. Thanks in advance for any help.

Ket
London (UK)


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ket
 
Posts: n/a
Default SUMIF??

Thanks for your reply Domenic

On Tue, 24 Jan 2006 09:44:05 -0500, Domenic
wrote:

Here are a few options...

Option One:

=SUMIF(Sheet1!A1:A100,16,Sheet1!I1:I100)+SUMIF(Sh eet2!A1:A100,16,Sheet2!L
1:L100)

Option Two:

=SUMPRODUCT(SUMIF(INDIRECT("Sheet"&{1,2}&"!A1:A10 0"),16,OFFSET(INDIRECT("
Sheet"&{1,2}&"!I1:I100"),0,{0,3})))

or

=SUMPRODUCT(SUMIF(INDIRECT("'"&$B$1:$B$2&"'!A1:A1 00"),16,OFFSET(INDIRECT(
"'"&$B$1:$B$2&"'!I1:I100"),0,{0;3})))

...where B1:B2 contains the sheet names, such as Sheet1 and Sheet2.
Adjust the ranges accordingly.

Hope this helps!

In article ,
Ket wrote:

Hello,

I have a workbook containing 3 sheets.
On sheet 1 in column A, I have reference numbers from 1 to 20. The
totals for these rows are in column I.
On sheet 2 in column A, I have reference numbers from 1 to 20. The
totals for these rows are on column L.
Sheet 3 is a summary sheet.
I need to do the following. Look for all occurances of ref 16 in sheet
1 and add up the corresponding figures in column I, then look for all
occurances of 16 in sheet 2 and add up the corresponding figures in
Column L to give me an overall sum total of all occurances of 16 in
both sheets.

I hope this is clear. Thanks in advance for any help.

Ket
London (UK)


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 to use SUMIF to return sums between two values located in cells ScottBerger Excel Worksheet Functions 2 April 23rd 23 09:05 PM
Embedding a Sumif in a sumif C.Pflugrath Excel Worksheet Functions 5 August 31st 05 07:31 PM
SUMIF with Mutiple Ranges & Criteria PokerZan Excel Discussion (Misc queries) 5 August 4th 05 10:31 PM
Dynamic sumif function Jimbola Excel Worksheet Functions 5 May 4th 05 01:10 AM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM


All times are GMT +1. The time now is 10:04 AM.

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"