Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default Will not give accurate totals.

I can not get this to work right.

SHEET " Daily Totals"
col B
date total4 this come from Sheet "Jan" Col FO
1/1/09 0 **should be 0 **
1/2/09 5 ** Should be 10 **
1/3/09 14 ** Should be 3 **
1/4/09 9 ** Should be 1 **

The formula for the col tot 4 is
=SUMPRODUCT(--(Jan!B3:B400='Daily totals'!B5),--(Jan!FO3:FO400<=1))
=SUMPRODUCT(--(Jan!B3:B400='Daily totals'!B6),--(Jan!FO3:FO400<=1))
=SUMPRODUCT(--(Jan!B3:B400='Daily totals'!B7),--(Jan!FO3:FO400<=1))
=SUMPRODUCT(--(Jan!B3:B400='Daily totals'!B8),--(Jan!FO3:FO400<=1))

B5 1/1/09
B6 1/2/09
B7 1/3/09
B8 1/4/09

Second Sheet

Sheet "Jan"
Col B Col F
1 1/2/09 4
2 1/2/09 1
3 1/2/09 1
4 1/2/09 0
5 1/2/09 0
6 1/2/09 3
7 1/2/09 1 *** Actual tot for 1/2/09 10 ***
8 1/3/09 0
9 1/3/09 0
10 1/3/09 1
11 1/3/09 0
12 1/3/09 0
13 1/3/09 0
14 1/3/09 0
15 1/3/09 0
16 1/3/09 2
17 1/3/09 0
18 1/3/09 0
19 1/3/09 0
20 1/3/09 0
21 1/3/09 0
22 1/3/09 0 *** Actual tot for 1/3/09 3 ***
23 1/4/09 0
24 1/4/09 0
25 1/4/09 0
26 1/4/09 0
27 1/4/09 0
28 1/4/09 0
29 1/4/09 1
30 1/4/09 0
31 1/4/09 0 *** Actual tot for 1/4/09 1 ***

I am not getting accurate totals for each day. I want to total up the total
in "Sheet Jan" Col F based on the date and put the total in sheet " Daily
Totals" based on the date. I want to see every day that the totals are. I can
not get it to add up right. I have tried different thing but can not seem to
get it to work.

Again Thank you so much...

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 248
Default Will not give accurate totals.

Try
=SUMPRODUCT(--(Jan!B3:B400='Daily totals'!B5),(Jan!FO3:FO400))
Is it Col FO or F? If F then change FO to F above.
Why were you comparing FO with <=1? What you have is giving you the count in
Col FO with values less or equal to one where Col B matches 'Daily totals'!B5

Jan!B3:B400='Daily totals'!B5 gives you an array of True and False which is
converted to 1 and 0 by putting -- in front... corresponding elements of the
arrays you have within SUMPRODUCT are multiplied and then added...

So if you have a condition with -- in front you get COUNT... without a
condition you get SUM (of multiplications of corresponding elements)
-------------------------------------
Pl. click ''''Yes'''' if this was helpful...



"marsjune68" wrote:

I can not get this to work right.

SHEET " Daily Totals"
col B
date total4 this come from Sheet "Jan" Col FO
1/1/09 0 **should be 0 **
1/2/09 5 ** Should be 10 **
1/3/09 14 ** Should be 3 **
1/4/09 9 ** Should be 1 **

The formula for the col tot 4 is
=SUMPRODUCT(--(Jan!B3:B400='Daily totals'!B5),--(Jan!FO3:FO400<=1))
=SUMPRODUCT(--(Jan!B3:B400='Daily totals'!B6),--(Jan!FO3:FO400<=1))
=SUMPRODUCT(--(Jan!B3:B400='Daily totals'!B7),--(Jan!FO3:FO400<=1))
=SUMPRODUCT(--(Jan!B3:B400='Daily totals'!B8),--(Jan!FO3:FO400<=1))

B5 1/1/09
B6 1/2/09
B7 1/3/09
B8 1/4/09

Second Sheet

Sheet "Jan"
Col B Col F
1 1/2/09 4
2 1/2/09 1
3 1/2/09 1
4 1/2/09 0
5 1/2/09 0
6 1/2/09 3
7 1/2/09 1 *** Actual tot for 1/2/09 10 ***
8 1/3/09 0
9 1/3/09 0
10 1/3/09 1
11 1/3/09 0
12 1/3/09 0
13 1/3/09 0
14 1/3/09 0
15 1/3/09 0
16 1/3/09 2
17 1/3/09 0
18 1/3/09 0
19 1/3/09 0
20 1/3/09 0
21 1/3/09 0
22 1/3/09 0 *** Actual tot for 1/3/09 3 ***
23 1/4/09 0
24 1/4/09 0
25 1/4/09 0
26 1/4/09 0
27 1/4/09 0
28 1/4/09 0
29 1/4/09 1
30 1/4/09 0
31 1/4/09 0 *** Actual tot for 1/4/09 1 ***

I am not getting accurate totals for each day. I want to total up the total
in "Sheet Jan" Col F based on the date and put the total in sheet " Daily
Totals" based on the date. I want to see every day that the totals are. I can
not get it to add up right. I have tried different thing but can not seem to
get it to work.

Again Thank you so much...

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default Will not give accurate totals.

Thank you soooooooo much. It worked!!!!! I wish I knew Excel better.
Formulas are a pain.

"Sheeloo" wrote:

Try
=SUMPRODUCT(--(Jan!B3:B400='Daily totals'!B5),(Jan!FO3:FO400))
Is it Col FO or F? If F then change FO to F above.
Why were you comparing FO with <=1? What you have is giving you the count in
Col FO with values less or equal to one where Col B matches 'Daily totals'!B5

Jan!B3:B400='Daily totals'!B5 gives you an array of True and False which is
converted to 1 and 0 by putting -- in front... corresponding elements of the
arrays you have within SUMPRODUCT are multiplied and then added...

So if you have a condition with -- in front you get COUNT... without a
condition you get SUM (of multiplications of corresponding elements)
-------------------------------------
Pl. click ''''Yes'''' if this was helpful...



"marsjune68" wrote:

I can not get this to work right.

SHEET " Daily Totals"
col B
date total4 this come from Sheet "Jan" Col FO
1/1/09 0 **should be 0 **
1/2/09 5 ** Should be 10 **
1/3/09 14 ** Should be 3 **
1/4/09 9 ** Should be 1 **

The formula for the col tot 4 is
=SUMPRODUCT(--(Jan!B3:B400='Daily totals'!B5),--(Jan!FO3:FO400<=1))
=SUMPRODUCT(--(Jan!B3:B400='Daily totals'!B6),--(Jan!FO3:FO400<=1))
=SUMPRODUCT(--(Jan!B3:B400='Daily totals'!B7),--(Jan!FO3:FO400<=1))
=SUMPRODUCT(--(Jan!B3:B400='Daily totals'!B8),--(Jan!FO3:FO400<=1))

B5 1/1/09
B6 1/2/09
B7 1/3/09
B8 1/4/09

Second Sheet

Sheet "Jan"
Col B Col F
1 1/2/09 4
2 1/2/09 1
3 1/2/09 1
4 1/2/09 0
5 1/2/09 0
6 1/2/09 3
7 1/2/09 1 *** Actual tot for 1/2/09 10 ***
8 1/3/09 0
9 1/3/09 0
10 1/3/09 1
11 1/3/09 0
12 1/3/09 0
13 1/3/09 0
14 1/3/09 0
15 1/3/09 0
16 1/3/09 2
17 1/3/09 0
18 1/3/09 0
19 1/3/09 0
20 1/3/09 0
21 1/3/09 0
22 1/3/09 0 *** Actual tot for 1/3/09 3 ***
23 1/4/09 0
24 1/4/09 0
25 1/4/09 0
26 1/4/09 0
27 1/4/09 0
28 1/4/09 0
29 1/4/09 1
30 1/4/09 0
31 1/4/09 0 *** Actual tot for 1/4/09 1 ***

I am not getting accurate totals for each day. I want to total up the total
in "Sheet Jan" Col F based on the date and put the total in sheet " Daily
Totals" based on the date. I want to see every day that the totals are. I can
not get it to add up right. I have tried different thing but can not seem to
get it to work.

Again Thank you so much...

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 248
Default Will not give accurate totals.

You are most welcome...

Make them your friend...
Download Learn Excel 97 through Excel 2007 From MrExcel -
http://www.mrexcel.com/learnexcel2.shtml


"marsjune68" wrote:

Thank you soooooooo much. It worked!!!!! I wish I knew Excel better.
Formulas are a pain.


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
Pivot Totals: Group totals different from Grand totals PsyberFox Excel Discussion (Misc queries) 1 February 13th 08 06:16 PM
HOW DO I SETUP A PAGE IN EXCEL TO GIVE TOTALS TO ANOTHER PAGE Randy Excel Worksheet Functions 1 February 8th 07 06:15 PM
Give RELEVANT responses to questions. DO NOT give usless list pmartin Excel Worksheet Functions 2 July 6th 06 06:08 PM
Totals of calculated field in pivot table give incorrect results Jake Excel Worksheet Functions 6 January 12th 06 06:15 PM
This formula is also summing the the value above to give 2 totals. Steved Excel Worksheet Functions 0 August 8th 05 10:55 PM


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