Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default sumproduct and if statement

I have the following formula that is not working as I would like it to.

=IF($V9:$V90=A28,SUMPRODUCT($AA$9:$AA$90,AG9:AG90) )

I have three columns of data:

col. V has type of shot (shot1, shot 2, shot 3 etc.)

col. AA has number of shots per type (4, 5,2 etc)

col. AG has number of days each type of shot should take to finish (3, 5, 19
etc)

I would like to enter the shot type name into cell A28 and retireve hte
total number of days that the shot type requires. Pls note that a shot type
can appear in the col V more than once.

any ideas?

e

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default sumproduct and if statement

I don't understand the significance of (say) Shot 3 appearing more than once
in Col V. Are you saying the numbers associated with it in AA & AG. If so
then this formula may not be what you require because it finds the first
instance of what is in A28. having said that try:-

=VLOOKUP(A28,V1:AA20,6,FALSE)&" Shots "&VLOOKUP(A28,V1:AG20,12,FALSE)&" Days"

Mike

"ellebelle" wrote:

I have the following formula that is not working as I would like it to.

=IF($V9:$V90=A28,SUMPRODUCT($AA$9:$AA$90,AG9:AG90) )

I have three columns of data:

col. V has type of shot (shot1, shot 2, shot 3 etc.)

col. AA has number of shots per type (4, 5,2 etc)

col. AG has number of days each type of shot should take to finish (3, 5, 19
etc)

I would like to enter the shot type name into cell A28 and retireve hte
total number of days that the shot type requires. Pls note that a shot type
can appear in the col V more than once.

any ideas?

e

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,365
Default sumproduct and if statement

I think what you are looking for is this:
=SUMPRODUCT(--($V$9:$V$90=$A$28),$AA$9:$AA$90,$AG$9:$AG$90)


"ellebelle" wrote:

I have the following formula that is not working as I would like it to.

=IF($V9:$V90=A28,SUMPRODUCT($AA$9:$AA$90,AG9:AG90) )

I have three columns of data:

col. V has type of shot (shot1, shot 2, shot 3 etc.)

col. AA has number of shots per type (4, 5,2 etc)

col. AG has number of days each type of shot should take to finish (3, 5, 19
etc)

I would like to enter the shot type name into cell A28 and retireve hte
total number of days that the shot type requires. Pls note that a shot type
can appear in the col V more than once.

any ideas?

e

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default sumproduct and if statement

Try:

=SUMPRODUCT(--($V9:$V90=A28),$AA$9:$AA$90,AG9:AG90))

"ellebelle" wrote:

I have the following formula that is not working as I would like it to.

=IF($V9:$V90=A28,SUMPRODUCT($AA$9:$AA$90,AG9:AG90) )

I have three columns of data:

col. V has type of shot (shot1, shot 2, shot 3 etc.)

col. AA has number of shots per type (4, 5,2 etc)

col. AG has number of days each type of shot should take to finish (3, 5, 19
etc)

I would like to enter the shot type name into cell A28 and retireve hte
total number of days that the shot type requires. Pls note that a shot type
can appear in the col V more than once.

any ideas?

e

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default sumproduct and if statement

sorry i should have given more info.

if cell A28 equals a cell in col V then multiply the corresponding cell in
col AA by col AG

does that make sense.

the shot type may appear more than once as it is broken into different
sections of a very big job.

"JLatham" wrote:

I think what you are looking for is this:
=SUMPRODUCT(--($V$9:$V$90=$A$28),$AA$9:$AA$90,$AG$9:$AG$90)


"ellebelle" wrote:

I have the following formula that is not working as I would like it to.

=IF($V9:$V90=A28,SUMPRODUCT($AA$9:$AA$90,AG9:AG90) )

I have three columns of data:

col. V has type of shot (shot1, shot 2, shot 3 etc.)

col. AA has number of shots per type (4, 5,2 etc)

col. AG has number of days each type of shot should take to finish (3, 5, 19
etc)

I would like to enter the shot type name into cell A28 and retireve hte
total number of days that the shot type requires. Pls note that a shot type
can appear in the col V more than once.

any ideas?

e



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default sumproduct and if statement

sorry i should have explained better.

if cell A28 equals a cell in col. V then mulitply the corresponding cell in
col. AA by the corresponding cell in col AG.

does that make sense?

the reason that shot type appears in the list more than once is that each
type of shot appears in different sections of a very big job.

ellebelle

"Toppers" wrote:

Try:

=SUMPRODUCT(--($V9:$V90=A28),$AA$9:$AA$90,AG9:AG90))

"ellebelle" wrote:

I have the following formula that is not working as I would like it to.

=IF($V9:$V90=A28,SUMPRODUCT($AA$9:$AA$90,AG9:AG90) )

I have three columns of data:

col. V has type of shot (shot1, shot 2, shot 3 etc.)

col. AA has number of shots per type (4, 5,2 etc)

col. AG has number of days each type of shot should take to finish (3, 5, 19
etc)

I would like to enter the shot type name into cell A28 and retireve hte
total number of days that the shot type requires. Pls note that a shot type
can appear in the col V more than once.

any ideas?

e

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default sumproduct and if statement

did you try the formula? .... because that's this does ...

=SUMPRODUCT(--($V9:$V90=A28),$AA$9:$AA$90,AG9:AG90)

"ellebelle" wrote:

sorry i should have explained better.

if cell A28 equals a cell in col. V then mulitply the corresponding cell in
col. AA by the corresponding cell in col AG.

does that make sense?

the reason that shot type appears in the list more than once is that each
type of shot appears in different sections of a very big job.

ellebelle

"Toppers" wrote:

Try:

=SUMPRODUCT(--($V9:$V90=A28),$AA$9:$AA$90,AG9:AG90)

"ellebelle" wrote:

I have the following formula that is not working as I would like it to.

=IF($V9:$V90=A28,SUMPRODUCT($AA$9:$AA$90,AG9:AG90) )

I have three columns of data:

col. V has type of shot (shot1, shot 2, shot 3 etc.)

col. AA has number of shots per type (4, 5,2 etc)

col. AG has number of days each type of shot should take to finish (3, 5, 19
etc)

I would like to enter the shot type name into cell A28 and retireve hte
total number of days that the shot type requires. Pls note that a shot type
can appear in the col V more than once.

any ideas?

e

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,365
Default sumproduct and if statement

That is exactly what the formula that both Toppers and I have provided does.

The --($V$9:$V$90)=$A$28 portion will end up returning either 0 (does not
match) or 1 (does match) for each row from 9 to 90, and will do the multiply
AA# by AG# at each row - but when V#<A28, the result of that is zero, so
AA#*AG#*0 = 0.

Try it, you'll like it!

"ellebelle" wrote:

sorry i should have given more info.

if cell A28 equals a cell in col V then multiply the corresponding cell in
col AA by col AG

does that make sense.

the shot type may appear more than once as it is broken into different
sections of a very big job.

"JLatham" wrote:

I think what you are looking for is this:
=SUMPRODUCT(--($V$9:$V$90=$A$28),$AA$9:$AA$90,$AG$9:$AG$90)


"ellebelle" wrote:

I have the following formula that is not working as I would like it to.

=IF($V9:$V90=A28,SUMPRODUCT($AA$9:$AA$90,AG9:AG90) )

I have three columns of data:

col. V has type of shot (shot1, shot 2, shot 3 etc.)

col. AA has number of shots per type (4, 5,2 etc)

col. AG has number of days each type of shot should take to finish (3, 5, 19
etc)

I would like to enter the shot type name into cell A28 and retireve hte
total number of days that the shot type requires. Pls note that a shot type
can appear in the col V more than once.

any ideas?

e

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default sumproduct and if statement

this worked perfectly - thanks!

"Toppers" wrote:

did you try the formula? .... because that's this does ...

=SUMPRODUCT(--($V9:$V90=A28),$AA$9:$AA$90,AG9:AG90)

"ellebelle" wrote:

sorry i should have explained better.

if cell A28 equals a cell in col. V then mulitply the corresponding cell in
col. AA by the corresponding cell in col AG.

does that make sense?

the reason that shot type appears in the list more than once is that each
type of shot appears in different sections of a very big job.

ellebelle

"Toppers" wrote:

Try:

=SUMPRODUCT(--($V9:$V90=A28),$AA$9:$AA$90,AG9:AG90)

"ellebelle" wrote:

I have the following formula that is not working as I would like it to.

=IF($V9:$V90=A28,SUMPRODUCT($AA$9:$AA$90,AG9:AG90) )

I have three columns of data:

col. V has type of shot (shot1, shot 2, shot 3 etc.)

col. AA has number of shots per type (4, 5,2 etc)

col. AG has number of days each type of shot should take to finish (3, 5, 19
etc)

I would like to enter the shot type name into cell A28 and retireve hte
total number of days that the shot type requires. Pls note that a shot type
can appear in the col V more than once.

any ideas?

e

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
SUMPRODUCT problem, using OR within statement ALEX Excel Worksheet Functions 2 January 30th 07 06:32 PM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM
Multiple if criteria in one statement (if/sumproduct) thekovinc Excel Discussion (Misc queries) 3 February 17th 06 08:22 PM
sumproduct formula too long, & how to use make an 'OR' statement w creativeops Excel Worksheet Functions 11 January 24th 06 05:05 PM
If statement and Isblank statement Rodney C. Excel Worksheet Functions 0 January 18th 05 08:39 PM


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