Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Nested IF Function problem for Excel 2003

I have to calculate test scores that include rewrites, but I don't want to
average in a column that's not supposed to be part of the calculation until
there's an amount filled in. I started with the following with only two
columns (N & H) being rewrite columns:

=IF(Z60,AVERAGE(Z6,W6,T6,Q6,IF(N60,N6,K6),IF(H6 0,H6,E6)),IF(W60,AVERAGE(W6,T6,Q6,IF(N60,N6,K6), IF(H60,H6,E6)),IF(T60,AVERAGE(T6,Q6,IF(N60,N6,K 6),IF(H60,H6,E6)),IF(Q60,AVERAGE(Q6,IF(N60,N6,K 6),IF(H60,H6,E6)),IF(N60,AVERAGE(N6,IF(H60,H6,E 6)),IF(K60,AVERAGE(K6,IF(H60,H6,E6)),IF(H60,H6, IF(E60,E6,0))))))))

Column E is test 1
Column H is rewrite for test 1
Column K is test 2
Column N is Test 2 rewrite
Column T, Q, W, and Z are test 3, 4, 5, and 6

I have two problems with the above:

For whatever reason, column K is not being calculated at all. I've tried
many different scenarios and it still won't calculate once I add anything
before it (N, T, etc).

Problem 2: Now I have to add rewrite columns for T and Q but I don't need
test 6 anymore.

My question is can you help me with the above formula or should I use a
different formula completely?

Thank you in advance for your expertise. I can provide a copy of the sheet
if necessary.
Lynn
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Nested IF Function problem for Excel 2003

You need to take advantage of the fact the =AVERAGE() ignores blanks, but
includes 0's as real values. Say we use two "helper" columns col AA and col
AB

In AA6 enter:
=IF(E6 & H6="","",IF(H6<"",H6,E6))

In AB6 enter:
=IF(K6 & N6="","",IF(N6<"",N6,K6))

What the AA formula is really saying is that if E & H are both blank, then
show blank.

If H is not blank that show the H value, otherwise show the E value.

Then the final average should be:

=AVERAGE(T6,Q6,W6,Z6,AA6,AB6)

Use the same approach for all additional rewrite columns
--
Gary''s Student - gsnu200909


"LJNagora" wrote:

I have to calculate test scores that include rewrites, but I don't want to
average in a column that's not supposed to be part of the calculation until
there's an amount filled in. I started with the following with only two
columns (N & H) being rewrite columns:

=IF(Z60,AVERAGE(Z6,W6,T6,Q6,IF(N60,N6,K6),IF(H6 0,H6,E6)),IF(W60,AVERAGE(W6,T6,Q6,IF(N60,N6,K6), IF(H60,H6,E6)),IF(T60,AVERAGE(T6,Q6,IF(N60,N6,K 6),IF(H60,H6,E6)),IF(Q60,AVERAGE(Q6,IF(N60,N6,K 6),IF(H60,H6,E6)),IF(N60,AVERAGE(N6,IF(H60,H6,E 6)),IF(K60,AVERAGE(K6,IF(H60,H6,E6)),IF(H60,H6, IF(E60,E6,0))))))))

Column E is test 1
Column H is rewrite for test 1
Column K is test 2
Column N is Test 2 rewrite
Column T, Q, W, and Z are test 3, 4, 5, and 6

I have two problems with the above:

For whatever reason, column K is not being calculated at all. I've tried
many different scenarios and it still won't calculate once I add anything
before it (N, T, etc).

Problem 2: Now I have to add rewrite columns for T and Q but I don't need
test 6 anymore.

My question is can you help me with the above formula or should I use a
different formula completely?

Thank you in advance for your expertise. I can provide a copy of the sheet
if necessary.
Lynn

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Nested IF Function problem for Excel 2003

Thanks Gary ... that helped ... one more problem ....

I now need to find the average score in the column that contains the
averages for each row. I know you can't average an average, so how can I get
the average score?

Thanks again,
Lynn


"Gary''s Student" wrote:

You need to take advantage of the fact the =AVERAGE() ignores blanks, but
includes 0's as real values. Say we use two "helper" columns col AA and col
AB

In AA6 enter:
=IF(E6 & H6="","",IF(H6<"",H6,E6))

