Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default HELP! with long function

I need to write a function with the following parameters for a work
spreadsheet.

If A:4:A29 is between the dates 07/01/2007 and 07/31/2007, add cells D4:D29
for those dates.

Can anyone help, please, please?

--
Spoe
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default HELP! with long function

=SUMPRODUCT(--(MONTH(A4:A29)=7), D4:D29)
For more details on SUMPRODUCT
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
http://mcgimpsey.com/excel/formulae/doubleneg.html
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email


"spoe" wrote in message
...
I need to write a function with the following parameters for a work
spreadsheet.

If A:4:A29 is between the dates 07/01/2007 and 07/31/2007, add cells
D4:D29
for those dates.

Can anyone help, please, please?

--
Spoe



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default HELP! with long function

=SUMPRODUCT(--(MONTH(A4:A29)=7),--(YEAR(A4:A29)=2007),D4:D29)


"spoe" wrote:

I need to write a function with the following parameters for a work
spreadsheet.

If A:4:A29 is between the dates 07/01/2007 and 07/31/2007, add cells D4:D29
for those dates.

Can anyone help, please, please?

--
Spoe

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default HELP! with long function

Good point, I forgot to check year (data could be multi-years)
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"Teethless mama" wrote in message
...
=SUMPRODUCT(--(MONTH(A4:A29)=7),--(YEAR(A4:A29)=2007),D4:D29)


"spoe" wrote:

I need to write a function with the following parameters for a work
spreadsheet.

If A:4:A29 is between the dates 07/01/2007 and 07/31/2007, add cells
D4:D29
for those dates.

Can anyone help, please, please?

--
Spoe



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default HELP! with long function

Take your pick:

=SUMIF(A4:A29,"="&DATE(2007,7,1),D4:D29)-SUMIF(A4:A29,""&DATE(2007,7,31),D4:D29)

A1 = 7/1/2007
B1 = 7/31/2007

=SUMIF(A4:A29,"="&A1,D4:D29)-SUMIF(A4:A29,""&B1,D4:D29)

=SUMPRODUCT(--(TEXT(A4:A29,"m/yyyy")="7/2007"),D4:D29)

--
Biff
Microsoft Excel MVP


"spoe" wrote in message
...
I need to write a function with the following parameters for a work
spreadsheet.

If A:4:A29 is between the dates 07/01/2007 and 07/31/2007, add cells
D4:D29
for those dates.

Can anyone help, please, please?

--
Spoe



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
Clearing cells takes long, long time unclemuffin Excel Discussion (Misc queries) 9 August 17th 07 02:22 AM
Long Logical function Archana Excel Worksheet Functions 2 February 20th 07 06:36 AM
Does Excel 2003 have a function to calculate how long money will l steven8264 Excel Worksheet Functions 2 February 3rd 07 08:10 AM
Long Date - Long Date = text is days tom Excel Discussion (Misc queries) 2 November 13th 06 04:17 AM
How long until 5:00? Ray_Johnson Excel Discussion (Misc queries) 8 December 3rd 04 02:24 PM


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