Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PAL PAL is offline
external usenet poster
 
Posts: 200
Default Greater than a month

I have these two formulas below working great. I have been asked to modify
it by doing the calculation for a period greater than one month. I currently
identify the month by, "TEXT(G17,"mmyyyy")". How do I modify this to
calculate if the data is between two dates. Thanks.

=COUNT(IF(TEXT(Work!$N$3:$N$5724,"mmyyyy")=TEXT(G1 7,"mmyyyy"),IF(Work!$O$3:$O$5724="",Work!$O$3:$O$5 724)))

=AVERAGE(IF(TEXT(Work!$N$3:$N$5724,"mmyyyy")=TEXT( G17,"mmyyyy"),IF(Work!$O$3:$O$5724<"",Work!$B$3:$ B$5724)))
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Greater than a month

=COUNT(IF(TEXT(Work!$N$3:$N$5724,"mmyyyy")=TEXT(G 17,"mmyyyy"),IF(Work!$O$3:$O$5724="",Work!$O$3:$O$ 5724)))

What is that formula supposed to be doing?

If you want an average based on a date range...

A1 = lower date boundary, for example 1/1/2010
B1 = upper date boundary, for example 1/15/2010

Array entered**:

=AVERAGE(IF(date_range=A1,IF(date_range<=B1,range _to_average)))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"PAL" wrote in message
...
I have these two formulas below working great. I have been asked to modify
it by doing the calculation for a period greater than one month. I
currently
identify the month by, "TEXT(G17,"mmyyyy")". How do I modify this to
calculate if the data is between two dates. Thanks.

=COUNT(IF(TEXT(Work!$N$3:$N$5724,"mmyyyy")=TEXT(G1 7,"mmyyyy"),IF(Work!$O$3:$O$5724="",Work!$O$3:$O$5 724)))

=AVERAGE(IF(TEXT(Work!$N$3:$N$5724,"mmyyyy")=TEXT( G17,"mmyyyy"),IF(Work!$O$3:$O$5724<"",Work!$B$3:$ B$5724)))



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Greater than a month

Hi,

Here's a modified AVERAGE formula that does what you want. Note we are now
compoaring full dates so we can drop the TEXT bits of the formula. The date
ranges are now G17 (Earlier date) and f17 (Later date)

=AVERAGE(IF(Work!$N$3:$N$5724=G17,IF(Work!$N$3:$N $5724<=F17,IF(Work!$O$3:$O$5724<"",Work!$B$3:$B$5 724))))

The other formula seems to ne making hard work of doing something simple and
could be modified to

=SUMPRODUCT((N3:N14=G17)*(O3:O14=""))

or now to your new requirement to include a start end date

=SUMPRODUCT((Work!N3:N5724=G17)*(Work!N3:N5724<=F 17)*(Work!O3:O5724=""))

--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"PAL" wrote:

I have these two formulas below working great. I have been asked to modify
it by doing the calculation for a period greater than one month. I currently
identify the month by, "TEXT(G17,"mmyyyy")". How do I modify this to
calculate if the data is between two dates. Thanks.

=COUNT(IF(TEXT(Work!$N$3:$N$5724,"mmyyyy")=TEXT(G1 7,"mmyyyy"),IF(Work!$O$3:$O$5724="",Work!$O$3:$O$5 724)))

=AVERAGE(IF(TEXT(Work!$N$3:$N$5724,"mmyyyy")=TEXT( G17,"mmyyyy"),IF(Work!$O$3:$O$5724<"",Work!$B$3:$ B$5724)))

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
excel to make the days cary over month to month automaticly GARY New Users to Excel 1 April 19th 08 06:05 PM
Excel 2003 month to month data change grid Chad[_2_] Excel Discussion (Misc queries) 2 February 15th 08 01:36 AM
Subtract a future month from the current month to get remaining m. Fletch Excel Worksheet Functions 1 July 26th 07 04:29 PM
When using MONTH function on Blank Cell!! Returns Month=Jan! mahou Excel Discussion (Misc queries) 6 January 9th 06 02:46 AM
transfer cell $ amount to other sheet month-to-month without overc Colin2u Excel Discussion (Misc queries) 1 July 28th 05 02:36 AM


All times are GMT +1. The time now is 07:29 PM.

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"