In AB6 enter:
=IF(K6 & N6="","",IF(N6<"",N6,K6))

What the AA formula is really saying is that if E & H are both blank, then
show blank.

If H is not blank that show the H value, otherwise show the E value.

Then the final average should be:

=AVERAGE(T6,Q6,W6,Z6,AA6,AB6)

Use the same approach for all additional rewrite columns
--
Gary''s Student - gsnu200909


"LJNagora" wrote:

I have to calculate test scores that include rewrites, but I don't want to
average in a column that's not supposed to be part of the calculation until
there's an amount filled in. I started with the following with only two
columns (N & H) being rewrite columns:

=IF(Z60,AVERAGE(Z6,W6,T6,Q6,IF(N60,N6,K6),IF(H6 0,H6,E6)),IF(W60,AVERAGE(W6,T6,Q6,IF(N60,N6,K6), IF(H60,H6,E6)),IF(T60,AVERAGE(T6,Q6,IF(N60,N6,K 6),IF(H60,H6,E6)),IF(Q60,AVERAGE(Q6,IF(N60,N6,K 6),IF(H60,H6,E6)),IF(N60,AVERAGE(N6,IF(H60,H6,E 6)),IF(K60,AVERAGE(K6,IF(H60,H6,E6)),IF(H60,H6, IF(E60,E6,0))))))))

Column E is test 1
Column H is rewrite for test 1
Column K is test 2
Column N is Test 2 rewrite
Column T, Q, W, and Z are test 3, 4, 5, and 6

I have two problems with the above:

For whatever reason, column K is not being calculated at all. I've tried
many different scenarios and it still won't calculate once I add anything
before it (N, T, etc).

Problem 2: Now I have to add rewrite columns for T and Q but I don't need
test 6 anymore.

My question is can you help me with the above formula or should I use a
different formula completely?

Thank you in advance for your expertise. I can provide a copy of the sheet
if necessary.
Lynn

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Nested IF Function problem for Excel 2003

First let me commend you on your question. Most people don't know that
averaging averages is bad.

Here is one approach. Say we have data with some blanks in A1 thru D99

In A100 thru D100, we have the average of each column, so in A100 we have
=AVERAGE(A1:A99), etc.

If we want the overall average, we sould NOT average A100 thru D100, instead:

=SUM(A1:D99)/COUNTIF(A1:D99,"<" & "")

We make our own average formula!


--
Gary''s Student - gsnu200909


"LJNagora" wrote:

Thanks Gary ... that helped ... one more problem ....

I now need to find the average score in the column that contains the
averages for each row. I know you can't average an average, so how can I get
the average score?

Thanks again,
Lynn


"Gary''s Student" wrote:

You need to take advantage of the fact the =AVERAGE() ignores blanks, but
includes 0's as real values. Say we use two "helper" columns col AA and col
AB

In AA6 enter:
=IF(E6 & H6="","",IF(H6<"",H6,E6))

In AB6 enter:
=IF(K6 & N6="","",IF(N6<"",N6,K6))

What the AA formula is really saying is that if E & H are both blank, then
show blank.

If H is not blank that show the H value, otherwise show the E value.

Then the final average should be:

=AVERAGE(T6,Q6,W6,Z6,AA6,AB6)

Use the same approach for all additional rewrite columns
--
Gary''s Student - gsnu200909


"LJNagora" wrote:

I have to calculate test scores that include rewrites, but I don't want to
average in a column that's not supposed to be part of the calculation until
there's an amount filled in. I started with the following with only two
columns (N & H) being rewrite columns:

=IF(Z60,AVERAGE(Z6,W6,T6,Q6,IF(N60,N6,K6),IF(H6 0,H6,E6)),IF(W60,AVERAGE(W6,T6,Q6,IF(N60,N6,K6), IF(H60,H6,E6)),IF(T60,AVERAGE(T6,Q6,IF(N60,N6,K 6),IF(H60,H6,E6)),IF(Q60,AVERAGE(Q6,IF(N60,N6,K 6),IF(H60,H6,E6)),IF(N60,AVERAGE(N6,IF(H60,H6,E 6)),IF(K60,AVERAGE(K6,IF(H60,H6,E6)),IF(H60,H6, IF(E60,E6,0))))))))

Column E is test 1
Column H is rewrite for test 1
Column K is test 2
Column N is Test 2 rewrite
Column T, Q, W, and Z are test 3, 4, 5, and 6

I have two problems with the above:

For whatever reason, column K is not being calculated at all. I've tried
many different scenarios and it still won't calculate once I add anything
before it (N, T, etc).

Problem 2: Now I have to add rewrite columns for T and Q but I don't need
test 6 anymore.

My question is can you help me with the above formula or should I use a
different formula completely?

Thank you in advance for your expertise. I can provide a copy of the sheet
if necessary.
Lynn

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Nested IF Function problem for Excel 2003

Since I have some columns in my data that are not counted due to the criteria
as is in the following formula for the first row:

=AVERAGE(IF(H6="",E6,H6),IF(N6="",K6,N6),IF(T6="", Q6,T6),IF(Z6="",W6,Z6),AC6) (thanks again for your help on this one)

How can I make sure the sheet knows what cells to choose?
Is there a possible way that the average score could chosen from the average
column for 26 rows? (I hope this makes sense)

Thanks again,
Lynn

"Gary''s Student" wrote:

First let me commend you on your question. Most people don't know that
averaging averages is bad.

Here is one approach. Say we have data with some blanks in A1 thru D99

In A100 thru D100, we have the average of each column, so in A100 we have
=AVERAGE(A1:A99), etc.

If we want the overall average, we sould NOT average A100 thru D100, instead:

=SUM(A1:D99)/COUNTIF(A1:D99,"<" & "")

We make our own average formula!


--
Gary''s Student - gsnu200909


"LJNagora" wrote:

Thanks Gary ... that helped ... one more problem ....

I now need to find the average score in the column that contains the
averages for each row. I know you can't average an average, so how can I get
the average score?

Thanks again,
Lynn


"Gary''s Student" wrote:

You need to take advantage of the fact the =AVERAGE() ignores blanks, but
includes 0's as real values. Say we use two "helper" columns col AA and col
AB

In AA6 enter:
=IF(E6 & H6="","",IF(H6<"",H6,E6))

In AB6 enter:
=IF(K6 & N6="","",IF(N6<"",N6,K6))

What the AA formula is really saying is that if E & H are both blank, then
show blank.

If H is not blank that show the H value, otherwise show the E value.

Then the final average should be:

=AVERAGE(T6,Q6,W6,Z6,AA6,AB6)

Use the same approach for all additional rewrite columns
--
Gary''s Student - gsnu200909


"LJNagora" wrote:

I have to calculate test scores that include rewrites, but I don't want to
average in a column that's not supposed to be part of the calculation until
there's an amount filled in. I started with the following with only two
columns (N & H) being rewrite columns:

=IF(Z60,AVERAGE(Z6,W6,T6,Q6,IF(N60,N6,K6),IF(H6 0,H6,E6)),IF(W60,AVERAGE(W6,T6,Q6,IF(N60,N6,K6), IF(H60,H6,E6)),IF(T60,AVERAGE(T6,Q6,IF(N60,N6,K 6),IF(H60,H6,E6)),IF(Q60,AVERAGE(Q6,IF(N60,N6,K 6),IF(H60,H6,E6)),IF(N60,AVERAGE(N6,IF(H60,H6,E 6)),IF(K60,AVERAGE(K6,IF(H60,H6,E6)),IF(H60,H6, IF(E60,E6,0))))))))

Column E is test 1
Column H is rewrite for test 1
Column K is test 2
Column N is Test 2 rewrite
Column T, Q, W, and Z are test 3, 4, 5, and 6

I have two problems with the above:

For whatever reason, column K is not being calculated at all. I've tried
many different scenarios and it still won't calculate once I add anything
before it (N, T, etc).

Problem 2: Now I have to add rewrite columns for T and Q but I don't need
test 6 anymore.

My question is can you help me with the above formula or should I use a
different formula completely?

Thank you in advance for your expertise. I can provide a copy of the sheet
if necessary.
Lynn



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Nested IF Function problem for Excel 2003

You can add criteria to the average by using SUMPRODUCT() in place of SUM().

