Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 287
Default what function or formula can I use

need some help on this,
ie budget spreadsheet
row is the variable, ie production tons
columns are months, Plan and actual, ie b3 is january Plan, c3 is january
actual
d3 is february plan and e3 is february actual, and so on for the remaining
months

\at the end of row 3, there is a "YTD plan" cell, say z3.

what formula would work so that it will sum up only the planned #'s for
months that have entered "actual" for those months
hence giving me the YTD plan to compare with my entered actuals
ie if I planned 10 for every month, it is now june, so I would have actual
numbers from jan to May. The YTD cell would only sum up the "planned" cells
for which actuals were entered. meaning the cell would sum up to equal 50
(the 5 months with actuals)



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default what function or formula can I use

Hi Adam,
Is it possible to change the structure of your sheet slightly?
I suggest only 1 column for each month.
Month names in Row1
Planned quantities in Row 2
Actual quantities in Row 3
This will make summing and most other math much easier.
Regards - Dave.

"Adam" wrote:

need some help on this,
ie budget spreadsheet
row is the variable, ie production tons
columns are months, Plan and actual, ie b3 is january Plan, c3 is january
actual
d3 is february plan and e3 is february actual, and so on for the remaining
months

\at the end of row 3, there is a "YTD plan" cell, say z3.

what formula would work so that it will sum up only the planned #'s for
months that have entered "actual" for those months
hence giving me the YTD plan to compare with my entered actuals
ie if I planned 10 for every month, it is now june, so I would have actual
numbers from jan to May. The YTD cell would only sum up the "planned" cells
for which actuals were entered. meaning the cell would sum up to equal 50
(the 5 months with actuals)



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 287
Default what function or formula can I use

Unfortunately I already posed that question to the owner and he would like
for it to remain the same. I filed him in on ranges etc and how the current
design of the spreadsheet really isnt efficient. Am I stuck, or is it still
possible
I appreciate the assistance dave

"Dave" wrote:

Hi Adam,
Is it possible to change the structure of your sheet slightly?
I suggest only 1 column for each month.
Month names in Row1
Planned quantities in Row 2
Actual quantities in Row 3
This will make summing and most other math much easier.
Regards - Dave.

"Adam" wrote:

need some help on this,
ie budget spreadsheet
row is the variable, ie production tons
columns are months, Plan and actual, ie b3 is january Plan, c3 is january
actual
d3 is february plan and e3 is february actual, and so on for the remaining
months

\at the end of row 3, there is a "YTD plan" cell, say z3.

what formula would work so that it will sum up only the planned #'s for
months that have entered "actual" for those months
hence giving me the YTD plan to compare with my entered actuals
ie if I planned 10 for every month, it is now june, so I would have actual
numbers from jan to May. The YTD cell would only sum up the "planned" cells
for which actuals were entered. meaning the cell would sum up to equal 50
(the 5 months with actuals)



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default what function or formula can I use

Hi Adam,
I'm not quite clear on exactly what you want, but I'll give it a try.
I think your data is in B3:Y3
B3, D3, F3 ... X3 contain planned quantities
C3, E3, G3 ... Y3 contain actual quantities, or will do as time goes on.
To sum just the planned quantities:
=SUMPRODUCT((B3:Y3)*(MOD(COLUMN(B3:Y3),2)=0))

To sum just the actual quantities, regardless of how many there are,
=SUMPRODUCT((B3:Y3)*(MOD(COLUMN(B3:Y3),2)=1))

I have a feeling that you want a bit more than that. Feel free to ask again.
Regards - Dave
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default what function or formula can I use

Hi Adam,
Perhaps this is what you want for the planned total cell.
It only adds the planned inputs that have a corresponding actual input.
=SUMPRODUCT((B3:Y3)*(MOD(COLUMN(B3:Y3),2)=0)*(ISNU MBER(C3:Z3)))
Note that I have had to use cell Z3 in the formula, because SUMPRODUCT needs
equal length lists to work with, and I needed to off set the last part of the
formula by one cell. It would be best if you didn't use Z3 for anything.
The running total for the actual quantities is as below.
Regards - Dave.


