Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2
Default Lookup function?

I'm not sure if I'm using the right function, but I have a row of test
results and some cells have the option for a "pass/fail" result (not a number
or a grade).

I want to summarise the results from each section of the test, so am adding
the scores quite happily. However, if one of the questions is failed, this
needs to be shown in the summary.

I have tried to use Lookup but it won't display "Fail" in a cell on the
summary.

Any help would be greatly appreciated.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default Lookup function?


Spursgirl;367526 Wrote:
I'm not sure if I'm using the right function, but I have a row of test
results and some cells have the option for a "pass/fail" result (not a
number
or a grade).

I want to summarise the results from each section of the test, so am
adding
the scores quite happily. However, if one of the questions is failed,
this
needs to be shown in the summary.

I have tried to use Lookup but it won't display "Fail" in a cell on the
summary.

Any help would be greatly appreciated.

Thanks

What do you want to show, 1)the sum of the scores that didn't fail?,
2)the sum of the scores that failed? or 3)show a Pass or Fail depending
on the value of the sum?

If you want to do No.1 then use sumproduct like this (assuming your
scores are in column C and Pass or Fail in column D)
=SUMPRODUCT(--(D1:D20="Pass")*(C1:C20)) or
=SUMIF(D1:D20,"Pass",C1:C20)

If you want to do No.2 then use sumproduct like this (assuming your
scores are in column C and Pass or Fail in column D)
=SUMPRODUCT(--(D1:D20="Fail")*(C1:C20)) or
=SUMIF(D1:D20,"Pass",C1:C20)

If you want to do No.3 then use sumproduct like this (assuming your
scores are in column C and Pass or Fail in column D)
=IF(SUM(C1:C20)<=30,"Fail","Pass")

Or you can count the number of fails against the number of passes like
this:
=IF(COUNTIF(D1:D20,"Pass")COUNTIF(D1:D20,"Fail"), "Pass","Fail")


--
Simon Lloyd

Regards,
Simon Lloyd
'The Code Cage' (http://www.thecodecage.com)
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.thecodecage.com/forumz/member.php?userid=1
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=102957

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2
Default Lookup function?

Hi Simon
Many thanks for your reply, which taught me some stuff I didn't know, but
didn't answer my question, because I obviously phrased it badly!!

The cells to which I was referring do not have a number in them; they have
the word "Pass" or "Fail". I wanted to be able to link that result to a
summary spreadsheet, so that I could enter "Pass" or "Fail" in each page of
the workbook and then report the question which this related to on the
summary sheet.

Example of summary sheet:-

Section A Section B Questions Failed

25 30 A3, B7


This is because there are certain questions which require a pass, otherwise
it is an automatic fail, regardless of the other scores.

I do not know if it is possible to do this automatically, rather than having
to check each page of the workbook and then keying the information in.

I really appreciate your response, and would be grateful for help on this
from you (or anyone else).

Thanks

"Spursgirl" wrote:

I'm not sure if I'm using the right function, but I have a row of test
results and some cells have the option for a "pass/fail" result (not a number
or a grade).

I want to summarise the results from each section of the test, so am adding
the scores quite happily. However, if one of the questions is failed, this
needs to be shown in the summary.

I have tried to use Lookup but it won't display "Fail" in a cell on the
summary.

Any help would be greatly appreciated.

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default Lookup function?


Spursgirl;373095 Wrote:
Hi Simon
Many thanks for your reply, which taught me some stuff I didn't know,
but
didn't answer my question, because I obviously phrased it badly!!

The cells to which I was referring do not have a number in them; they
have
the word "Pass" or "Fail". I wanted to be able to link that result to a
summary spreadsheet, so that I could enter "Pass" or "Fail" in each
page of
the workbook and then report the question which this related to on the
summary sheet.

Example of summary sheet:-

Section A Section B Questions Failed

25 30 A3, B7


This is because there are certain questions which require a pass,
otherwise
it is an automatic fail, regardless of the other scores.

I do not know if it is possible to do this automatically, rather than
having
to check each page of the workbook and then keying the information in.

I really appreciate your response, and would be grateful for help on
this
from you (or anyone else).

Thanks

"Spursgirl" wrote:

I'm not sure if I'm using the right function, but I have a row of

test
results and some cells have the option for a "pass/fail" result (not

a number
or a grade).

I want to summarise the results from each section of the test, so am

adding
the scores quite happily. However, if one of the questions is failed,

this
needs to be shown in the summary.

I have tried to use Lookup but it won't display "Fail" in a cell on

the
summary.

Any help would be greatly appreciated.

Thanks


Providing a workbook will better illustrate your problem, usually when
we can see your data (-it can be dummy data but must be of the same
type-) and your structure it is far easier for us to give you a
tailored, workable answer to your query :)

For further help with it why not join our forums (shown in
the link below) it's completely free, if you do join you will have the
opportunity to add attachmnets to your posts so you can add workbooks to
better illustrate your problems and get help directly with them. Also if
you do join please post in this thread (link found below) so that people
who have been following or helping with this query can continue to do
so. :)


--
Simon Lloyd

Regards,
Simon Lloyd
'The Code Cage' (http://www.thecodecage.com)
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.thecodecage.com/forumz/member.php?userid=1
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=102957

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
Excel Data Validation/Lookup function does function correcty Kirkey Excel Worksheet Functions 2 May 25th 09 09:22 PM
#N/A in lookup function [email protected] Excel Worksheet Functions 3 November 23rd 07 01:33 PM
how to combine an IF Function with a lookup function to determine [email protected] Excel Worksheet Functions 1 December 5th 06 06:09 AM
LOOKUP function haroldhagar Excel Worksheet Functions 2 August 6th 05 07:38 PM
Pivot table doing a lookup without using the lookup function? NGASGELI Excel Discussion (Misc queries) 0 August 2nd 05 05:08 AM


All times are GMT +1. The time now is 07:05 AM.

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"