PC Review


Reply
Thread Tools Rate Thread

Array using 2 columns

 
 
Airchief
Guest
Posts: n/a
 
      26th May 2008
Help
Open this screen wide...

I know I can do this with aray. Can anyone help me??

My coulumns are 3-73

A B C D E F G
H I
Time Field Age Home vs Visitor Ref
Side1 Side 2
9:00 AM Field #4 U-19 Keydets vs Vulcan Elton Joe
Suzy
9:00 AM Field #3 U10 United vs Blasters Mark Alex
Ricky
9:00 AM Field #2 U12 Arsenal vs Eagles Clayton Jake
James
9:00 AM Field #1 U-19 Crew vs Earthquakes Elton Forrest Eric

In a separate cell I want to be able to Sum the number of time that Elton
was a Ref for age group U-19. i am trying to sum up each age group for a
particular Ref so i can pay him. This is my actual spreadsheet. Thank you


 
Reply With Quote
 
 
 
 
Per Jessen
Guest
Posts: n/a
 
      26th May 2008
On 26 Maj, 19:31, Airchief <Airch...@discussions.microsoft.com> wrote:
> Help
> Open this screen wide...
>
> *I know I can do this with aray. Can anyone help me??
>
> My coulumns are 3-73
>
> A * * * * * * * B * * * * * * C * * * D * * * * * E * * F * * * * * * * * *G
> * * * * *H * * * * * *I
> Time * * * * Field * * * * Age * Home * *vs * *Visitor * * * * * Ref * * *
> Side1 * * *Side 2
> 9:00 AM Field #4 * * * *U-19 Keydets *vs * * Vulcan * * * * Elton * * Joe * * * *
> Suzy
> 9:00 AM Field #3 * * * *U10 * United * vs * * Blasters ** * *Mark * * Alex * * * *
> Ricky
> 9:00 AM Field #2 * * * *U12 * Arsenal vs * * Eagles * * * * *Clayton *Jake * * *
> James
> 9:00 AM Field #1 * * * *U-19 *Crew * *vs * *Earthquakes Elton * *Forrest * * Eric
>
> In a separate cell I want to be able to Sum the number of time that Elton
> was a Ref for age group U-19. *i am trying to sum up each age group for a
> particular Ref so i can pay him. * This is my actual spreadsheet. Thank you



Hi

This should do it

=SUMPRODUCT((C3:C73="U-19")*1,(G3:G73="Elton")*1)

Regards,
Per
 
Reply With Quote
 
Airchief
Guest
Posts: n/a
 
      26th May 2008
I modified it a little and it worked GREAT!. Now I wanted to expanded the
second part to
=SUMPRODUCT((C6:C73="U-19")*1,(J6:K73="Elton S")*1) but it won't allow me to
do that. i get a #value error. Is it because i am trying to do 2 columns???
The J6:K73 is the error. can you help??



"Per Jessen" wrote:

> On 26 Maj, 19:31, Airchief <Airch...@discussions.microsoft.com> wrote:
> > Help
> > Open this screen wide...
> >
> > I know I can do this with aray. Can anyone help me??
> >
> > My coulumns are 3-73
> >
> > A B C D E F G
> > H I
> > Time Field Age Home vs Visitor Ref
> > Side1 Side 2
> > 9:00 AM Field #4 U-19 Keydets vs Vulcan Elton Joe
> > Suzy
> > 9:00 AM Field #3 U10 United vs Blasters Mark Alex
> > Ricky
> > 9:00 AM Field #2 U12 Arsenal vs Eagles Clayton Jake
> > James
> > 9:00 AM Field #1 U-19 Crew vs Earthquakes Elton Forrest Eric
> >
> > In a separate cell I want to be able to Sum the number of time that Elton
> > was a Ref for age group U-19. i am trying to sum up each age group for a
> > particular Ref so i can pay him. This is my actual spreadsheet. Thank you

>
>
> Hi
>
> This should do it
>
> =SUMPRODUCT((C3:C73="U-19")*1,(G3:G73="Elton")*1)
>
> Regards,
> Per
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      26th May 2008
I'm not sure what happens if J6 and K6 are both "Elton S" (and C6="U-19"), but
maybe one of these:

