#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Report


I have a sheet "Sales" which records the transactions.Row 1 is the
header.The records starts from row 2 downward.

Col A2 store date in "dd/mm/yyyy".
Col B2 store invoice number.
Col C2 store group.
Col D2 store machine.
Col E2 store brand
Col F2 store quantity.
Col G2 store unitprice.

I like to generate a report based on month and year against
group,machine & brand.

Currently I am using the array formula in another sheet "Report" to
extract the datas.

e.g. in "Report" col B2 the below array formula :

Range 2:659 is for the month of January,2004

=SUM(IF(Sales!$C$2:$C$659="Filter",IF(Sales!$D$2:$ D$659="Cat",IF(Sales!$E$2:$E$659="OEM"1,0))))

Currently there are altogether 10 types of machine and 20 types of
group but the brand is unfix.

Can someone help to do this in vba? I hope I have explain clearly.

Regards
Michael.


--
Michael168
------------------------------------------------------------------------
Michael168's Profile: http://www.excelforum.com/member.php...nfo&userid=605
View this thread: http://www.excelforum.com/showthread...hreadid=273579

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Report

It is already done for you. (no macro required) Use a Pivot table.
Data=Pivot Table Reports and Charts. Once created, you can select the date
field and group on Month and Year.

--
Regards,
Tom Ogilvy



"Michael168" wrote in message
...

I have a sheet "Sales" which records the transactions.Row 1 is the
header.The records starts from row 2 downward.

Col A2 store date in "dd/mm/yyyy".
Col B2 store invoice number.
Col C2 store group.
Col D2 store machine.
Col E2 store brand
Col F2 store quantity.
Col G2 store unitprice.

I like to generate a report based on month and year against
group,machine & brand.

Currently I am using the array formula in another sheet "Report" to
extract the datas.

e.g. in "Report" col B2 the below array formula :

Range 2:659 is for the month of January,2004


=SUM(IF(Sales!$C$2:$C$659="Filter",IF(Sales!$D$2:$ D$659="Cat",IF(Sales!$E$2:
$E$659="OEM"1,0))))

Currently there are altogether 10 types of machine and 20 types of
group but the brand is unfix.

Can someone help to do this in vba? I hope I have explain clearly.

Regards
Michael.


--
Michael168
------------------------------------------------------------------------
Michael168's Profile:

http://www.excelforum.com/member.php...nfo&userid=605
View this thread: http://www.excelforum.com/showthread...hreadid=273579



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
Getting missing data from one report into another report... vlookupabyss Excel Discussion (Misc queries) 3 January 8th 08 03:26 PM
Print Report W/Sub Report Roger Excel Discussion (Misc queries) 0 September 6th 06 10:53 PM
Automate Excel report to place certain data into existing report? Craig Harrison Excel Worksheet Functions 3 July 25th 06 01:54 PM
Header in Report Manager Report Steve K Excel Discussion (Misc queries) 0 March 7th 06 07:32 PM
=(IF(ISTEXT('Data Report'!$L2:$L4),'Data Report'!N3,J11)) Response s2frost Excel Discussion (Misc queries) 2 June 25th 05 06:07 PM


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