Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 69
Default Something Missing

I have a problem with the following formula

=SUMIF(Sheet1!$F$3:$F$248,"<"&DATE(2007,1,1),Sheet 1!$M$3:$M$248)/SUMIF(Sheet1!$F$3:$F$248,"<"&DATE(2007,1,1),Sheet1 !$D$3:$D$248)

Based on the SUMIF statement I look at a date range and if it falls within a
certain time frame I take the sum of a dollar column and divide it by the
total cost of another column to get a %.

This works as is, but what I need this do is now is roughly the same thing
except I do not want the $0 values to column M to be calculated in the
overall formula. I believe the $0 value is throwing my outputted % number
off.

Does someone have a better way?
Thanks
Peter W
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,180
Default Something Missing

If you had this data in column M and D
M D
1 59
2 48
0 26
4 55
what would be your desired result?
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 69
Default Something Missing

With M being the dollars made and D being the dollar sold a third range would
column F (Date range)

I want to find all the dates within a range (F2:F1000) and sum all the
dollars made within that range (M2:M1000) and divide the sum against the
total dollars sold for that range. If any number in column M is 0 I don't
want to add the corresponding cell in column D to the total, this throws my
total percentage off because the 0 is being included in the overall
performance.

"Herbert Seidenberg" wrote:

If you had this data in column M and D
M D
1 59
2 48
0 26
4 55
what would be your desired result?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,180
Default Something Missing

For this example, with the defined names as shown
DaT DoM DoS
12/28/2006 1 59
12/29/2006 2 48
12/30/2006 0 26
12/31/2006 4 55
1/1/2007 5 23
1/2/2007 6 61
=SUMPRODUCT((DaT<DATE(2007,1,1))*DoM)/
SUMPRODUCT((DaT<DATE(2007,1,1))*(DoM0)*DoS)
=4.32%
Your SUMIF formula would give the wrong answer of 3.72%


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 69
Default Something Missing

Thanks Herbert, this worked great.

Peter

"Herbert Seidenberg" wrote:

For this example, with the defined names as shown
DaT DoM DoS
12/28/2006 1 59
12/29/2006 2 48
12/30/2006 0 26
12/31/2006 4 55
1/1/2007 5 23
1/2/2007 6 61
=SUMPRODUCT((DaT<DATE(2007,1,1))*DoM)/
SUMPRODUCT((DaT<DATE(2007,1,1))*(DoM0)*DoS)
=4.32%
Your SUMIF formula would give the wrong answer of 3.72%



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
What am I missing? barrett Excel Worksheet Functions 2 May 15th 07 04:38 PM
Who is missing ? lutra Excel Discussion (Misc queries) 6 May 27th 06 09:39 PM
add-ins missing Newbie Excel Worksheet Functions 1 March 7th 06 08:29 PM
Toolbars Missing, And option to Add Missing SmeetaG Excel Discussion (Misc queries) 3 October 19th 05 11:43 AM
Missing Row Debbie Humphrey Excel Worksheet Functions 3 January 12th 05 06:26 PM


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