Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Create macro for formulas


Hi,

I have this formula in:

For (B8:F8)
1. Column B8 IF(ISERR(GETPIVOTDATA("Sum o
Normal",[Book5.xls]PT_PD1!$H$1,"JOB NO.",9907)),0,GETPIVOTDATA("Sum o
Normal",[Book5.xls]PT_PD1!$H$1,"JOB NO.",9907))

2. C8 IF(ISERR(GETPIVOTDATA("Sum of OT 1",[Book5.xls]PT_PD1!$H$1,"JO
NO.",9907)),0,GETPIVOTDATA("Sum of OT 1",[Book5.xls]PT_PD1!$H$1,"JO
NO.",9907))

3. D8 IF(ISERR(GETPIVOTDATA("Sum of OT 2",[Book5.xls]PT_PD1!$H$1,"JO
NO.",9907)),0,GETPIVOTDATA("Sum of OT 2",[Book5.xls]PT_PD1!$H$1,"JO
NO.",9907))


4. E8 IF(ISERR(GETPIVOTDATA("Sum of OT 3",[Book5.xls]PT_PD1!$H$1,"JO
NO.",9907)),0,GETPIVOTDATA("Sum of OT 3",[Book5.xls]PT_PD1!$H$1,"JO
NO.",9907))


5. F8 IF(ISERR(GETPIVOTDATA("Sum of OT 4",[Book5.xls]PT_PD1!$H$1,"JO
NO.",9907)),0,GETPIVOTDATA("Sum of OT 4",[Book5.xls]PT_PD1!$H$1,"JO
NO.",9907))

For (B9:F9)
the data field change from "Sum of Normal" to "Sum of OT1,2,3,4" an
pivot table "PT_PD1" to "PT_PD2"

And I need to use the formulas for 50 rows.
At the moment I have to manually change and insert the formula but i
might a problem in the future when I need to GetpivotData for mor
items.

Is there anyway of creating macro to include the formul
(GETPIVOTDATA)?

Any advice will be much apppreciate?

Thanks


_________________

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly 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
Create a macro to create excel line graph with coloured pointers anddata lables anuj datta Charts and Charting in Excel 1 September 30th 09 04:04 PM
How do I create formulas between worksheets? JessicaLee0137 Excel Discussion (Misc queries) 6 February 24th 09 08:39 PM
CREATE AND IF FORMULAS fyrefox Excel Worksheet Functions 3 April 22nd 07 04:50 PM
create if formulas Lost in Excel Land Excel Worksheet Functions 1 June 30th 06 10:46 PM
How can formulas be used to create another formula? Geag Excel Discussion (Misc queries) 4 July 29th 05 09:51 AM


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