Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Return last 6 results formula

Hi

I have a column in my sheet that fills in progressively over a season
as team results are entered.

This particual column will show d for a goal-less draw (0-0), D for a
score draw (1-1, 2-2 etc) and W or L for Win/Loss

I'd like to show the last 6 game 'form' in this format: W,L,W,W,d,D
using that column
Any suggestions gratefully received

Thanks in advance
Neil

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default Return last 6 results formula

Try something like this:

Single cell approach:
For a list of outcomes in A1:A100
B1:
=INDEX(A1:A100,MATCH(REPT("z",255),A:A)-5)&","&INDEX(A1:A100,MATCH(REPT("z",255),A:A)-4)&","&INDEX(A1:A100,MATCH(REPT("z",255),A:A)-3)&","&INDEX(A1:A100,MATCH(REPT("z",255),A:A)-2)&","&INDEX(A1:A100,MATCH(REPT("z",255),A:A)-1)&","&INDEX(A1:A100,MATCH(REPT("z",255),A:A))

Somewhat cleaner 2-cell approach:
B1: =MATCH(REPT("z",255),A:A)-5
C1:
=INDEX(A:A,B1)&","&INDEX(A:A,B1+1)&","&INDEX(A:A,B 1+2)&","&INDEX(A:A,B1+3)&","&INDEX(A:A,B1+4)&","&I NDEX(A:A,B1+5)

Is that something you can work with?

***********
Regards,
Ron

XL2002, WinXP-Pro


" wrote:

Hi

I have a column in my sheet that fills in progressively over a season
as team results are entered.

This particual column will show d for a goal-less draw (0-0), D for a
score draw (1-1, 2-2 etc) and W or L for Win/Loss

I'd like to show the last 6 game 'form' in this format: W,L,W,W,d,D
using that column
Any suggestions gratefully received

Thanks in advance
Neil


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Rosenfeld
 
Posts: n/a
Default Return last 6 results formula

On 19 Mar 2006 07:26:37 -0800, "
wrote:

Hi

I have a column in my sheet that fills in progressively over a season
as team results are entered.

This particual column will show d for a goal-less draw (0-0), D for a
score draw (1-1, 2-2 etc) and W or L for Win/Loss

I'd like to show the last 6 game 'form' in this format: W,L,W,W,d,D
using that column
Any suggestions gratefully received

Thanks in advance
Neil


Assume the result is in A1 and the scores are in A2:An

Download and install Longre's free morefunc.xll add-in from
http://xcell05.free.fr

Then use the formula:

=MCONCAT(OFFSET(A1,COUNTA(A2:A100),,-6),",")




--ron
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
Help! All results of my formula are the same! ziak Excel Discussion (Misc queries) 3 February 28th 06 08:13 PM
abdualmohsn almedrahe abdualmohsn ahmad Excel Discussion (Misc queries) 1 November 19th 05 06:32 PM
referencing cells that return blank results Suz Excel Worksheet Functions 4 February 21st 05 10:59 PM
put formula results into a different cell if it is empty PutFormula Excel Worksheet Functions 2 February 11th 05 03:31 AM
I want the results of a formula to show in cell, NOT THE FORMULA! ocbecky Excel Discussion (Misc queries) 4 December 10th 04 08:39 PM


All times are GMT +1. The time now is 10:00 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"