Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
CMD CMD is offline
external usenet poster
 
Posts: 34
Default macro or formula

Hi. I am trying to create a budget in excel. in the first row, i have the
year. in the second row, i have the months of the year. what i would like
to do is the following: I would like to create a general template where I
enter a line item for the budget (e.g., license fee). next to that, i would
like to list the amount, followed by the month and the year that it should
appear in the budget.
e.g., license fee.....$10,000......July......2007

is there a command/macro that I can use that will take the dollar amount and
place it in the correct cell in the budget that corresponds to the month and
year listed? my goal is to not have to manually move dollar amounts around
as timing changes during the budget development process.

Thanks for any suggestions.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default macro or formula

If I understand you correctly, one way, using formulae:

On your list sheet (say, 'LIST'):

A B C D
1 ITEM AMT MONTH YEAR
2 license fee 10000 July 2007
3 ...

on your summary sheet

A B C D
1 2007 2007 2007
2 ITEM JULY AUGUST SEPTEMBER
3 license fee

then

B3: =SUMPRODUCT(--(LIST!$A$2:$A$1000=$A3),--(LIST!$C$2:$C$1000=B$2),
--(LIST!$D$2:$D$2000=B$1),LIST!$B$2:$B$1000)

Which you can copy down and across as necessary.


But you'd probably be better off using a Pivot Table...

A macro would probably be my last choice unless calculation time got too
long for either of the others.



In article ,
CMD wrote:

Hi. I am trying to create a budget in excel. in the first row, i have the
year. in the second row, i have the months of the year. what i would like
to do is the following: I would like to create a general template where I
enter a line item for the budget (e.g., license fee). next to that, i would
like to list the amount, followed by the month and the year that it should
appear in the budget.
e.g., license fee.....$10,000......July......2007

is there a command/macro that I can use that will take the dollar amount and
place it in the correct cell in the budget that corresponds to the month and
year listed? my goal is to not have to manually move dollar amounts around
as timing changes during the budget development process.

Thanks for any suggestions.

  #3   Report Post  
Posted to microsoft.public.excel.programming
CMD CMD is offline
external usenet poster
 
Posts: 34
Default macro or formula

Thanks JE!!

"JE McGimpsey" wrote:

If I understand you correctly, one way, using formulae:

On your list sheet (say, 'LIST'):

A B C D
1 ITEM AMT MONTH YEAR
2 license fee 10000 July 2007
3 ...

on your summary sheet

A B C D
1 2007 2007 2007
2 ITEM JULY AUGUST SEPTEMBER
3 license fee

then

B3: =SUMPRODUCT(--(LIST!$A$2:$A$1000=$A3),--(LIST!$C$2:$C$1000=B$2),
--(LIST!$D$2:$D$2000=B$1),LIST!$B$2:$B$1000)

Which you can copy down and across as necessary.


But you'd probably be better off using a Pivot Table...

A macro would probably be my last choice unless calculation time got too
long for either of the others.



In article ,
CMD wrote:

Hi. I am trying to create a budget in excel. in the first row, i have the
year. in the second row, i have the months of the year. what i would like
to do is the following: I would like to create a general template where I
enter a line item for the budget (e.g., license fee). next to that, i would
like to list the amount, followed by the month and the year that it should
appear in the budget.
e.g., license fee.....$10,000......July......2007

is there a command/macro that I can use that will take the dollar amount and
place it in the correct cell in the budget that corresponds to the month and
year listed? my goal is to not have to manually move dollar amounts around
as timing changes during the budget development process.

Thanks for any suggestions.


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
Formula Macro Secret Squirrel Excel Discussion (Misc queries) 7 January 27th 07 04:16 PM
Formula expected end of statement error, typing formula into cell as part of VBA macro [email protected] Excel Programming 1 July 20th 06 07:58 PM
Formula to Macro help PLEASE Hemming[_5_] Excel Programming 2 March 9th 06 03:20 PM
Macro and Formula strung Excel Worksheet Functions 3 September 6th 05 02:43 PM
Help on Macro or Formula Nigel Excel Discussion (Misc queries) 2 June 13th 05 01:27 PM


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