LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default Macro to convert dates in a Conditional Sum Formulas?

I have built a table with a wide array of conditional sum formulas as follows:

=SUM(IF($T$5:$T$1000="Mar",IF($D$5:$D$1000="Unit A",$K$5:$K$1000,0),0))

Basically, I want to add each Unit's numbers together by month. And the
formula works very well. However, as I have quite a few of these conditional
sums that I built with the Conditional Sum Wizard, I would like an easy way
of converting the months in each formula via a macro.

I have tried recording a macro but in order to get the formula to update
correctly I have to use the "Edit Macro" button by the formula bar to get the
formula to work corrctly with the change of months. Since the month is always
in the same position in the formula, I tried using "SendKeys" but I can't
seem to get the cursor to insert via macro the way I could with a mouse. My
only other alternative is to manually edit each formula and I have alot of
these Conditional Sums to edit.

Anybody know a better way? I'm stumped.


 
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
How do I auto-convert European dates to US dates? sandi Excel Worksheet Functions 3 January 27th 09 10:33 PM
Use of dates in conditional and AND formulas Pam D in Indy Excel Worksheet Functions 3 September 29th 08 09:54 PM
input conditional formulas using VBA Macro in axcel sheet Francesco Excel Discussion (Misc queries) 7 April 2nd 06 01:51 PM
need to convert list of dates to count no. of dates by week neowok Excel Worksheet Functions 13 January 30th 06 03:54 PM
convert a worksheet with formulas to a macro myforum[_2_] Excel Programming 0 September 7th 04 03:14 PM


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