Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default Referencing cells according to date

I have 12 cells, one for each month of the year. I need each of the
cells to reference the dates on other worksheets in order to summarize
my data. For instance, my profit summary should show the profit for
January in cell J8 of one worksheet, but only if the PO date on
another worksheet is in January. February should show the profit only
if the PO is in Feb, and so on. Probably a very easy task, but I
can't seem to find it in excel help. Can anybody help on this one?
Thank you in advance.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Referencing cells according to date

Veronica,

With 12 dates in A1 to A12 each of which are the months you want i.e
1/1/2008
1/2/2008
..
..
..
1/12/2008

Put this in b1 and drag down to b12
=SUMPRODUCT(--(MONTH(Sheet2!A1:A30)=MONTH(A1)),--(Sheet2!B1:B30))
The will look on Sheet 2 a1 to a30 for the month in column A and sum
corresponding cells in Column B. Extend the ranges as you require but they
must be the same length.

Mike
"Veronica Johnson" wrote:

I have 12 cells, one for each month of the year. I need each of the
cells to reference the dates on other worksheets in order to summarize
my data. For instance, my profit summary should show the profit for
January in cell J8 of one worksheet, but only if the PO date on
another worksheet is in January. February should show the profit only
if the PO is in Feb, and so on. Probably a very easy task, but I
can't seem to find it in excel help. Can anybody help on this one?
Thank you in advance.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default Referencing cells according to date

On Jan 26, 4:44*am, Mike H wrote:
Veronica,

With 12 dates in A1 to A12 each of which are the months you want i.e
1/1/2008
1/2/2008
.
.
.
1/12/2008

Put this in b1 and drag down to b12
=SUMPRODUCT(--(MONTH(Sheet2!A1:A30)=MONTH(A1)),--(Sheet2!B1:B30))
The will look on Sheet 2 a1 to a30 for the month in column A and sum
corresponding cells in Column B. Extend the ranges as you require but they
must be the same length.

Mike



"Veronica Johnson" wrote:
I have 12 cells, one for each month of the year. *I need each of the
cells to reference the dates on other worksheets in order to summarize
my data. *For instance, my profit summary should show the profit for
January in cell J8 of one worksheet, but only if the PO date on
another worksheet is in January. *February should show the profit only
if the PO is in Feb, and so on. *Probably a very easy task, but I
can't seem to find it in excel help. * Can anybody help on this one?
Thank you in advance.- Hide quoted text -


- Show quoted text -


Mike,
Thank you for your response, but I don't have the authority to change
the format of any of the sheets except the one I'm creating. I have
to use the date formats which are already in place, which is ex: 26-
Jan-2008. This date is in (Order!E3). I have 12 cells in (Summary!
J....8, 10, 12, 14... so on down to J30, for each month of the year).
So, because Summary!J8, is the January Profit, I need to be able to
reference the cell (Order!E3) to see if the order date was in
January. If so, I need Summary!J8, to reflect the Profit for that
order which is in (Order!I40). Is there some way to have a formula
where, if the date in (Order!E3) contains the text "Jan", then the
amount in (Order!I40) automatically shows in (Summary!J8). If the
date in (Order!E3) contains the text "Feb", then the amount in (Order!
I40) automatically shows in (Summary!J10). "Mar" shows the amount in
(Order!I40), in (Summary!J12) and so on..... I hope I'm explaining
this thoroughly enough. I know how much information can get lost in
these forums. Is this easy/possible?
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Referencing cells according to date

correction

=SUMPRODUCT(--(MONTH(Sheet2!$A$1:$A$30)=MONTH(A1)),--(Sheet2!$B$1:$B$30))

"Veronica Johnson" wrote:

I have 12 cells, one for each month of the year. I need each of the
cells to reference the dates on other worksheets in order to summarize
my data. For instance, my profit summary should show the profit for
January in cell J8 of one worksheet, but only if the PO date on
another worksheet is in January. February should show the profit only
if the PO is in Feb, and so on. Probably a very easy task, but I
can't seem to find it in excel help. Can anybody help on this one?
Thank you in advance.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,180
Default Referencing cells according to date

Try Pivot Table.
No formulas needed.
Comes with chart.
Excel 2003
http://www.freefilehosting.net/download/3b3ff


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
Referencing Cells PAL Excel Worksheet Functions 1 January 23rd 08 08:40 AM
Retaining date formatting in referencing cell Corey Foote Excel Discussion (Misc queries) 2 August 22nd 07 03:34 PM
referencing todays date. chesty Excel Worksheet Functions 1 July 11th 06 11:59 AM
Date referencing Barry Clark Excel Worksheet Functions 10 June 26th 06 04:42 PM
Pulling date from 1 ws to another while referencing 2 fields Hakojin Excel Discussion (Misc queries) 4 May 19th 06 10:20 PM


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