Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
vidhya
 
Posts: n/a
Default how to extract data based on date

hi
i have an excel file to store all the offer details of my work in a
financial year.
ón sheet1 i have all the deatils oh the sales report and on sheet two i make
the revenue calculations for each month separately.
for eg if col A of sheet1 has the dates of the transactions and col C has
the individual prices.
then for each month in sheet2 how do i sum upthe total price depending upon
the dates only in that particular month
that is if month september starts at A45 and ends at A256 in sheet1. it
should check rows in A for date n then accordingly sum the range of values
in col C.
here it shud do it from C45 -- C256
and i want the´sum in any one of the cells in sheet two
thankin in advance


  #2   Report Post  
Roger Govier
 
Posts: n/a
Default how to extract data based on date

Hi

It sounds as though your data would be ideal to use for a Pivot Table.
This will permit you to show your totals by month very easily.
For help on how to set up Pivot Tables, take a look at
http://peltiertech.com/Excel/Pivots/pivotstart.htm
and
http://www.contextures.com/tiptech.html

If you want to do it by formulas, then one way would be to put Month numbers
1 to 12 in cells A1:A12 of sheet2 then in cell B1 of Sheet2 enter
=SUMPRODUCT(--(MONTH(Sheet1!$A$1:$A$1000)=A1),Sheet1!$C$1:C$C100 0)

copy the formula down through cells B2:B12

Change ranges to suit, but do ensure both ranges are of equal size.


Regards

Roger Govier


vidhya wrote:
hi
i have an excel file to store all the offer details of my work in a
financial year.
ón sheet1 i have all the deatils oh the sales report and on sheet two i make
the revenue calculations for each month separately.
for eg if col A of sheet1 has the dates of the transactions and col C has
the individual prices.
then for each month in sheet2 how do i sum upthe total price depending upon
the dates only in that particular month
that is if month september starts at A45 and ends at A256 in sheet1. it
should check rows in A for date n then accordingly sum the range of values
in col C.
here it shud do it from C45 -- C256
and i want the´sum in any one of the cells in sheet two
thankin in advance


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
pasting data from a website changes text to date stebro Excel Discussion (Misc queries) 8 August 12th 06 08:39 PM
Conditional Formating Based on Date Roy Excel Discussion (Misc queries) 5 June 7th 06 04:49 PM
Subtract a group of cells from a total based on ending date Nicholas Scarpinato Excel Discussion (Misc queries) 0 May 17th 05 03:25 PM
Extract specific data into its own workbook via macro? Adrian B Excel Discussion (Misc queries) 2 February 24th 05 06:09 AM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM


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