#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Formulea

if anybody out there can help a man from pulling his hair out having spent
what feels like an lifetime trying to create a simple formulea to look at
column A for any dates in the month of april and calculate the total and
place it in column F

A B F
02/04/09 21.00 ******
28/04/09 20.00
30/04/09 9.00
02/05/09 30.00
30/05/09 42.00
01/06/09 86.00

Steve
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,104
Default Formulea

This will do it
=SUMPRODUCT(--(MONTH(A1:A6)=4),B1:B6)
best wishes (I am already bald!)
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email


"Steveg" wrote in message
...
if anybody out there can help a man from pulling his hair out having spent
what feels like an lifetime trying to create a simple formulea to look at
column A for any dates in the month of april and calculate the total and
place it in column F

A B F
02/04/09 21.00 ******
28/04/09 20.00
30/04/09 9.00
02/05/09 30.00
30/05/09 42.00
01/06/09 86.00

Steve



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Formulea

One way
In F1: =SUMPRODUCT(--(TEXT(A1:A20,"mmmyy")="Apr09"),B1:B20)
Better to make it unambiguous using "mth/yr" instead of just "mth"
Success? hit the YES below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"Steveg" wrote:
if anybody out there can help a man from pulling his hair out having spent
what feels like an lifetime trying to create a simple formulea to look at
column A for any dates in the month of april and calculate the total and
place it in column F

A B F
02/04/09 21.00 ******
28/04/09 20.00
30/04/09 9.00
02/05/09 30.00
30/05/09 42.00
01/06/09 86.00

Steve

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Formulea

=SUMPRODUCT((MONTH(A1:A6)=4)*(YEAR(A1:A6)=2009),B1 :B6)


"Steveg" wrote:

if anybody out there can help a man from pulling his hair out having spent
what feels like an lifetime trying to create a simple formulea to look at
column A for any dates in the month of april and calculate the total and
place it in column F

A B F
02/04/09 21.00 ******
28/04/09 20.00
30/04/09 9.00
02/05/09 30.00
30/05/09 42.00
01/06/09 86.00

Steve

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Formulea

Hi,

1 way

=SUMPRODUCT((MONTH(A1:A20)=4)*(B1:B20))

Mike

"Steveg" wrote:

if anybody out there can help a man from pulling his hair out having spent
what feels like an lifetime trying to create a simple formulea to look at
column A for any dates in the month of april and calculate the total and
place it in column F

A B F
02/04/09 21.00 ******
28/04/09 20.00
30/04/09 9.00
02/05/09 30.00
30/05/09 42.00
01/06/09 86.00

Steve



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
Need a formulea for calculating a month drizzy Excel Discussion (Misc queries) 3 April 30th 07 07:26 AM
filter list of text for unique entries using formulea The Nephalim Excel Worksheet Functions 1 June 17th 05 12:16 PM


All times are GMT +1. The time now is 10:04 AM.

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"