Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default returning a sum value

example:
A B
1 31-Oct 10000
2 31-Oct 3000
3 31-Oct 5000
4 01-Nov 6000
5 01-Nov 2000
6
7

On the above example, i want to get the sum of column B from October 31
only, the value from Nov 1 was not included. what formula is appropriate for
this situation? i only want to get the sum for Oct 31. Please do help me, i
really need it. thanks in advance.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default returning a sum value

Put the date in C1, for example, then this formula in D1:

=SUMIF(A:A,C1,B:B)

Hope this helps.

Pete

On Sep 14, 9:44*pm, kyoko wrote:
example:
* * * * A * * * * * *B
1 * 31-Oct *10000
2 * 31-Oct * 3000
3 * 31-Oct * 5000
4 * 01-Nov *6000
5 * 01-Nov * 2000
6
7 *

On the above example, i want to get the sum of column B from October 31
only, the value from Nov 1 was not included. what formula is appropriate for
this situation? i only want to get the sum for Oct 31. Please do help me, i
really need it. thanks in advance.


  #3   Report Post  
Posted to microsoft.public.excel.misc
KC KC is offline
external usenet poster
 
Posts: 94
Default returning a sum value

what Pete has suggested would work, however if you want to sum up between a
given range of dates (say from 01-Oct-09 to 31-Oct-09) then SUMIF would not
work for multiple conditions, but if this is your requirement then one of the
work around would be to use

=SUMIF(A2:A6,TRUE,B2:B6)
where 1st row is column header.
and then put a auto filter to the column headers and use custom filter
condition to Date column such that is now show only the required range.
this would work because SUMIF adds only the visible rows and not the hidden
rows.

please note: after hiding or unhiding the rows the total may not refresh,
you would need to hit F9 for immediate refresh, or wait for some other even
to trigger.

hope this additional information helps.

-kc
* click YES if this helps.


"kyoko" wrote:

example:
A B
1 31-Oct 10000
2 31-Oct 3000
3 31-Oct 5000
4 01-Nov 6000
5 01-Nov 2000
6
7

On the above example, i want to get the sum of column B from October 31
only, the value from Nov 1 was not included. what formula is appropriate for
this situation? i only want to get the sum for Oct 31. Please do help me, i
really need it. thanks in advance.

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
Returning a zero Dena Excel Discussion (Misc queries) 4 February 10th 09 05:04 PM
Returning Zero Silvercreek Excel Discussion (Misc queries) 10 December 30th 08 09:36 AM
UDF returning #VALUE! why? Adam Kroger Excel Discussion (Misc queries) 7 December 18th 05 09:43 PM
=if returning 0 Jim Excel Worksheet Functions 4 December 15th 05 07:09 PM
Returning a 0 Value Steved Excel Worksheet Functions 3 July 29th 05 02:44 AM


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