Counts it twice:
=SUMPRODUCT((C6:C73="U-19")*(J6:K73="Elton S"))

or

Counts it as one:
=SUMPRODUCT((C6:C73="U-19")*(((J6:J73="Elton S")+(K6:K73="Elton S"))>0))

Airchief wrote:
>
> I modified it a little and it worked GREAT!. Now I wanted to expanded the
> second part to
> =SUMPRODUCT((C6:C73="U-19")*1,(J6:K73="Elton S")*1) but it won't allow me to
> do that. i get a #value error. Is it because i am trying to do 2 columns???
> The J6:K73 is the error. can you help??
>
> "Per Jessen" wrote:
>
> > On 26 Maj, 19:31, Airchief <Airch...@discussions.microsoft.com> wrote:
> > > Help
> > > Open this screen wide...
> > >
> > > I know I can do this with aray. Can anyone help me??
> > >
> > > My coulumns are 3-73
> > >
> > > A B C D E F G
> > > H I
> > > Time Field Age Home vs Visitor Ref
> > > Side1 Side 2
> > > 9:00 AM Field #4 U-19 Keydets vs Vulcan Elton Joe
> > > Suzy
> > > 9:00 AM Field #3 U10 United vs Blasters Mark Alex
> > > Ricky
> > > 9:00 AM Field #2 U12 Arsenal vs Eagles Clayton Jake
> > > James
> > > 9:00 AM Field #1 U-19 Crew vs Earthquakes Elton Forrest Eric
> > >
> > > In a separate cell I want to be able to Sum the number of time that Elton
> > > was a Ref for age group U-19. i am trying to sum up each age group for a
> > > particular Ref so i can pay him. This is my actual spreadsheet. Thank you

> >
> >
> > Hi
> >
> > This should do it
> >
> > =SUMPRODUCT((C3:C73="U-19")*1,(G3:G73="Elton")*1)
> >
> > Regards,
> > Per
> >


--

Dave Peterson
 
Reply With Quote
 
Per Jessen
Guest
Posts: n/a
 
      26th May 2008
Hi

You can only use one column.

