#1   Report Post  
Posted to microsoft.public.excel.misc
raf
 
Posts: n/a
Default "if" function

I've got three columns
Column A Column B Column C
L 5-Jan-2006 5,000
M 7-Jan-2006 100
L 1-Feb-2006 10,000
U 24-Mar-2006 10

Alpha code "L" 15,000 Function '=SUMIF(A2:A5,"L".C2:C5)'
Alpha Code "L" in Jan (??? Function)

How do I write the formula to get the alpha code L total for January?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default "if" function

=SUMPRODUCT(--(A2:A5="L"),--(MONTH(B2:B5)=1))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"raf" wrote in message
...
I've got three columns
Column A Column B Column C
L 5-Jan-2006 5,000
M 7-Jan-2006 100
L 1-Feb-2006 10,000
U 24-Mar-2006 10

Alpha code "L" 15,000 Function '=SUMIF(A2:A5,"L".C2:C5)'
Alpha Code "L" in Jan (??? Function)

How do I write the formula to get the alpha code L total for January?



  #3   Report Post  
Posted to microsoft.public.excel.misc
raf
 
Posts: n/a
Default "if" function

On Sat 01/07/06 12:13:00, Bob Phillips wrote:
=SUMPRODUCT(--(A2:A5="L"),--(MONTH(B2:B5)=1))

Hi Bob,
How do I get the total to equal to 5,000 for the month of January?
Thanks!
  #4   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default "if" function

=SUMPRODUCT(--(A2:A5="L"),--(MONTH(B2:B5)=1),C2:C5)
--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"raf" wrote in message
...
On Sat 01/07/06 12:13:00, Bob Phillips

wrote:
=SUMPRODUCT(--(A2:A5="L"),--(MONTH(B2:B5)=1))

Hi Bob,
How do I get the total to equal to 5,000 for the month of January?
Thanks!



  #5   Report Post  
Posted to microsoft.public.excel.misc
raf
 
Posts: n/a
Default "if" function

Hi Bob,
Thanks for the formula! It works great, just what I needed.


"Bob Phillips" wrote:

=SUMPRODUCT(--(A2:A5="L"),--(MONTH(B2:B5)=1),C2:C5)

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
Wild Characters in "IF" function jakar Excel Discussion (Misc queries) 3 November 17th 05 05:35 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Hyperlinks using R[1]C[1] and offset function in its cell referenc Elijah-Dadda Excel Worksheet Functions 0 March 5th 05 03:31 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


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