.... keeping in mind that the variables that we are matching to Col A are
randomly dispersed or even omitted in Col B, Col C and Col D, and we are
counting consecutively left to right...
.... keeping in mind that the variables that we are matching to Col A are
randomly dispersed or even omitted in Col B, Col C and Col D, and we are
counting consecutively left to right...
Then I am confused where any of these numbers come form
ColA |ColB |ColC |ColD |ColE|ColG
Apples |Off |Coyotes |Apples |Off |2
Bannanas |Apples |Elephants|Bannanas|Off |1
Coyotes |Coyotes |Off |Off |Off |3
Elephants|Elephants|Off |Elephants|Off |4
Whys isn't it 1,1,1,1?
--
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
"SteveC" <SteveC@discussions.microsoft.com> wrote in message
news:9CA3C07B-AC85-4429-8B7D-86B4FF612BDC@microsoft.com...
> ... keeping in mind that the variables that we are matching to Col A are
> randomly dispersed or even omitted in Col B, Col C and Col D, and we are
> counting consecutively left to right...
ColA |ColB |ColC |ColD |ColE |ColG
Apples |Off |Coyotes |Apples |Off |2
Bannanas |Apples |Elephants |Bannanas |Off |1
Coyotes |Coyotes |Off |Off |Off |3
Elephants|Elephants|Off |Elephants |Off |4
Cell G2 looks for the number of consecutive times that anything in range
A2:E5 matches A2.
In other words:
ColA |ColB |ColC |ColD |ColE |ColG
Apples | | |Apples |Off |2
|Apples | | |Off
|
| | | |Off
|
| | | |Off
|
Cell G2 is referencing cell A2.
The Value "2" equals the number of consecutive times (left to right) that
"Apples" appears in range A2:E5.
In the case of "Apples" it's not 1, 1, 1, 1 but 1,1, , 1 and we get the
value "2"
thanks for your patience and help...
"Bob Phillips" wrote:
> Then I am confused where any of these numbers come form
>
> ColA |ColB |ColC |ColD |ColE|ColG
> Apples |Off |Coyotes |Apples |Off |2
> Bannanas |Apples |Elephants|Bannanas|Off |1
> Coyotes |Coyotes |Off |Off |Off |3
> Elephants|Elephants|Off |Elephants|Off |4
>
> Whys isn't it 1,1,1,1?
>
>
> --
> HTH
>
> Bob Phillips
Sorry, but I am still not getting this.
Are you saying that Apples should be two because column A contains an Apple,
as does column B (irrespective of the fact that they are in different rows)?
--
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
"SteveC" <SteveC@discussions.microsoft.com> wrote in message
news:2EE1BD5C-AAD3-4DF4-A290-29AF66E27A5E@microsoft.com...
> ColA |ColB |ColC |ColD |ColE |ColG
> Apples |Off |Coyotes |Apples |Off |2
> Bannanas |Apples |Elephants |Bannanas |Off |1
> Coyotes |Coyotes |Off |Off |Off |3
> Elephants|Elephants|Off |Elephants |Off |4
>
> Cell G2 looks for the number of consecutive times that anything in range
> A2:E5 matches A2.
>
> In other words:
> ColA |ColB |ColC |ColD |ColE |ColG
> Apples | | |Apples |Off
|2
> |Apples | | |Off
> |
> | | |
|Off
> |
> | | |
|Off
> |
>
> Cell G2 is referencing cell A2.
>
> The Value "2" equals the number of consecutive times (left to right) that
> "Apples" appears in range A2:E5.
>
> In the case of "Apples" it's not 1, 1, 1, 1 but 1,1, , 1 and we get the
> value "2"
>
> thanks for your patience and help...
>
>
>
> "Bob Phillips" wrote:
>
> > Then I am confused where any of these numbers come form
> >
> > ColA |ColB |ColC |ColD |ColE|ColG
> > Apples |Off |Coyotes |Apples |Off |2
> > Bannanas |Apples |Elephants|Bannanas|Off |1
> > Coyotes |Coyotes |Off |Off |Off |3
> > Elephants|Elephants|Off |Elephants|Off |4
> >
> > Whys isn't it 1,1,1,1?
> >
> >
> > --
> > HTH
> >
> > Bob Phillips
>
Thanks for trying to figure this out.
Forget everything I just said. Let's start begin this way:
Example 1:
Count the number of times A is in the series A1:E5. You should Count 5.
Col A Col B Col C Col D Col E
Row1 A A
Row2 A
Row3 A
Row4 A
Row5
Example 2:
Now Count the number of consecutive times A appears in the series, starting
from ColA and finishing at ColE. The key word is "consecutive." You should
could count 2. This is because there is no "A" in Col C. The formula should
stop counting everything after the break in the series.
Col A Col B Col C Col D Col E
Row1 A
Row2 A
Row3 A
Row4 A
Row5
My question is, what formula in G1 will count the consecutive number of "As"
in the series A1:E5. That is, what formula will return a value of 2.
Thanks for taking a look...
(this is easily solvable via a sorting macro or multiple vlookups in A1:E5,
but I wanted to see if it's possible in the way described above...)
I'm not sure this is what you're looking for, but try the following...
Insert > Name > Define
Name: BigNum
Refers to:
=9.99999999999999E+307
Click Ok
Then, try...
=LOOKUP(BigNum,CHOOSE({1,2},COLUMNS(A1:E5),MATCH(0,MMULT({1,1,1,1,1},--(A
1:E5="A")),0)-1))
In article <FCFF5521-C0EC-42C5-B883-1CEEB055D778@microsoft.com>,
SteveC <SteveC@discussions.microsoft.com> wrote:
> Thanks for trying to figure this out.
>
> Forget everything I just said. Let's start begin this way:
>
> Example 1:
> Count the number of times A is in the series A1:E5. You should Count 5.
>
> Col A Col B Col C Col D Col E
> Row1 A A
> Row2 A
> Row3 A
> Row4 A
> Row5
>
> Example 2:
> Now Count the number of consecutive times A appears in the series, starting
> from ColA and finishing at ColE. The key word is "consecutive." You should
> could count 2. This is because there is no "A" in Col C. The formula should
> stop counting everything after the break in the series.
>
> Col A Col B Col C Col D Col E
> Row1 A
> Row2 A
> Row3 A
> Row4 A
> Row5
>
> My question is, what formula in G1 will count the consecutive number of "As"
> in the series A1:E5. That is, what formula will return a value of 2.
>
> Thanks for taking a look...
>
> (this is easily solvable via a sorting macro or multiple vlookups in A1:E5,
> but I wanted to see if it's possible in the way described above...)
Make that...
=LOOKUP(BigNum,CHOOSE({1,2},COLUMNS(A1:E5),MATCH(0,MMULT(COLUMN(A1:E5)^0,
--(A1:E5="A")),0)-1))
In article <domenic22-024EAC.20280414062006@msnews.microsoft.com>,
Domenic <domenic22@sympatico.ca> wrote:
> I'm not sure this is what you're looking for, but try the following...
>
> Insert > Name > Define
>
> Name: BigNum
>
> Refers to:
>
> =9.99999999999999E+307
>
> Click Ok
>
> Then, try...
>
> =LOOKUP(BigNum,CHOOSE({1,2},COLUMNS(A1:E5),MATCH(0,MMULT({1,1,1,1,1},--(A
> 1:E5="A")),0)-1))
>
> In article <FCFF5521-C0EC-42C5-B883-1CEEB055D778@microsoft.com>,
> SteveC <SteveC@discussions.microsoft.com> wrote:
>
> > Thanks for trying to figure this out.
> >
> > Forget everything I just said. Let's start begin this way:
> >
> > Example 1:
> > Count the number of times A is in the series A1:E5. You should Count 5.
> >
> > Col A Col B Col C Col D Col E
> > Row1 A A
> > Row2 A
> > Row3 A
> > Row4 A
> > Row5
> >
> > Example 2:
> > Now Count the number of consecutive times A appears in the series, starting
> > from ColA and finishing at ColE. The key word is "consecutive." You
> > should
> > could count 2. This is because there is no "A" in Col C. The formula
> > should
> > stop counting everything after the break in the series.
> >
> > Col A Col B Col C Col D Col E
> > Row1 A
> > Row2 A
> > Row3 A
> > Row4 A
> > Row5
> >
> > My question is, what formula in G1 will count the consecutive number of
> > "As"
> > in the series A1:E5. That is, what formula will return a value of 2.
> >
> > Thanks for taking a look...
> >
> > (this is easily solvable via a sorting macro or multiple vlookups in A1:E5,
> > but I wanted to see if it's possible in the way described above...)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks