Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Urgent Macro Help Needed

Hi,
I have an excel workbook with two sheets.Both sheets have 'item number
as a column.Both sheets contain different number of rows.I want t
write a macro for displaying the common items in both sheets on a pag
(comparing both the sheets and getting the common item numbers)

I have to write a macro for generating the Waterfall char
attached(Waterfall.doc).The 'Actual' values come from one sheet and th
'Forecast' value from the other of the same worksheet.(Item 1,Ite
2......) are the common items in both the sheets.Varianc
=Actual-Forecast.........

Does this actually need a macro or can be done using a simple exce
worksheet ?



Attachment filename: waterfall.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=62013
--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default Urgent Macro Help Needed

I don't think you need a macro.

How is the layout of the data in the sheets?
Item 7/16/2004 7/23/2004 7/30/2004 ...
123 400 200 300 200
234 400 300 50 100

or is it

Item Date Actual ...
123 7/16/2004 400
123 7/23/2004 200
123 7/30/2004 300
234 7/16/2004 300
234 7/23/2004 500
234 7/30/2004 100

In any case:

Copy/Paste data from Actual sheet into a new sheet, sheet3.
Add a column called SOurce that you fill up with the word Actual
Copy/Paste data from Forecast into sheet3 after previously pasted data and fill the Source column with the word Forecast.

Using a pivot chart/table.
-Now from these data, create a pivot table & chart (menu Data PivotTable & PivotChart)
-In the pivot , put the field 'Item' in the Page field area. This will create a dropdown box for which you can choose a specific item.
-put the field 'Source' in the row field area.
-then depending on the data layer in the first part of the post , complete the pivot by putting either:
-Layout2: 'Date' in the column field are and the data in the data area
-Layout1: or putting each date in the data area
The pivot should look like:

Item: (All) <-- drop down

Source 7/16/2004 7/23/2004 7/30/2004
Actual 400 200 300
Forecast 200 400 100

Finally add a Calculated Item:
Select the SOurce field in the Pivot
Right-Click, and choose Formula Calculated Item from the pop-up menu.
The Calculated Item dialog display. Enter the formula =Actual-Forecast
Click Ok

Now you should have

Item: (All) <-- drop down

Source 7/16/2004 7/23/2004 7/30/2004
Actual 400 200 300
Forecast 200 400 100
Var. 200 -200 200

Pivot Chart:
Right Click the pivot and choose PivotChart from the pop-up menu.

--
Regards,
Sébastien


"sameer27p " wrote:

Hi,
I have an excel workbook with two sheets.Both sheets have 'item number'
as a column.Both sheets contain different number of rows.I want to
write a macro for displaying the common items in both sheets on a page
(comparing both the sheets and getting the common item numbers)

I have to write a macro for generating the Waterfall chart
attached(Waterfall.doc).The 'Actual' values come from one sheet and the
'Forecast' value from the other of the same worksheet.(Item 1,Item
2......) are the common items in both the sheets.Variance
=Actual-Forecast.........

Does this actually need a macro or can be done using a simple excel
worksheet ?

)

Attachment filename: waterfall.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=620139
---
Message posted from http://www.ExcelForum.com/


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
Urgent help needed Excel Helps Excel Worksheet Functions 13 January 21st 08 03:50 PM
Help Needed Urgent BiggieD Excel Discussion (Misc queries) 7 April 19th 06 05:04 PM
Urgent Help needed Brento Excel Discussion (Misc queries) 0 February 9th 06 09:10 PM
Urgent help needed! skarbanan Excel Worksheet Functions 23 December 30th 05 10:56 PM
Urgent Macro help needed kaz85 Excel Programming 11 December 19th 03 04:44 PM


All times are GMT +1. The time now is 05:45 PM.

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"