Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 178
Default Formula for Cell

I have the formula below to total the amount of months in date format to be
totalled onto another sheet, Unfortunately this formula also adds totals for
normal numbers input also and is returning false totals for months in dates.
=SUMPRODUCT(--(H2:H22<""),--(ISNUMBER(MATCH(MONTH(H2:H22),{1},0))))
does anyone have any ideas how to solve this formula so it only recognises
12/01/2006 the month 1, and does not recognise numbers input like 1410123 as
this is recognised also and totals.

Anyone any idea,

Thanks

Mark


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Formula for Cell

Are those serial numbers always way bigger than any date you need to count?

=sumproduct(--(h2:h22date(2000,1,1)),
--(h2:h22<date(2006,12,31),
--(whateverelseyouneed))

santaviga wrote:

I have the formula below to total the amount of months in date format to be
totalled onto another sheet, Unfortunately this formula also adds totals for
normal numbers input also and is returning false totals for months in dates.
=SUMPRODUCT(--(H2:H22<""),--(ISNUMBER(MATCH(MONTH(H2:H22),{1},0))))
does anyone have any ideas how to solve this formula so it only recognises
12/01/2006 the month 1, and does not recognise numbers input like 1410123 as
this is recognised also and totals.

Anyone any idea,

Thanks

Mark


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 178
Default Formula for Cell

Wont let me enter this formula, says it contains an error, I suppose that the
Incident numbers will be higher than the date.

Mark

"Dave Peterson" wrote:

Are those serial numbers always way bigger than any date you need to count?

=sumproduct(--(h2:h22date(2000,1,1)),
--(h2:h22<date(2006,12,31),
--(whateverelseyouneed))

santaviga wrote:

I have the formula below to total the amount of months in date format to be
totalled onto another sheet, Unfortunately this formula also adds totals for
normal numbers input also and is returning false totals for months in dates.
=SUMPRODUCT(--(H2:H22<""),--(ISNUMBER(MATCH(MONTH(H2:H22),{1},0))))
does anyone have any ideas how to solve this formula so it only recognises
12/01/2006 the month 1, and does not recognise numbers input like 1410123 as
this is recognised also and totals.

Anyone any idea,

Thanks

Mark


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Formula for Cell

What formula did you use?

that "whateverelseyouneed" was a place holder for you to put whatever else you
need.

santaviga wrote:

Wont let me enter this formula, says it contains an error, I suppose that the
Incident numbers will be higher than the date.

Mark

"Dave Peterson" wrote:

Are those serial numbers always way bigger than any date you need to count?

=sumproduct(--(h2:h22date(2000,1,1)),
--(h2:h22<date(2006,12,31),
--(whateverelseyouneed))

santaviga wrote:

I have the formula below to total the amount of months in date format to be
totalled onto another sheet, Unfortunately this formula also adds totals for
normal numbers input also and is returning false totals for months in dates.
=SUMPRODUCT(--(H2:H22<""),--(ISNUMBER(MATCH(MONTH(H2:H22),{1},0))))
does anyone have any ideas how to solve this formula so it only recognises
12/01/2006 the month 1, and does not recognise numbers input like 1410123 as
this is recognised also and totals.

Anyone any idea,

Thanks

Mark


--

Dave Peterson


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 178
Default Formula for Cell

I did that I put in 01 for month Jan, But cam up with error

Mark

"Dave Peterson" wrote:

What formula did you use?

that "whateverelseyouneed" was a place holder for you to put whatever else you
need.

santaviga wrote:

Wont let me enter this formula, says it contains an error, I suppose that the
Incident numbers will be higher than the date.

Mark

"Dave Peterson" wrote:

Are those serial numbers always way bigger than any date you need to count?

=sumproduct(--(h2:h22date(2000,1,1)),
--(h2:h22<date(2006,12,31),
--(whateverelseyouneed))

santaviga wrote:

I have the formula below to total the amount of months in date format to be
totalled onto another sheet, Unfortunately this formula also adds totals for
normal numbers input also and is returning false totals for months in dates.
=SUMPRODUCT(--(H2:H22<""),--(ISNUMBER(MATCH(MONTH(H2:H22),{1},0))))
does anyone have any ideas how to solve this formula so it only recognises
12/01/2006 the month 1, and does not recognise numbers input like 1410123 as
this is recognised also and totals.

Anyone any idea,

Thanks

Mark

--

Dave Peterson


--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Formula for Cell

What was the formula you used?

santaviga wrote:

I did that I put in 01 for month Jan, But cam up with error

Mark

"Dave Peterson" wrote:

What formula did you use?

that "whateverelseyouneed" was a place holder for you to put whatever else you
need.

santaviga wrote:

Wont let me enter this formula, says it contains an error, I suppose that the
Incident numbers will be higher than the date.

Mark

"Dave Peterson" wrote:

Are those serial numbers always way bigger than any date you need to count?

=sumproduct(--(h2:h22date(2000,1,1)),
--(h2:h22<date(2006,12,31),
--(whateverelseyouneed))

santaviga wrote:

I have the formula below to total the amount of months in date format to be
totalled onto another sheet, Unfortunately this formula also adds totals for
normal numbers input also and is returning false totals for months in dates.
=SUMPRODUCT(--(H2:H22<""),--(ISNUMBER(MATCH(MONTH(H2:H22),{1},0))))
does anyone have any ideas how to solve this formula so it only recognises
12/01/2006 the month 1, and does not recognise numbers input like 1410123 as
this is recognised also and totals.

Anyone any idea,

Thanks

Mark

--

Dave Peterson


--

Dave Peterson


--

Dave Peterson
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
How can I make a blank cell in a formula cell with a range of cell Vi Excel Discussion (Misc queries) 5 June 21st 07 02:46 PM
get the value of a formula in cell B1 into cell A1 without changing my current cell selection News[_4_] Excel Programming 3 October 21st 06 12:24 AM
Cell Formula reference to cell Based On third Cell Content Gabriel Excel Discussion (Misc queries) 1 February 11th 05 06:36 AM
Cell Formula reference to cell Based On third Cell Content Gabriel Excel Discussion (Misc queries) 0 February 11th 05 05:35 AM
Question: Cell formula or macro to write result of one cell to another cell Frederik Romanov Excel Programming 1 July 8th 03 03:03 PM


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