Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 246
Default SUMIF ?! .... not quite enough....

I have a data sheet like this:

01-Jan-07 02-Jan-07 03-Jan-07 04-Jan-07 05-Jan-07 06-Jan-07
1 1 2 1
2 8 2 2 2 8
3 3 3 3
4 4 8 6 4 4
5 5 5 3 5 6

(01-Jan-07 is in cell A1)

In another sheet I've got a cell with a date in it e.g 04-Jan-07.
How do I set up a formula that will return the sum of the numbers
below the date specified e.g if it is 04-Jan-07 then it should return
16.
please note: Is it possible to set this up without adding a row that
contains the sum of each column (as I know how to use that method)

I've played around with SUMIF without much success

Any help greatly appreciated.

Regards
Jason.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default SUMIF ?! .... not quite enough....

try:

=SUMPRODUCT(--(Sheet2!A1:F1=A1)*(Sheet2!A2:F6))

A1 contains your date
B1 the above formula
Sheet2 your table

HTH

"WhytheQ" wrote:

I have a data sheet like this:

01-Jan-07 02-Jan-07 03-Jan-07 04-Jan-07 05-Jan-07 06-Jan-07
1 1 2 1
2 8 2 2 2 8
3 3 3 3
4 4 8 6 4 4
5 5 5 3 5 6

(01-Jan-07 is in cell A1)

In another sheet I've got a cell with a date in it e.g 04-Jan-07.
How do I set up a formula that will return the sum of the numbers
below the date specified e.g if it is 04-Jan-07 then it should return
16.
please note: Is it possible to set this up without adding a row that
contains the sum of each column (as I know how to use that method)

I've played around with SUMIF without much success

Any help greatly appreciated.

Regards
Jason.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default SUMIF ?! .... not quite enough....

or simply ..
=SUMPRODUCT((Sheet2!A1:F1=A1)*(Sheet2!A2:F6))


"Toppers" wrote:

try:

=SUMPRODUCT(--(Sheet2!A1:F1=A1)*(Sheet2!A2:F6))

A1 contains your date
B1 the above formula
Sheet2 your table

HTH

"WhytheQ" wrote:

I have a data sheet like this:

01-Jan-07 02-Jan-07 03-Jan-07 04-Jan-07 05-Jan-07 06-Jan-07
1 1 2 1
2 8 2 2 2 8
3 3 3 3
4 4 8 6 4 4
5 5 5 3 5 6

(01-Jan-07 is in cell A1)

In another sheet I've got a cell with a date in it e.g 04-Jan-07.
How do I set up a formula that will return the sum of the numbers
below the date specified e.g if it is 04-Jan-07 then it should return
16.
please note: Is it possible to set this up without adding a row that
contains the sum of each column (as I know how to use that method)

I've played around with SUMIF without much success

Any help greatly appreciated.

Regards
Jason.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default SUMIF ?! .... not quite enough....

=SUM(INDEX(Sheet1!A2:F6,0,MATCH(Sheet1!A9,Sheet1!A 1:F1,0)))


"WhytheQ" wrote:

I have a data sheet like this:

01-Jan-07 02-Jan-07 03-Jan-07 04-Jan-07 05-Jan-07 06-Jan-07
1 1 2 1
2 8 2 2 2 8
3 3 3 3
4 4 8 6 4 4
5 5 5 3 5 6

(01-Jan-07 is in cell A1)

In another sheet I've got a cell with a date in it e.g 04-Jan-07.
How do I set up a formula that will return the sum of the numbers
below the date specified e.g if it is 04-Jan-07 then it should return
16.
please note: Is it possible to set this up without adding a row that
contains the sum of each column (as I know how to use that method)

I've played around with SUMIF without much success

Any help greatly appreciated.

Regards
Jason.


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 246
Default SUMIF ?! .... not quite enough....

Thanks very much!!


On 4 Jul, 14:38, Teethless mama
wrote:
=SUM(INDEX(Sheet1!A2:F6,0,MATCH(Sheet1!A9,Sheet1!A 1:F1,0)))



"WhytheQ" wrote:
I have a data sheet like this:


01-Jan-07 02-Jan-07 03-Jan-07 04-Jan-07 05-Jan-07 06-Jan-07
1 1 2 1
2 8 2 2 2 8
3 3 3 3
4 4 8 6 4 4
5 5 5 3 5 6


(01-Jan-07 is in cell A1)


In another sheet I've got a cell with a date in it e.g 04-Jan-07.
How do I set up a formula that will return the sum of the numbers
below the date specified e.g if it is 04-Jan-07 then it should return
16.
please note: Is it possible to set this up without adding a row that
contains the sum of each column (as I know how to use that method)


I've played around with SUMIF without much success


Any help greatly appreciated.


Regards
Jason.- Hide quoted text -


- Show quoted text -



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
sumif for multi conditions. i.e sumif(A1:A10,"Jon" and B1:B10,"A" Harry Seymour Excel Worksheet Functions 9 June 12th 07 10:47 PM
SUMIF gottahavit Excel Worksheet Functions 5 October 22nd 06 05:23 PM
Embedding a Sumif in a sumif C.Pflugrath Excel Worksheet Functions 5 August 31st 05 07:31 PM
nested sumif or sumif with two criteria dshigley Excel Worksheet Functions 5 April 5th 05 03:34 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 04:56 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"