A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Comparing, Matching, and Sum formula



 
 
Thread Tools Display Modes
  #1  
Old April 30th, 2010, 12:55 AM posted to microsoft.public.excel.newusers
MA
external usenet poster
 
Posts: 23
Default Comparing, Matching, and Sum formula

Hello.

Column A has dates. The format is 2010-04-29. There are multiple rows with
the same date.

Column B has numbers

Please, provide me the formula IF:

column A="2010-04-29" then SUM(B:B)

Thank you.
  #2  
Old April 30th, 2010, 02:05 AM posted to microsoft.public.excel.newusers
ozgrid.com
external usenet poster
 
Posts: 328
Default Comparing, Matching, and Sum formula

=IF(A1=DATE(2010,4,29),SUM(B:B),0)



--
Regards
Dave Hawley
www.ozgrid.com
"ma" wrote in message
...
Hello.

Column A has dates. The format is 2010-04-29. There are multiple rows with
the same date.

Column B has numbers

Please, provide me the formula IF:

column A="2010-04-29" then SUM(B:B)

Thank you.


  #3  
Old April 30th, 2010, 03:16 AM posted to microsoft.public.excel.newusers
MA
external usenet poster
 
Posts: 23
Default Comparing, Matching, and Sum formula

Thank you for your response.

How would I modify it so that it only summed column B so as long as Date=
2010,4,29 in any row of column A. Right now it's summing all of column B even
when the date changes.

"ozgrid.com" wrote:

=IF(A1=DATE(2010,4,29),SUM(B:B),0)



--
Regards
Dave Hawley
www.ozgrid.com
"ma" wrote in message
...
Hello.

Column A has dates. The format is 2010-04-29. There are multiple rows with
the same date.

Column B has numbers

Please, provide me the formula IF:

column A="2010-04-29" then SUM(B:B)

Thank you.


  #4  
Old April 30th, 2010, 03:21 AM posted to microsoft.public.excel.newusers
MA
external usenet poster
 
Posts: 23
Default Comparing, Matching, and Sum formula

I appreciate your response.

Could you tell me how I would modify this so that it only sums what is B so
as long as the DATE is 2010,4,29 in column A? Currently, it is summing the
whole column even when the date changes. Example:

2010-04-29 2
2010-04-29 7
2010-04-29 1
2010-04-28 4
2010-04-28 3

Results:
10
7


"ozgrid.com" wrote:

=IF(A1=DATE(2010,4,29),SUM(B:B),0)



--
Regards
Dave Hawley
www.ozgrid.com
"ma" wrote in message
...
Hello.

Column A has dates. The format is 2010-04-29. There are multiple rows with
the same date.

Column B has numbers

Please, provide me the formula IF:

column A="2010-04-29" then SUM(B:B)

Thank you.


  #5  
Old April 30th, 2010, 03:25 AM posted to microsoft.public.excel.newusers
T. Valko
external usenet poster
 
Posts: 15,759
Default Comparing, Matching, and Sum formula

Try this...

=SUMIF(A:A,DATE(2010,4,29),B:B)

Better to use a cell to hold the date

D1 = 4/29/2010

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

--
Biff
Microsoft Excel MVP


"ma" wrote in message
...
Thank you for your response.

How would I modify it so that it only summed column B so as long as Date=
2010,4,29 in any row of column A. Right now it's summing all of column B
even
when the date changes.

"ozgrid.com" wrote:

=IF(A1=DATE(2010,4,29),SUM(B:B),0)



--
Regards
Dave Hawley
www.ozgrid.com
"ma" wrote in message
...
Hello.

Column A has dates. The format is 2010-04-29. There are multiple rows
with
the same date.

Column B has numbers

Please, provide me the formula IF:

column A="2010-04-29" then SUM(B:B)

Thank you.




  #6  
Old April 30th, 2010, 12:56 PM posted to microsoft.public.excel.newusers
MA
external usenet poster
 
Posts: 23
Default Comparing, Matching, and Sum formula

Thank you. I went with the second formula and it worked!

"T. Valko" wrote:

Try this...

=SUMIF(A:A,DATE(2010,4,29),B:B)

Better to use a cell to hold the date

D1 = 4/29/2010

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

--
Biff
Microsoft Excel MVP


"ma" wrote in message
...
Thank you for your response.

How would I modify it so that it only summed column B so as long as Date=
2010,4,29 in any row of column A. Right now it's summing all of column B
even
when the date changes.

"ozgrid.com" wrote:

=IF(A1=DATE(2010,4,29),SUM(B:B),0)



--
Regards
Dave Hawley
www.ozgrid.com
"ma" wrote in message
...
Hello.

Column A has dates. The format is 2010-04-29. There are multiple rows
with
the same date.

Column B has numbers

Please, provide me the formula IF:

column A="2010-04-29" then SUM(B:B)

Thank you.



.

  #7  
Old April 30th, 2010, 01:41 PM posted to microsoft.public.excel.newusers
T. Valko
external usenet poster
 
Posts: 15,759
Default Comparing, Matching, and Sum formula

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"ma" wrote in message
...
Thank you. I went with the second formula and it worked!

"T. Valko" wrote:

Try this...

=SUMIF(A:A,DATE(2010,4,29),B:B)

Better to use a cell to hold the date

D1 = 4/29/2010

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

--
Biff
Microsoft Excel MVP


"ma" wrote in message
...
Thank you for your response.

How would I modify it so that it only summed column B so as long as
Date=
2010,4,29 in any row of column A. Right now it's summing all of column
B
even
when the date changes.

"ozgrid.com" wrote:

=IF(A1=DATE(2010,4,29),SUM(B:B),0)



--
Regards
Dave Hawley
www.ozgrid.com
"ma" wrote in message
...
Hello.

Column A has dates. The format is 2010-04-29. There are multiple
rows
with
the same date.

Column B has numbers

Please, provide me the formula IF:

column A="2010-04-29" then SUM(B:B)

Thank you.



.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:11 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.