Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Thomas Wright
 
Posts: n/a
Default find consecuetive means

find a set of cells: three consecutive cells that when averaged meet a goal
and then finds the next set in a column.

Goal = 15 averged for three consecuetive cells.

10
15
20
15
12
13
15
20

This is my problem. Can anyone come up with suggestions that helps me solve
this problem?

Thank you,

Tom Wright


  #2   Report Post  
Thomas Wright
 
Posts: n/a
Default

to meet a goal of 15


or in other words,

a set of three that average to a goal and then finds the next such set.

Tom


  #3   Report Post  
Bernard Liengme
 
Posts: n/a
Default

With your numbers in A1:A8 (put 10 in A9) use =IF(SUM(A1:A3)=45,"*","") in
B1
Copy down the column.
I used SUM because AVERAGE gets confused at the end of the series
best wishes

--
Bernard Liengme
www.stfx.ca/people/bliengme
remove CAPS in email address


"Thomas Wright" wrote in message
...
find a set of cells: three consecutive cells that when averaged meet a
goal and then finds the next set in a column.

Goal = 15 averged for three consecuetive cells.

10
15
20
15
12
13
15
20

This is my problem. Can anyone come up with suggestions that helps me
solve this problem?

Thank you,

Tom Wright



  #4   Report Post  
Bob Tarburton
 
Posts: n/a
Default

To avoid scrolling down in a long list
B1 =IF(SUM(A1:A3)=45,1,"")
B2 =IF(SUM(A2:A4)=45,1+MAX(B$1:B1),"")
Copy B2 down
C1 =match(row(1:1),B:B,0)
Copy C1 down
COlumn C returns the first rown of every 3 number sequence

-----Original Message-----
With your numbers in A1:A8 (put 10 in A9) use =IF(SUM

(A1:A3)=45,"*","") in
B1
Copy down the column.
I used SUM because AVERAGE gets confused at the end of

the series
best wishes

--
Bernard Liengme
www.stfx.ca/people/bliengme
remove CAPS in email address


"Thomas Wright" wrote in message
...
find a set of cells: three consecutive cells that when

averaged meet a
goal and then finds the next set in a column.

Goal = 15 averged for three consecuetive cells.

10
15
20
15
12
13
15
20

This is my problem. Can anyone come up with suggestions

that helps me
solve this problem?

Thank you,

Tom Wright



.

  #5   Report Post  
Sandy Mann
 
Posts: n/a
Default

Bernard,

Can you explain your logic in putting 10 in A9, especially as the OP wants
to find *Three* cells that average 15? Your method finds a match in cell B7
even although the only *real* numbers left in the OP's data don't average
15.

Puzzled,

Sandy

--
to e-mail direct replace @mailinator.com with @tiscali.co.uk


"Bernard Liengme" wrote in message
...
With your numbers in A1:A8 (put 10 in A9) use =IF(SUM(A1:A3)=45,"*","") in
B1
Copy down the column.
I used SUM because AVERAGE gets confused at the end of the series
best wishes

--
Bernard Liengme
www.stfx.ca/people/bliengme
remove CAPS in email address


"Thomas Wright" wrote in message
...
find a set of cells: three consecutive cells that when averaged meet a
goal and then finds the next set in a column.

Goal = 15 averged for three consecuetive cells.

10
15
20
15
12
13
15
20

This is my problem. Can anyone come up with suggestions that helps me
solve this problem?

Thank you,

Tom Wright








  #6   Report Post  
Bernard Liengme
 
Posts: n/a
Default

Just to show that the method works!

--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Sandy Mann" wrote in message
...
Bernard,

Can you explain your logic in putting 10 in A9, especially as the OP wants
to find *Three* cells that average 15? Your method finds a match in cell
B7
even although the only *real* numbers left in the OP's data don't average
15.

Puzzled,

Sandy

--
to e-mail direct replace @mailinator.com with @tiscali.co.uk


"Bernard Liengme" wrote in message
...
With your numbers in A1:A8 (put 10 in A9) use =IF(SUM(A1:A3)=45,"*","")
in
B1
Copy down the column.
I used SUM because AVERAGE gets confused at the end of the series
best wishes

--
Bernard Liengme
www.stfx.ca/people/bliengme
remove CAPS in email address


"Thomas Wright" wrote in message
...
find a set of cells: three consecutive cells that when averaged meet a
goal and then finds the next set in a column.

Goal = 15 averged for three consecuetive cells.

10
15
20
15
12
13
15
20

This is my problem. Can anyone come up with suggestions that helps me
solve this problem?

Thank you,

Tom Wright








  #7   Report Post  
Jason Morin
 
Posts: n/a
Default

I'd keep it simple. With your values starting in A1, put
this in B1 and fill down:

=IF(AVERAGE(A1:A3)=15,"Hit","")

Any cell with "Hit" means the adjacent cell in A and the
2 cells below that have an avg. of 15.

HTH
Jason
Atlanta, GA

-----Original Message-----
find a set of cells: three consecutive cells that when

averaged meet a goal
and then finds the next set in a column.

Goal = 15 averged for three consecuetive cells.

10
15
20
15
12
13
15
20

This is my problem. Can anyone come up with suggestions

that helps me solve
this problem?

Thank you,

Tom Wright


.

  #8   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Maybe something like this:

Assume your values are in the range A1:A8.

In B3 enter this formula and copy down:

=AVERAGE(OFFSET(A3,,,-3))=15

Biff

-----Original Message-----
find a set of cells: three consecutive cells that when

averaged meet a goal
and then finds the next set in a column.

Goal = 15 averged for three consecuetive cells.

10
15
20
15
12
13
15
20

This is my problem. Can anyone come up with suggestions

that helps me solve
this problem?

Thank you,

Tom Wright


.

  #9   Report Post  
Thomas Wright
 
Posts: n/a
Default

Thanks everyone. It was more straightforward than I thought.

Tom


"Thomas Wright" wrote in message
...
find a set of cells: three consecutive cells that when averaged meet a
goal and then finds the next set in a column.

Goal = 15 averged for three consecuetive cells.

10
15
20
15
12
13
15
20

This is my problem. Can anyone come up with suggestions that helps me
solve this problem?

Thank you,

Tom Wright



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
How do I compare data in two worksheets to find matching cells? Gary Excel Discussion (Misc queries) 4 March 2nd 06 09:04 PM
Using the Find tool in EXCEL TK Excel Worksheet Functions 2 February 11th 05 07:51 PM
Find all text instances in a sheet and add one number from each row Greg Excel Discussion (Misc queries) 1 January 31st 05 11:45 PM
Excel has a "Find Next" command but no "Find Previous" command. Michael Fitzpatrick Excel Discussion (Misc queries) 2 January 10th 05 11:45 PM
VB Find and Replace Bony_Pony Excel Worksheet Functions 10 December 6th 04 05:45 PM


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