Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Referencing the values returned by a formula

I would like to count unique values returned by an array after comparing it
with a list. I have an array set up to return the averages of several
students grades including two other conditions i.e "abs" if the student was
absent, "X"
if they left the class or school. here's the formula for that.. works fine

=IF(AND(G5="Abs",H5="Abs"),"ABS ",IF(AND(G5="X",H5="X"),"EXED
",IF(COUNT(G5:AF5)=0," ",(SUM(G5:AF5))/(COUNT(G5:AF5)))))

....and then another to determine if they are male or female students and sum
them up accordingly

=IF(COUNT(AG5:AG45)=0,"
",SUM(($D5:$D45="F")*(AG5:AG45=0),-($D5:$D45="F")*(AG5:AG45="EXED")))

where F = female & EXED= students who no longer belong to the class. This
works fine only if the 1st formula returns number values i.e percentages, but
does not when it returns text i.e the word EXED.

Help. I need to count only the male/female syudents who were absent or have
percentages.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 175
Default Referencing the values returned by a formula

Hi
if you want to count only female AND EXED, try this

=SUMPRODUCT(--($D5:$D45="F"),--(AG5:AG45="EXED"))

--
Hope this is helpful

Pls click the Yes button below if this post provide answer you have asked

Thank You

cheers, francis

Am not a greek but an ordinary user trying to assist another



"StevieSayang" wrote:

I would like to count unique values returned by an array after comparing it
with a list. I have an array set up to return the averages of several
students grades including two other conditions i.e "abs" if the student was
absent, "X"
if they left the class or school. here's the formula for that.. works fine

=IF(AND(G5="Abs",H5="Abs"),"ABS ",IF(AND(G5="X",H5="X"),"EXED
",IF(COUNT(G5:AF5)=0," ",(SUM(G5:AF5))/(COUNT(G5:AF5)))))

...and then another to determine if they are male or female students and sum
them up accordingly

=IF(COUNT(AG5:AG45)=0,"
",SUM(($D5:$D45="F")*(AG5:AG45=0),-($D5:$D45="F")*(AG5:AG45="EXED")))

where F = female & EXED= students who no longer belong to the class. This
works fine only if the 1st formula returns number values i.e percentages, but
does not when it returns text i.e the word EXED.

Help. I need to count only the male/female syudents who were absent or have
percentages.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Referencing the values returned by a formula

Thanks Francis but it did not help. What i really need is a formula to count
the females with grades plus those who were absent, but not the females who
left the class, i.e those for whom the formula in AG5:AG45="EXED"

"Francis" wrote:

Hi
if you want to count only female AND EXED, try this

=SUMPRODUCT(--($D5:$D45="F"),--(AG5:AG45="EXED"))

--
Hope this is helpful

Pls click the Yes button below if this post provide answer you have asked

Thank You

cheers, francis

Am not a greek but an ordinary user trying to assist another



"StevieSayang" wrote:

I would like to count unique values returned by an array after comparing it
with a list. I have an array set up to return the averages of several
students grades including two other conditions i.e "abs" if the student was
absent, "X"
if they left the class or school. here's the formula for that.. works fine

=IF(AND(G5="Abs",H5="Abs"),"ABS ",IF(AND(G5="X",H5="X"),"EXED
",IF(COUNT(G5:AF5)=0," ",(SUM(G5:AF5))/(COUNT(G5:AF5)))))

...and then another to determine if they are male or female students and sum
them up accordingly

=IF(COUNT(AG5:AG45)=0,"
",SUM(($D5:$D45="F")*(AG5:AG45=0),-($D5:$D45="F")*(AG5:AG45="EXED")))

where F = female & EXED= students who no longer belong to the class. This
works fine only if the 1st formula returns number values i.e percentages, but
does not when it returns text i.e the word EXED.

Help. I need to count only the male/female syudents who were absent or have
percentages.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 175
Default Referencing the values returned by a formula

would you lay out a sample?
This will help to understand where is your data reside
--
Hope this is helpful

Pls click the Yes button below if this post provide answer you have asked

Thank You

cheers, francis

Am not a greek but an ordinary user trying to assist another



"StevieSayang" wrote:

Thanks Francis but it did not help. What i really need is a formula to count
the females with grades plus those who were absent, but not the females who
left the class, i.e those for whom the formula in AG5:AG45="EXED"

"Francis" wrote:

Hi
if you want to count only female AND EXED, try this

=SUMPRODUCT(--($D5:$D45="F"),--(AG5:AG45="EXED"))

--
Hope this is helpful

Pls click the Yes button below if this post provide answer you have asked

Thank You

cheers, francis

Am not a greek but an ordinary user trying to assist another



"StevieSayang" wrote:

I would like to count unique values returned by an array after comparing it
with a list. I have an array set up to return the averages of several
students grades including two other conditions i.e "abs" if the student was
absent, "X"
if they left the class or school. here's the formula for that.. works fine

=IF(AND(G5="Abs",H5="Abs"),"ABS ",IF(AND(G5="X",H5="X"),"EXED
",IF(COUNT(G5:AF5)=0," ",(SUM(G5:AF5))/(COUNT(G5:AF5)))))

...and then another to determine if they are male or female students and sum
them up accordingly

=IF(COUNT(AG5:AG45)=0,"
",SUM(($D5:$D45="F")*(AG5:AG45=0),-($D5:$D45="F")*(AG5:AG45="EXED")))

where F = female & EXED= students who no longer belong to the class. This
works fine only if the 1st formula returns number values i.e percentages, but
does not when it returns text i.e the word EXED.

Help. I need to count only the male/female syudents who were absent or have
percentages.

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
VLookup multiple values - sum returned values into single cell se7098 Excel Worksheet Functions 12 April 2nd 23 07:32 PM
How do i add cell values that are returned via a formula jr2001 Excel Discussion (Misc queries) 3 April 18th 06 04:27 PM
How do I sum values returned from functions? Duff Divot Excel Worksheet Functions 4 March 31st 06 07:29 PM
Can I get multiple values returned for an IF formula? TeachCTC New Users to Excel 2 November 16th 05 02:51 AM
Using returned values as part of another formula Duby Excel Worksheet Functions 3 October 1st 05 03:47 PM


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