Try this instead:
=SUMPRODUCT((C6:C73="U-19")*1,(J6:J73="Elton
S")*1)+SUMPRODUCT((C6:C73="U-19")*1,(K6:K73="Elton S")*1)

Regards,
Per

On 26 Maj, 23:03, Airchief <Airch...@discussions.microsoft.com> wrote:
> I modified it a little and it worked GREAT!. Now I wanted to expanded the
> second part to
> =SUMPRODUCT((C6:C73="U-19")*1,(J6:K73="Elton S")*1) but it won't allow me to
> do that. i get a #value error. Is it because i am trying to do 2 columns??? *
> The J6:K73 is the error. can you help??
>
>
>
> "Per Jessen" wrote:
> > On 26 Maj, 19:31, Airchief <Airch...@discussions.microsoft.com> wrote:
> > > Help
> > > Open this screen wide...

>
> > > *I know I can do this with aray. Can anyone help me??

>
> > > My coulumns are 3-73

>
> > > A * * * * * * * B * * * * * * C * * * D * * * * * E * * F * * * * * * * * *G
> > > * * * * *H * * * * * *I
> > > Time * * * * Field * * * * Age * Home * *vs * *Visitor * * * * * Ref * * *
> > > Side1 * * *Side 2
> > > 9:00 AM Field #4 * * * *U-19 Keydets *vs * * Vulcan * * * * Elton * * Joe * * * *
> > > Suzy
> > > 9:00 AM Field #3 * * * *U10 * United * vs * * Blasters* * * *Mark * * Alex * * * *
> > > Ricky
> > > 9:00 AM Field #2 * * * *U12 * Arsenal vs * * Eagles * * * * *Clayton *Jake * * *
> > > James
> > > 9:00 AM Field #1 * * * *U-19 *Crew * *vs * *Earthquakes Elton * *Forrest * * Eric

>
> > > In a separate cell I want to be able to Sum the number of time that Elton
> > > was a Ref for age group U-19. *i am trying to sum up each age group for a
> > > particular Ref so i can pay him. * This is my actual spreadsheet. Thank you

>
> > Hi

>
> > This should do it

>
> > =SUMPRODUCT((C3:C73="U-19")*1,(G3:G73="Elton")*1)

>
> > Regards,
> > Per- Skjul tekst i anførselstegn -

>
> - Vis tekst i anførselstegn -


 
Reply With Quote
 
Airchief
Guest
Posts: n/a
 
      27th May 2008
Per
I got the same #value erros mess. I tried several thing but same erro.


"Per Jessen" wrote:

> Hi
>
> You can only use one column.
>
> Try this instead:
> =SUMPRODUCT((C6:C73="U-19")*1,(J6:J73="Elton
> S")*1)+SUMPRODUCT((C6:C73="U-19")*1,(K6:K73="Elton S")*1)
>
> Regards,
> Per
>
> On 26 Maj, 23:03, Airchief <Airch...@discussions.microsoft.com> wrote:
> > I modified it a little and it worked GREAT!. Now I wanted to expanded the
> > second part to
> > =SUMPRODUCT((C6:C73="U-19")*1,(J6:K73="Elton S")*1) but it won't allow me to
> > do that. i get a #value error. Is it because i am trying to do 2 columns???
> > The J6:K73 is the error. can you help??
> >
> >
> >
> > "Per Jessen" wrote:
> > > On 26 Maj, 19:31, Airchief <Airch...@discussions.microsoft.com> wrote:
> > > > Help
> > > > Open this screen wide...

> >
> > > > I know I can do this with aray. Can anyone help me??

> >
> > > > My coulumns are 3-73

> >
> > > > A B C D E F G
> > > > H I
> > > > Time Field Age Home vs Visitor Ref
> > > > Side1 Side 2
> > > > 9:00 AM Field #4 U-19 Keydets vs Vulcan Elton Joe
> > > > Suzy
> > > > 9:00 AM Field #3 U10 United vs Blasters Mark Alex
> > > > Ricky
> > > > 9:00 AM Field #2 U12 Arsenal vs Eagles Clayton Jake
> > > > James
> > > > 9:00 AM Field #1 U-19 Crew vs Earthquakes Elton Forrest Eric

> >
> > > > In a separate cell I want to be able to Sum the number of time that Elton
> > > > was a Ref for age group U-19. i am trying to sum up each age group for a
> > > > particular Ref so i can pay him. This is my actual spreadsheet. Thank you

> >
> > > Hi

> >
> > > This should do it

> >
> > > =SUMPRODUCT((C3:C73="U-19")*1,(G3:G73="Elton")*1)

> >
> > > Regards,
> > > Per- Skjul tekst i anførselstegn -

> >
> > - Vis tekst i anførselstegn -

>
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      27th May 2008
Do you have any errors in those ranges?

Airchief wrote:
>
> Per
> I got the same #value erros mess. I tried several thing but same erro.
>
> "Per Jessen" wrote:
>
> > Hi
> >
> > You can only use one column.
> >
> > Try this instead:
> > =SUMPRODUCT((C6:C73="U-19")*1,(J6:J73="Elton
> > S")*1)+SUMPRODUCT((C6:C73="U-19")*1,(K6:K73="Elton S")*1)
> >
> > Regards,
> > Per
> >
> > On 26 Maj, 23:03, Airchief <Airch...@discussions.microsoft.com> wrote:
> > > I modified it a little and it worked GREAT!. Now I wanted to expanded the
> > > second part to
> > > =SUMPRODUCT((C6:C73="U-19")*1,(J6:K73="Elton S")*1) but it won't allow me to
> > > do that. i get a #value error. Is it because i am trying to do 2 columns???
> > > The J6:K73 is the error. can you help??
> > >
> > >
> > >
> > > "Per Jessen" wrote:
> > > > On 26 Maj, 19:31, Airchief <Airch...@discussions.microsoft.com> wrote:
> > > > > Help
> > > > > Open this screen wide...
> > >
> > > > > I know I can do this with aray. Can anyone help me??
> > >
> > > > > My coulumns are 3-73
> > >
> > > > > A B C D E F G
> > > > > H I
> > > > > Time Field Age Home vs Visitor Ref
> > > > > Side1 Side 2
> > > > > 9:00 AM Field #4 U-19 Keydets vs Vulcan Elton Joe
> > > > > Suzy
> > > > > 9:00 AM Field #3 U10 United vs Blasters Mark Alex
> > > > > Ricky
> > > > > 9:00 AM Field #2 U12 Arsenal vs Eagles Clayton Jake
> > > > > James
> > > > > 9:00 AM Field #1 U-19 Crew vs Earthquakes Elton Forrest Eric
> > >
> > > > > In a separate cell I want to be able to Sum the number of time that Elton
> > > > > was a Ref for age group U-19. i am trying to sum up each age group for a
> > > > > particular Ref so i can pay him. This is my actual spreadsheet. Thank you
> > >
> > > > Hi
> > >
> > > > This should do it
> > >
> > > > =SUMPRODUCT((C3:C73="U-19")*1,(G3:G73="Elton")*1)
> > >
> > > > Regards,
> > > > Per- Skjul tekst i anførselstegn -
> > >
> > > - Vis tekst i anførselstegn -

> >
> >


--

Dave Peterson
 
Reply With Quote
 
Airchief
Guest
Posts: n/a
 
      27th May 2008
Dave,
I use this formula you gave me and seems to work..

=SUMPRODUCT((C6:C73="U-19")*1,(J6:J73="Elton
S")*1)+SUMPRODUCT((C6:C73="U-19")*1,(K6:K73="Elton S")*1)

"Dave Peterson" wrote:

> Do you have any errors in those ranges?
>
> Airchief wrote:
> >
> > Per
> > I got the same #value erros mess. I tried several thing but same erro.
> >
> > "Per Jessen" wrote:
> >
> > > Hi
> > >
> > > You can only use one column.
> > >
> > > Try this instead:
> > > =SUMPRODUCT((C6:C73="U-19")*1,(J6:J73="Elton
> > > S")*1)+SUMPRODUCT((C6:C73="U-19")*1,(K6:K73="Elton S")*1)
> > >
> > > Regards,
> > > Per
> > >
> > > On 26 Maj, 23:03, Airchief <Airch...@discussions.microsoft.com> wrote:
> > > > I modified it a little and it worked GREAT!. Now I wanted to expanded the
> > > > second part to
> > > > =SUMPRODUCT((C6:C73="U-19")*1,(J6:K73="Elton S")*1) but it won't allow me to
> > > > do that. i get a #value error. Is it because i am trying to do 2 columns???
> > > > The J6:K73 is the error. can you help??
> > > >
> > > >
> > > >
> > > > "Per Jessen" wrote:
> > > > > On 26 Maj, 19:31, Airchief <Airch...@discussions.microsoft.com> wrote:
> > > > > > Help
> > > > > > Open this screen wide...
> > > >
> > > > > > I know I can do this with aray. Can anyone help me??
> > > >
> > > > > > My coulumns are 3-73
> > > >
> > > > > > A B C D E F G
> > > > > > H I
> > > > > > Time Field Age Home vs Visitor Ref
> > > > > > Side1 Side 2
> > > > > > 9:00 AM Field #4 U-19 Keydets vs Vulcan Elton Joe
> > > > > > Suzy
> > > > > > 9:00 AM Field #3 U10 United vs Blasters Mark Alex
> > > > > > Ricky
> > > > > > 9:00 AM Field #2 U12 Arsenal vs Eagles Clayton Jake
> > > > > > James
> > > > > > 9:00 AM Field #1 U-19 Crew vs Earthquakes Elton Forrest Eric
> > > >
> > > > > > In a separate cell I want to be able to Sum the number of time that Elton
> > > > > > was a Ref for age group U-19. i am trying to sum up each age group for a
> > > > > > particular Ref so i can pay him. This is my actual spreadsheet. Thank you
> > > >
> > > > > Hi
> > > >
> > > > > This should do it
> > > >
> > > > > =SUMPRODUCT((C3:C73="U-19")*1,(G3:G73="Elton")*1)
> > > >
> > > > > Regards,
> > > > > Per- Skjul tekst i anførselstegn -
> > > >
> > > > - Vis tekst i anførselstegn -
> > >
> > >

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      27th May 2008
That wasn't the formula I suggested.

Both the suggestions that I made worked ok for me.

Airchief wrote:
>
> Dave,
> I use this formula you gave me and seems to work..
>
> =SUMPRODUCT((C6:C73="U-19")*1,(J6:J73="Elton
> S")*1)+SUMPRODUCT((C6:C73="U-19")*1,(K6:K73="Elton S")*1)
>
> "Dave Peterson" wrote:
>
> > Do you have any errors in those ranges?
> >
> > Airchief wrote:
> > >
> > > Per
> > > I got the same #value erros mess. I tried several thing but same erro.
> > >
> > > "Per Jessen" wrote:
> > >
> > > > Hi
> > > >
> > > > You can only use one column.
> > > >
> > > > Try this instead:
> > > > =SUMPRODUCT((C6:C73="U-19")*1,(J6:J73="Elton
> > > > S")*1)+SUMPRODUCT((C6:C73="U-19")*1,(K6:K73="Elton S")*1)
> > > >
> > > > Regards,
> > > > Per
> > > >
> > > > On 26 Maj, 23:03, Airchief <Airch...@discussions.microsoft.com> wrote:
> > > > > I modified it a little and it worked GREAT!. Now I wanted to expanded the
> > > > > second part to
> > > > > =SUMPRODUCT((C6:C73="U-19")*1,(J6:K73="Elton S")*1) but it won't allow me to
> > > > > do that. i get a #value error. Is it because i am trying to do 2 columns???
> > > > > The J6:K73 is the error. can you help??
> > > > >
> > > > >
> > > > >
> > > > > "Per Jessen" wrote:
> > > > > > On 26 Maj, 19:31, Airchief <Airch...@discussions.microsoft.com> wrote:
> > > > > > > Help
> > > > > > > Open this screen wide...
> > > > >
> > > > > > > I know I can do this with aray. Can anyone help me??
> > > > >
> > > > > > > My coulumns are 3-73
> > > > >
> > > > > > > A B C D E F G
> > > > > > > H I
> > > > > > > Time Field Age Home vs Visitor Ref
> > > > > > > Side1 Side 2
> > > > > > > 9:00 AM Field #4 U-19 Keydets vs Vulcan Elton Joe
> > > > > > > Suzy
> > > > > > > 9:00 AM Field #3 U10 United vs Blasters Mark Alex
> > > > > > > Ricky
> > > > > > > 9:00 AM Field #2 U12 Arsenal vs Eagles Clayton Jake
> > > > > > > James
> > > > > > > 9:00 AM Field #1 U-19 Crew vs Earthquakes Elton Forrest Eric
> > > > >
> > > > > > > In a separate cell I want to be able to Sum the number of time that Elton
> > > > > > > was a Ref for age group U-19. i am trying to sum up each age group for a
> > > > > > > particular Ref so i can pay him. This is my actual spreadsheet. Thank you
> > > > >
> > > > > > Hi
> > > > >
> > > > > > This should do it
> > > > >
> > > > > > =SUMPRODUCT((C3:C73="U-19")*1,(G3:G73="Elton")*1)
> > > > >
> > > > > > Regards,
> > > > > > Per- Skjul tekst i anførselstegn -
> > > > >
> > > > > - Vis tekst i anførselstegn -
> > > >
> > > >

> >
> > --
> >
> > Dave Peterson
> >


--

Dave Peterson
 
Reply With Quote
 
Airchief
Guest
Posts: n/a
 
      27th May 2008
All I can say is MANY THANK YOUs. I have tried all week to get it to work and
you gave me the formula to make it work. I thank you so MUCH!!!


"Dave Peterson" wrote:

> That wasn't the formula I suggested.
>
> Both the suggestions that I made worked ok for me.
>
> Airchief wrote:
> >
> > Dave,
> > I use this formula you gave me and seems to work..
> >
> > =SUMPRODUCT((C6:C73="U-19")*1,(J6:J73="Elton
> > S")*1)+SUMPRODUCT((C6:C73="U-19")*1,(K6:K73="Elton S")*1)
> >
> > "Dave Peterson" wrote:
> >
> > > Do you have any errors in those ranges?
> > >
> > > Airchief wrote:
> > > >
> > > > Per
> > > > I got the same #value erros mess. I tried several thing but same erro.
> > > >
> > > > "Per Jessen" wrote:
> > > >
> > > > > Hi
> > > > >
> > > > > You can only use one column.
> > > > >
> > > > > Try this instead:
> > > > > =SUMPRODUCT((C6:C73="U-19")*1,(J6:J73="Elton
> > > > > S")*1)+SUMPRODUCT((C6:C73="U-19")*1,(K6:K73="Elton S")*1)
> > > > >
> > > > > Regards,
> > > > > Per
> > > > >
> > > > > On 26 Maj, 23:03, Airchief <Airch...@discussions.microsoft.com> wrote:
> > > > > > I modified it a little and it worked GREAT!. Now I wanted to expanded the
> > > > > > second part to
> > > > > > =SUMPRODUCT((C6:C73="U-19")*1,(J6:K73="Elton S")*1) but it won't allow me to
> > > > > > do that. i get a #value error. Is it because i am trying to do 2 columns???
> > > > > > The J6:K73 is the error. can you help??
> > > > > >
> > > > > >
> > > > > >
> > > > > > "Per Jessen" wrote:
> > > > > > > On 26 Maj, 19:31, Airchief <Airch...@discussions.microsoft.com> wrote:
> > > > > > > > Help
> > > > > > > > Open this screen wide...
> > > > > >
> > > > > > > > I know I can do this with aray. Can anyone help me??
> > > > > >
> > > > > > > > My coulumns are 3-73
> > > > > >
> > > > > > > > A B C D E F G
> > > > > > > > H I
> > > > > > > > Time Field Age Home vs Visitor Ref
> > > > > > > > Side1 Side 2
> > > > > > > > 9:00 AM Field #4 U-19 Keydets vs Vulcan Elton Joe
> > > > > > > > Suzy
> > > > > > > > 9:00 AM Field #3 U10 United vs Blasters Mark Alex
> > > > > > > > Ricky
> > > > > > > > 9:00 AM Field #2 U12 Arsenal vs Eagles Clayton Jake
> > > > > > > > James
> > > > > > > > 9:00 AM Field #1 U-19 Crew vs Earthquakes Elton Forrest Eric
> > > > > >
> > > > > > > > In a separate cell I want to be able to Sum the number of time that Elton
> > > > > > > > was a Ref for age group U-19. i am trying to sum up each age group for a
> > > > > > > > particular Ref so i can pay him. This is my actual spreadsheet. Thank you
> > > > > >
> > > > > > > Hi
> > > > > >
> > > > > > > This should do it
> > > > > >
> > > > > > > =SUMPRODUCT((C3:C73="U-19")*1,(G3:G73="Elton")*1)
> > > > > >
> > > > > > > Regards,
> > > > > > > Per- Skjul tekst i anførselstegn -
> > > > > >
> > > > > > - Vis tekst i anførselstegn -
> > > > >
> > > > >
> > >
> > > --
> > >
> > > Dave Peterson
> > >

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Array to copy columns Don Guillett Microsoft Excel Programming 0 7th May 2010 04:24 PM
Which column in an array of columns DK Microsoft Excel Worksheet Functions 2 24th Mar 2009 02:24 PM
Access columns into a VB array? hellboy_ga Microsoft Access VBA Modules 1 12th Jan 2006 04:50 PM
Columns Selected Array =?Utf-8?B?U3RldmVuIE0uIEJyaXR0b24=?= Microsoft Excel Programming 0 14th Jun 2005 10:21 PM
# of columns / rows in array John Spiegel Microsoft Dot NET 1 7th Apr 2005 02:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:40 PM.