Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
last 20 items in a list
Hi
I have a column of data which shows the result of a quality check (possible outcomes are "pass" or "fail"). I have set up functions so far that mean "pass" is given a value of 1 and "fail" is given a value of 0. This means I can then work out the average score (e.g. 15 passes out of 20 gives 75%). Ok - fine so far. My query is, I want to set up a function that will give me the score for the last 20 cases, but always the last 20 cases (the list will be added to each month, but not by a set amount - so could be 5 cases one month, 7 the next, etc.). Looking at other posts I think it may have something to do with the "offset" function, but I can't work out how to set up a function which uses a rolling cell range from a continually expanding range. Hope someone out there can help! Thanks! p.s. I am using Excel XP |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
last 20 items in a list
C1 should return the desired results
(Format C1 as percentage) -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
last 20 items in a list
Thanks!
That really helps. I actually wanted the total (not the average) but substituted 'sum' for 'average' and it works perfectly. Also, thanks for coming back so quickly - my boss will be really impressed. I'll let him know I had a bit of help though. ; ) "Max" wrote: One possible way .. Assuming the numeric formula returns of 1 and 0 are in col B, from B1 down continuously, we could put in say, C1 (normal ENTER): =IF(COUNT(B:B)<20,"", AVERAGE(OFFSET(INDIRECT("B"&COUNT(B:B)),,,-20))) -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "Ian G" <Ian wrote in message ... Hi I have a column of data which shows the result of a quality check (possible outcomes are "pass" or "fail"). I have set up functions so far that mean "pass" is given a value of 1 and "fail" is given a value of 0. This means I can then work out the average score (e.g. 15 passes out of 20 gives 75%). Ok - fine so far. My query is, I want to set up a function that will give me the score for the last 20 cases, but always the last 20 cases (the list will be added to each month, but not by a set amount - so could be 5 cases one month, 7 the next, etc.). Looking at other posts I think it may have something to do with the "offset" function, but I can't work out how to set up a function which uses a rolling cell range from a continually expanding range. Hope someone out there can help! Thanks! p.s. I am using Excel XP |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
last 20 items in a list
Glad it helped !
Thanks for the feedback .. -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "Ian G" wrote in message ... Thanks! That really helps. I actually wanted the total (not the average) but substituted 'sum' for 'average' and it works perfectly. Also, thanks for coming back so quickly - my boss will be really impressed. I'll let him know I had a bit of help though. ; ) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Numbering items from a list in order | Excel Discussion (Misc queries) | |||
named range, data validation: list non-selected items, and new added items | Excel Discussion (Misc queries) | |||
Making list of items to truck monthly usage | Excel Discussion (Misc queries) | |||
Indexing items from a pick list | Excel Discussion (Misc queries) | |||
Pivot Tables, can I use an external list to select data items? | Excel Worksheet Functions |