Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
GD GD is offline
external usenet poster
 
Posts: 83
Default Array formula based on text and dates..

I'm using the following to pull out the amount of cells in the range L3 -
L260 with the phrase 'GD (KT) in them, whithin the month of January.
=SUM(IF(MOD(ROW('2008 Errors'!$A$3:$A$3000),10)=3,IF((YEAR('2008
Errors'!$A$3:$A$3000)=2008)*(MONTH('2008 Errors'!$A$3:$A$3000)=1)*
(LEN('2008 Errors'!I3:I3000)-LEN(SUBSTITUTE('2008 Errors'!I3:I3000,"GD
(KT)",""))0),1)))
I'm looking for something broader, essentially i'd like to apply the same
principle but for all the cells in the range with the (KT) text occurance,
regarldess of the GD prefix (i.e the formula when applied to 4 cells with the
following data "GD (KT)" "JK (KT)" "ZE (EL)" "AG (KT)" would provide a result
of 3, drawing on the three cells with the (KT) in them. So essentially i'm
looking to relax the text criteria to a phrase as opposed to a set piece of
text...
I'm looking for a version based on the above formula which can be editted to
suit month, (by changing the MONTH criteria) and also just one for counting
the text occurance of KT in the range of cells in general
Cheers
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Array formula based on text and dates..

=SUM(IF(MOD(ROW('2008 Errors'!$A$3:$A$30),10)=3,
IF((TEXT('2008 Errors'!$A$3:$A$30,"mmm yyyy")="Jan 2008")*
(ISNUMBER(FIND("(KT)",'2008 Errors'!I3:I30))),1)))

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"GD" wrote in message
...
I'm using the following to pull out the amount of cells in the range L3 -
L260 with the phrase 'GD (KT) in them, whithin the month of January.
=SUM(IF(MOD(ROW('2008 Errors'!$A$3:$A$3000),10)=3,IF((YEAR('2008
Errors'!$A$3:$A$3000)=2008)*(MONTH('2008 Errors'!$A$3:$A$3000)=1)*
(LEN('2008 Errors'!I3:I3000)-LEN(SUBSTITUTE('2008 Errors'!I3:I3000,"GD
(KT)",""))0),1)))
I'm looking for something broader, essentially i'd like to apply the same
principle but for all the cells in the range with the (KT) text occurance,
regarldess of the GD prefix (i.e the formula when applied to 4 cells with
the
following data "GD (KT)" "JK (KT)" "ZE (EL)" "AG (KT)" would provide a
result
of 3, drawing on the three cells with the (KT) in them. So essentially i'm
looking to relax the text criteria to a phrase as opposed to a set piece
of
text...
I'm looking for a version based on the above formula which can be editted
to
suit month, (by changing the MONTH criteria) and also just one for
counting
the text occurance of KT in the range of cells in general
Cheers



  #3   Report Post  
Posted to microsoft.public.excel.misc
GD GD is offline
external usenet poster
 
Posts: 83
Default Array formula based on text and dates..

Hi Bob, thanks for the response - for some reason this produces a result fo
three, but the range of cells I3-L3000 (in increments of 10) are populated
with at least 25 text arrangements with (KT) in them, any ideas?

"Bob Phillips" wrote:

=SUM(IF(MOD(ROW('2008 Errors'!$A$3:$A$30),10)=3,
IF((TEXT('2008 Errors'!$A$3:$A$30,"mmm yyyy")="Jan 2008")*
(ISNUMBER(FIND("(KT)",'2008 Errors'!I3:I30))),1)))

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"GD" wrote in message
...
I'm using the following to pull out the amount of cells in the range L3 -
L260 with the phrase 'GD (KT) in them, whithin the month of January.
=SUM(IF(MOD(ROW('2008 Errors'!$A$3:$A$3000),10)=3,IF((YEAR('2008
Errors'!$A$3:$A$3000)=2008)*(MONTH('2008 Errors'!$A$3:$A$3000)=1)*
(LEN('2008 Errors'!I3:I3000)-LEN(SUBSTITUTE('2008 Errors'!I3:I3000,"GD
(KT)",""))0),1)))
I'm looking for something broader, essentially i'd like to apply the same
principle but for all the cells in the range with the (KT) text occurance,
regarldess of the GD prefix (i.e the formula when applied to 4 cells with
the
following data "GD (KT)" "JK (KT)" "ZE (EL)" "AG (KT)" would provide a
result
of 3, drawing on the three cells with the (KT) in them. So essentially i'm
looking to relax the text criteria to a phrase as opposed to a set piece
of
text...
I'm looking for a version based on the above formula which can be editted
to
suit month, (by changing the MONTH criteria) and also just one for
counting
the text occurance of KT in the range of cells in general
Cheers




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Array formula based on text and dates..

GD,

I truncated your ranges for my test, maybe it is that. Try this

=SUM(IF(MOD(ROW('2008 Errors'!$A$3:$A$3000),10)=3,
IF((TEXT('2008 Errors'!$A$3:$A$3000,"mmm yyyy")="Jan 2008")*
(ISNUMBER(FIND("(KT)",'2008 Errors'!I3:I3000))),1)))


--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"GD" wrote in message
...
Hi Bob, thanks for the response - for some reason this produces a result
fo
three, but the range of cells I3-L3000 (in increments of 10) are populated
with at least 25 text arrangements with (KT) in them, any ideas?

"Bob Phillips" wrote:

=SUM(IF(MOD(ROW('2008 Errors'!$A$3:$A$30),10)=3,
IF((TEXT('2008 Errors'!$A$3:$A$30,"mmm yyyy")="Jan 2008")*
(ISNUMBER(FIND("(KT)",'2008 Errors'!I3:I30))),1)))

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"GD" wrote in message
...
I'm using the following to pull out the amount of cells in the range
L3 -
L260 with the phrase 'GD (KT) in them, whithin the month of January.
=SUM(IF(MOD(ROW('2008 Errors'!$A$3:$A$3000),10)=3,IF((YEAR('2008
Errors'!$A$3:$A$3000)=2008)*(MONTH('2008 Errors'!$A$3:$A$3000)=1)*
(LEN('2008 Errors'!I3:I3000)-LEN(SUBSTITUTE('2008 Errors'!I3:I3000,"GD
(KT)",""))0),1)))
I'm looking for something broader, essentially i'd like to apply the
same
principle but for all the cells in the range with the (KT) text
occurance,
regarldess of the GD prefix (i.e the formula when applied to 4 cells
with
the
following data "GD (KT)" "JK (KT)" "ZE (EL)" "AG (KT)" would provide a
result
of 3, drawing on the three cells with the (KT) in them. So essentially
i'm
looking to relax the text criteria to a phrase as opposed to a set
piece
of
text...
I'm looking for a version based on the above formula which can be
editted
to
suit month, (by changing the MONTH criteria) and also just one for
counting
the text occurance of KT in the range of cells in general
Cheers






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
return values from an array based on matching text value WFBJoeB Excel Worksheet Functions 10 May 14th 07 07:57 PM
Calculate true/false value based on array text input Christian[_2_] Excel Worksheet Functions 3 March 21st 07 09:28 PM
Formula/Array question with dates Renee Excel Worksheet Functions 1 November 24th 05 01:52 AM
return array result in cell based on comparing dates Ruthki Excel Worksheet Functions 7 June 30th 05 11:41 PM
Summing an array based on text condition RestlessAde Excel Discussion (Misc queries) 3 April 21st 05 05:44 PM


All times are GMT +1. The time now is 08:23 PM.

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"