Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 155
Default Problem with IF statement

Hi, I hope someone may be able to help me.

I have the following formula which works fine, however the values in P5, R5,
T5, V5, X5, Z5, AB5 AND AD5 may contain text which is messing up my formula.
My reasoning behind needing to do this is calculating student marks over
several tasks, with different % weights and until the assessment task has
been set I have an IF formula based on the false being "-".

I have tried the =IF(ISNUMBER(P5),(P5*$O$3),0,IF(ISNUMBER(R5),(R5*$ Q$3),0,....
and getting all kinds of error messages, in cluding too many augments.

=((P5*$O$3)+(R5*$Q$3)+(T5*$S$3)+(V5*$U$3)+(X5*$W$3 )+(Z5*$Y$3)+(AB5*$AA$3)+(AD5*$AC$3))*0.01

I would appreciate any assistance here.

Thanks
Tanya
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Problem with IF statement

try:

=SUMPRODUCT(($O$3:$AC$3),(P5:AD5))*0.01

HTH

"Tanya" wrote:

Hi, I hope someone may be able to help me.

I have the following formula which works fine, however the values in P5, R5,
T5, V5, X5, Z5, AB5 AND AD5 may contain text which is messing up my formula.
My reasoning behind needing to do this is calculating student marks over
several tasks, with different % weights and until the assessment task has
been set I have an IF formula based on the false being "-".

I have tried the =IF(ISNUMBER(P5),(P5*$O$3),0,IF(ISNUMBER(R5),(R5*$ Q$3),0,....
and getting all kinds of error messages, in cluding too many augments.

=((P5*$O$3)+(R5*$Q$3)+(T5*$S$3)+(V5*$U$3)+(X5*$W$3 )+(Z5*$Y$3)+(AB5*$AA$3)+(AD5*$AC$3))*0.01

I would appreciate any assistance here.

Thanks
Tanya

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 155
Default Problem with IF statement

Thank you for responding so quickly to my delema.

Unfortunately this doesn't solve my problem. I'm not sure if perhaps I am
making this too complicated for myself. My sheet has multiple functions
happening all over the place. I will try to explain a little clearer.

O3 has a value=15% [this is the task weight for Task1]

Q3 has the task weight of =10% however Task2 has not been undertaken yet and
no mark awarded

P6 contains the result of Task 1 which has been converted to a number out of
100

R6 contains "-" because no mark has been awarded yet i.e. neither 0 or any
other number can be awarded yet.

In cell AE5 I need to multiply P6 by O3, [this gives me the correct weight
for the mark] then add next task IF ISNUMBER and finally multiple the result
by 0.01 to get a percentage out of 100.

I have only listed two tasks to simplify my problem, there are actually 8
tasks in total, same scenaria, requiring each task to be multipled by its
weight then finally multipled by 0.01

If you don't think this is possible and could recommend another way around
this I would appreciate you feedback.

Thanking you in advance

Tanya

"Toppers" wrote:

try:

=SUMPRODUCT(($O$3:$AC$3),(P5:AD5))*0.01

HTH

"Tanya" wrote:

Hi, I hope someone may be able to help me.

I have the following formula which works fine, however the values in P5, R5,
T5, V5, X5, Z5, AB5 AND AD5 may contain text which is messing up my formula.
My reasoning behind needing to do this is calculating student marks over
several tasks, with different % weights and until the assessment task has
been set I have an IF formula based on the false being "-".

I have tried the =IF(ISNUMBER(P5),(P5*$O$3),0,IF(ISNUMBER(R5),(R5*$ Q$3),0,....
and getting all kinds of error messages, in cluding too many augments.

=((P5*$O$3)+(R5*$Q$3)+(T5*$S$3)+(V5*$U$3)+(X5*$W$3 )+(Z5*$Y$3)+(AB5*$AA$3)+(AD5*$AC$3))*0.01

I would appreciate any assistance here.

Thanks
Tanya

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Problem with IF statement

See Ron's reply: same formula as my original.

"Tanya" wrote:

Thank you for responding so quickly to my delema.

Unfortunately this doesn't solve my problem. I'm not sure if perhaps I am
making this too complicated for myself. My sheet has multiple functions
happening all over the place. I will try to explain a little clearer.

O3 has a value=15% [this is the task weight for Task1]

Q3 has the task weight of =10% however Task2 has not been undertaken yet and
no mark awarded

P6 contains the result of Task 1 which has been converted to a number out of
100

R6 contains "-" because no mark has been awarded yet i.e. neither 0 or any
other number can be awarded yet.

In cell AE5 I need to multiply P6 by O3, [this gives me the correct weight
for the mark] then add next task IF ISNUMBER and finally multiple the result
by 0.01 to get a percentage out of 100.

I have only listed two tasks to simplify my problem, there are actually 8
tasks in total, same scenaria, requiring each task to be multipled by its
weight then finally multipled by 0.01

If you don't think this is possible and could recommend another way around
this I would appreciate you feedback.

Thanking you in advance

Tanya

"Toppers" wrote:

try:

=SUMPRODUCT(($O$3:$AC$3),(P5:AD5))*0.01

HTH

"Tanya" wrote:

Hi, I hope someone may be able to help me.

I have the following formula which works fine, however the values in P5, R5,
T5, V5, X5, Z5, AB5 AND AD5 may contain text which is messing up my formula.
My reasoning behind needing to do this is calculating student marks over
several tasks, with different % weights and until the assessment task has
been set I have an IF formula based on the false being "-".

I have tried the =IF(ISNUMBER(P5),(P5*$O$3),0,IF(ISNUMBER(R5),(R5*$ Q$3),0,....
and getting all kinds of error messages, in cluding too many augments.

=((P5*$O$3)+(R5*$Q$3)+(T5*$S$3)+(V5*$U$3)+(X5*$W$3 )+(Z5*$Y$3)+(AB5*$AA$3)+(AD5*$AC$3))*0.01

I would appreciate any assistance here.

Thanks
Tanya

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Problem with IF statement

On Sun, 1 Jul 2007 04:02:25 -0700, Tanya
wrote:

Hi, I hope someone may be able to help me.

I have the following formula which works fine, however the values in P5, R5,
T5, V5, X5, Z5, AB5 AND AD5 may contain text which is messing up my formula.
My reasoning behind needing to do this is calculating student marks over
several tasks, with different % weights and until the assessment task has
been set I have an IF formula based on the false being "-".

I have tried the =IF(ISNUMBER(P5),(P5*$O$3),0,IF(ISNUMBER(R5),(R5*$ Q$3),0,....
and getting all kinds of error messages, in cluding too many augments.

=((P5*$O$3)+(R5*$Q$3)+(T5*$S$3)+(V5*$U$3)+(X5*$W$ 3)+(Z5*$Y$3)+(AB5*$AA$3)+(AD5*$AC$3))*0.01

I would appreciate any assistance here.

Thanks
Tanya



I note that the data is in every other column, with row 5 offset by 1 column
from row 3.

SUMPRODUCT will ignore text. So if there is no numeric data in the intervening
columns, you could use this formula:

=SUMPRODUCT($O$3:$AC$3,P5:AD5)


--ron


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 155
Default Problem with IF statement

Thank you for your rseponse,

Unfortunately there are values in other columns on rows 3 and 5 that I need
to ignore

"Ron Rosenfeld" wrote:

On Sun, 1 Jul 2007 04:02:25 -0700, Tanya
wrote:

Hi, I hope someone may be able to help me.

I have the following formula which works fine, however the values in P5, R5,
T5, V5, X5, Z5, AB5 AND AD5 may contain text which is messing up my formula.
My reasoning behind needing to do this is calculating student marks over
several tasks, with different % weights and until the assessment task has
been set I have an IF formula based on the false being "-".

I have tried the =IF(ISNUMBER(P5),(P5*$O$3),0,IF(ISNUMBER(R5),(R5*$ Q$3),0,....
and getting all kinds of error messages, in cluding too many augments.

=((P5*$O$3)+(R5*$Q$3)+(T5*$S$3)+(V5*$U$3)+(X5*$W$ 3)+(Z5*$Y$3)+(AB5*$AA$3)+(AD5*$AC$3))*0.01

I would appreciate any assistance here.

Thanks
Tanya



I note that the data is in every other column, with row 5 offset by 1 column
from row 3.

SUMPRODUCT will ignore text. So if there is no numeric data in the intervening
columns, you could use this formula:

=SUMPRODUCT($O$3:$AC$3,P5:AD5)


--ron

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Problem with IF statement

Try:

=SUMPRODUCT(($O$3:$AC$3),--(MOD(COLUMN(P5:AD5),2)=0),(P5:AD5))*0.01

Or see my other posting.

"Tanya" wrote:

Thank you for your rseponse,

Unfortunately there are values in other columns on rows 3 and 5 that I need
to ignore

"Ron Rosenfeld" wrote:

On Sun, 1 Jul 2007 04:02:25 -0700, Tanya
wrote:

Hi, I hope someone may be able to help me.

I have the following formula which works fine, however the values in P5, R5,
T5, V5, X5, Z5, AB5 AND AD5 may contain text which is messing up my formula.
My reasoning behind needing to do this is calculating student marks over
several tasks, with different % weights and until the assessment task has
been set I have an IF formula based on the false being "-".

I have tried the =IF(ISNUMBER(P5),(P5*$O$3),0,IF(ISNUMBER(R5),(R5*$ Q$3),0,....
and getting all kinds of error messages, in cluding too many augments.

=((P5*$O$3)+(R5*$Q$3)+(T5*$S$3)+(V5*$U$3)+(X5*$W$ 3)+(Z5*$Y$3)+(AB5*$AA$3)+(AD5*$AC$3))*0.01

I would appreciate any assistance here.

Thanks
Tanya



I note that the data is in every other column, with row 5 offset by 1 column
from row 3.

SUMPRODUCT will ignore text. So if there is no numeric data in the intervening
columns, you could use this formula:

=SUMPRODUCT($O$3:$AC$3,P5:AD5)


--ron

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Problem with IF statement

Try this which takes alternative columns: columns with "-" are treated as
zero (as per your IF statement).

=SUMPRODUCT(--(MOD(COLUMN($O$3:$AC$3),2)=1),($O$3:$AC$3),--(MOD(COLUMN(P5:AD5),2)=0),(P5:AD5))*0.01

If cells Q5,S5 etc are blank or zero, the first formula would work.

In your original posting your cells were in row 5, but your second said row
6, with answer in AE5: very confusing!

Why did you say the first one didn't work?

"Tanya" wrote:

Hi, I hope someone may be able to help me.

I have the following formula which works fine, however the values in P5, R5,
T5, V5, X5, Z5, AB5 AND AD5 may contain text which is messing up my formula.
My reasoning behind needing to do this is calculating student marks over
several tasks, with different % weights and until the assessment task has
been set I have an IF formula based on the false being "-".

I have tried the =IF(ISNUMBER(P5),(P5*$O$3),0,IF(ISNUMBER(R5),(R5*$ Q$3),0,....
and getting all kinds of error messages, in cluding too many augments.

=((P5*$O$3)+(R5*$Q$3)+(T5*$S$3)+(V5*$U$3)+(X5*$W$3 )+(Z5*$Y$3)+(AB5*$AA$3)+(AD5*$AC$3))*0.01

I would appreciate any assistance here.

Thanks
Tanya

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 155
Default Problem with IF statement

Thank you very very much, it worked wonderfully.

I am going to study this formula tomorrow, as I haven't come across MOD or
the other variation.

I want you to know I really appreciate your patience in working this out for
me.

Kind Regards
Tanya

"Toppers" wrote:

Try this which takes alternative columns: columns with "-" are treated as
zero (as per your IF statement).

=SUMPRODUCT(--(MOD(COLUMN($O$3:$AC$3),2)=1),($O$3:$AC$3),--(MOD(COLUMN(P5:AD5),2)=0),(P5:AD5))*0.01

If cells Q5,S5 etc are blank or zero, the first formula would work.

In your original posting your cells were in row 5, but your second said row
6, with answer in AE5: very confusing!

Why did you say the first one didn't work?

"Tanya" wrote:

Hi, I hope someone may be able to help me.

I have the following formula which works fine, however the values in P5, R5,
T5, V5, X5, Z5, AB5 AND AD5 may contain text which is messing up my formula.
My reasoning behind needing to do this is calculating student marks over
several tasks, with different % weights and until the assessment task has
been set I have an IF formula based on the false being "-".

I have tried the =IF(ISNUMBER(P5),(P5*$O$3),0,IF(ISNUMBER(R5),(R5*$ Q$3),0,....
and getting all kinds of error messages, in cluding too many augments.

=((P5*$O$3)+(R5*$Q$3)+(T5*$S$3)+(V5*$U$3)+(X5*$W$3 )+(Z5*$Y$3)+(AB5*$AA$3)+(AD5*$AC$3))*0.01

I would appreciate any assistance here.

Thanks
Tanya

  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Problem with IF statement

Enjoy the rest of the weekend and thank you for the feedback.

"Tanya" wrote:

Thank you very very much, it worked wonderfully.

I am going to study this formula tomorrow, as I haven't come across MOD or
the other variation.

I want you to know I really appreciate your patience in working this out for
me.

Kind Regards
Tanya

"Toppers" wrote:

Try this which takes alternative columns: columns with "-" are treated as
zero (as per your IF statement).

=SUMPRODUCT(--(MOD(COLUMN($O$3:$AC$3),2)=1),($O$3:$AC$3),--(MOD(COLUMN(P5:AD5),2)=0),(P5:AD5))*0.01

If cells Q5,S5 etc are blank or zero, the first formula would work.

In your original posting your cells were in row 5, but your second said row
6, with answer in AE5: very confusing!

Why did you say the first one didn't work?

"Tanya" wrote:

Hi, I hope someone may be able to help me.

I have the following formula which works fine, however the values in P5, R5,
T5, V5, X5, Z5, AB5 AND AD5 may contain text which is messing up my formula.
My reasoning behind needing to do this is calculating student marks over
several tasks, with different % weights and until the assessment task has
been set I have an IF formula based on the false being "-".

I have tried the =IF(ISNUMBER(P5),(P5*$O$3),0,IF(ISNUMBER(R5),(R5*$ Q$3),0,....
and getting all kinds of error messages, in cluding too many augments.

=((P5*$O$3)+(R5*$Q$3)+(T5*$S$3)+(V5*$U$3)+(X5*$W$3 )+(Z5*$Y$3)+(AB5*$AA$3)+(AD5*$AC$3))*0.01

I would appreciate any assistance here.

Thanks
Tanya



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
IF STATEMENT PROBLEM Manjit Gosal Excel Worksheet Functions 4 November 10th 05 05:40 PM
IF Statement problem trixma New Users to Excel 3 September 27th 05 06:36 AM
If Statement Problem TB via OfficeKB.com Excel Worksheet Functions 2 June 29th 05 10:03 PM
IF statement problem simon Excel Worksheet Functions 1 December 30th 04 10:59 AM
I have an "IF"Statement problem...please help!! cmk0007 Excel Worksheet Functions 1 November 5th 04 01:24 AM


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