"Dave" wrote:

Hi Adam,
I'm not quite clear on exactly what you want, but I'll give it a try.
I think your data is in B3:Y3
B3, D3, F3 ... X3 contain planned quantities
C3, E3, G3 ... Y3 contain actual quantities, or will do as time goes on.
To sum just the planned quantities:
=SUMPRODUCT((B3:Y3)*(MOD(COLUMN(B3:Y3),2)=0))

To sum just the actual quantities, regardless of how many there are,
=SUMPRODUCT((B3:Y3)*(MOD(COLUMN(B3:Y3),2)=1))

I have a feeling that you want a bit more than that. Feel free to ask again.
Regards - Dave



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 287
Default what function or formula can I use

Thanks Dave I'll give it a try and let you know

"Dave" wrote:

Hi Adam,
Perhaps this is what you want for the planned total cell.
It only adds the planned inputs that have a corresponding actual input.
=SUMPRODUCT((B3:Y3)*(MOD(COLUMN(B3:Y3),2)=0)*(ISNU MBER(C3:Z3)))
Note that I have had to use cell Z3 in the formula, because SUMPRODUCT needs
equal length lists to work with, and I needed to off set the last part of the
formula by one cell. It would be best if you didn't use Z3 for anything.
The running total for the actual quantities is as below.
Regards - Dave.


"Dave" wrote:

Hi Adam,
I'm not quite clear on exactly what you want, but I'll give it a try.
I think your data is in B3:Y3
B3, D3, F3 ... X3 contain planned quantities
C3, E3, G3 ... Y3 contain actual quantities, or will do as time goes on.
To sum just the planned quantities:
=SUMPRODUCT((B3:Y3)*(MOD(COLUMN(B3:Y3),2)=0))

To sum just the actual quantities, regardless of how many there are,
=SUMPRODUCT((B3:Y3)*(MOD(COLUMN(B3:Y3),2)=1))

I have a feeling that you want a bit more than that. Feel free to ask again.
Regards - Dave

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 287
Default what function or formula can I use

Thanks dave, it seems to work well, much appreciated

"Dave" wrote:

Hi Adam,
Perhaps this is what you want for the planned total cell.
It only adds the planned inputs that have a corresponding actual input.
=SUMPRODUCT((B3:Y3)*(MOD(COLUMN(B3:Y3),2)=0)*(ISNU MBER(C3:Z3)))
Note that I have had to use cell Z3 in the formula, because SUMPRODUCT needs
equal length lists to work with, and I needed to off set the last part of the
formula by one cell. It would be best if you didn't use Z3 for anything.
The running total for the actual quantities is as below.
Regards - Dave.


"Dave" wrote:

Hi Adam,
I'm not quite clear on exactly what you want, but I'll give it a try.
I think your data is in B3:Y3
B3, D3, F3 ... X3 contain planned quantities
C3, E3, G3 ... Y3 contain actual quantities, or will do as time goes on.
To sum just the planned quantities:
=SUMPRODUCT((B3:Y3)*(MOD(COLUMN(B3:Y3),2)=0))

To sum just the actual quantities, regardless of how many there are,
=SUMPRODUCT((B3:Y3)*(MOD(COLUMN(B3:Y3),2)=1))

I have a feeling that you want a bit more than that. Feel free to ask again.
Regards - Dave

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
Help with OR function in IF function formula veggies27 Excel Worksheet Functions 3 March 18th 08 10:04 PM
formula within IF function Shirley Excel Discussion (Misc queries) 5 June 8th 07 07:50 PM
Function or formula Martin Excel Worksheet Functions 4 January 8th 07 05:01 PM
A formula/function to return a formula/function sith janitor Excel Worksheet Functions 4 September 22nd 06 05:01 PM
Max value in formula/function SEWINBABY Excel Worksheet Functions 3 January 19th 05 01:37 AM


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