Of course, the alternative is to fragment both the numerator and demoninator
into appropriate pieces
--
Gary''s Student - gsnu200909


"LJNagora" wrote:

Since I have some columns in my data that are not counted due to the criteria
as is in the following formula for the first row:

=AVERAGE(IF(H6="",E6,H6),IF(N6="",K6,N6),IF(T6="", Q6,T6),IF(Z6="",W6,Z6),AC6) (thanks again for your help on this one)

How can I make sure the sheet knows what cells to choose?
Is there a possible way that the average score could chosen from the average
column for 26 rows? (I hope this makes sense)

Thanks again,
Lynn

"Gary''s Student" wrote:

First let me commend you on your question. Most people don't know that
averaging averages is bad.

Here is one approach. Say we have data with some blanks in A1 thru D99

In A100 thru D100, we have the average of each column, so in A100 we have
=AVERAGE(A1:A99), etc.

If we want the overall average, we sould NOT average A100 thru D100, instead:

=SUM(A1:D99)/COUNTIF(A1:D99,"<" & "")

We make our own average formula!


--
Gary''s Student - gsnu200909


"LJNagora" wrote:

Thanks Gary ... that helped ... one more problem ....

I now need to find the average score in the column that contains the
averages for each row. I know you can't average an average, so how can I get
the average score?

Thanks again,
Lynn


"Gary''s Student" wrote:

You need to take advantage of the fact the =AVERAGE() ignores blanks, but
includes 0's as real values. Say we use two "helper" columns col AA and col
AB

In AA6 enter:
=IF(E6 & H6="","",IF(H6<"",H6,E6))

In AB6 enter:
=IF(K6 & N6="","",IF(N6<"",N6,K6))

What the AA formula is really saying is that if E & H are both blank, then
show blank.

If H is not blank that show the H value, otherwise show the E value.

Then the final average should be:

=AVERAGE(T6,Q6,W6,Z6,AA6,AB6)

Use the same approach for all additional rewrite columns
--
Gary''s Student - gsnu200909


"LJNagora" wrote:

I have to calculate test scores that include rewrites, but I don't want to
average in a column that's not supposed to be part of the calculation until
there's an amount filled in. I started with the following with only two
columns (N & H) being rewrite columns:

=IF(Z60,AVERAGE(Z6,W6,T6,Q6,IF(N60,N6,K6),IF(H6 0,H6,E6)),IF(W60,AVERAGE(W6,T6,Q6,IF(N60,N6,K6), IF(H60,H6,E6)),IF(T60,AVERAGE(T6,Q6,IF(N60,N6,K 6),IF(H60,H6,E6)),IF(Q60,AVERAGE(Q6,IF(N60,N6,K 6),IF(H60,H6,E6)),IF(N60,AVERAGE(N6,IF(H60,H6,E 6)),IF(K60,AVERAGE(K6,IF(H60,H6,E6)),IF(H60,H6, IF(E60,E6,0))))))))

Column E is test 1
Column H is rewrite for test 1
Column K is test 2
Column N is Test 2 rewrite
Column T, Q, W, and Z are test 3, 4, 5, and 6

I have two problems with the above:

For whatever reason, column K is not being calculated at all. I've tried
many different scenarios and it still won't calculate once I add anything
before it (N, T, etc).

Problem 2: Now I have to add rewrite columns for T and Q but I don't need
test 6 anymore.

My question is can you help me with the above formula or should I use a
different formula completely?

Thank you in advance for your expertise. I can provide a copy of the sheet
if necessary.
Lynn

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
Subtotals problem: Excel 2003 (not, AFAIK, the nested subtotals bug) AndyCotgreave Excel Discussion (Misc queries) 3 October 24th 07 11:32 AM
Problem using newly created user function in Excel 2003 Richard Excel Discussion (Misc queries) 10 January 22nd 07 12:44 AM
Problem with nested if function. PLS HELP sfar007 Excel Worksheet Functions 2 June 6th 06 11:34 AM
=HYPERLINK function and Excel 2003 problem. [email protected] Excel Worksheet Functions 1 February 10th 06 03:14 PM
Nested Subtotals in Excel 2003 -Solution GantryG Excel Discussion (Misc queries) 1 March 23rd 05 01:04 AM


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