Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Miguel
 
Posts: n/a
Default I want to use the MATCH function with the AVERAGE function but I .

I have two columns one is time and the other force values. I want to look for
two diferent times and get the average of the forces in that range of time. I
thought I could generalize this for several spreedsheets that I have. I
believe if I use the MATCH function to get the row position of the different
times and then simply use the average function with MATCH may work straight
away. I get a problem because the format average somehow does not recognice
MATCH. For instance my formule looks like:
forceaverage=AVERAGE(RMATCH(time1,R1C1:R5000C1,0)C 3:RMATCH(time2,R1C1:R5000C1,0)C3).
time1 and time2 are my time values and R is row and C is column (the
absolute format used by excel). C3 is the column were the forces are. C1 is
the column of the time.R5000 is the last row value.
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Bit confused by your formula, but in principle you can use

=SUMPRODUCT(--(A10:A27=C10),--(A10:A27<C11),B10:B27)/SUMPRODUCT(--(A10:A27
=C10),--(A10:A27<C11))

which (may) translate to

=SUMPRODUCT(--(A1:A5000=time1),--(A1:A5000<time2),C1:C5000)/SUMPRODUCT(--(A
1:A5000=time1),--(A1:A5000<time2))

in your example
--
HTH

Bob Phillips

"Miguel" wrote in message
...
I have two columns one is time and the other force values. I want to look

for
two diferent times and get the average of the forces in that range of

time. I
thought I could generalize this for several spreedsheets that I have. I
believe if I use the MATCH function to get the row position of the

different
times and then simply use the average function with MATCH may work

straight
away. I get a problem because the format average somehow does not

recognice
MATCH. For instance my formule looks like:

forceaverage=AVERAGE(RMATCH(time1,R1C1:R5000C1,0)C 3:RMATCH(time2,R1C1:R5000C
1,0)C3).
time1 and time2 are my time values and R is row and C is column (the
absolute format used by excel). C3 is the column were the forces are. C1

is
the column of the time.R5000 is the last row value.



  #3   Report Post  
Miguel
 
Posts: n/a
Default

THANKS,
I DID NOT KNOW THAT FUNCTION BUT IT WORKS JUST RIGHT
CHEERS

"Bob Phillips" wrote:

Bit confused by your formula, but in principle you can use

=SUMPRODUCT(--(A10:A27=C10),--(A10:A27<C11),B10:B27)/SUMPRODUCT(--(A10:A27
=C10),--(A10:A27<C11))

which (may) translate to

=SUMPRODUCT(--(A1:A5000=time1),--(A1:A5000<time2),C1:C5000)/SUMPRODUCT(--(A
1:A5000=time1),--(A1:A5000<time2))

in your example
--
HTH

Bob Phillips

"Miguel" wrote in message
...
I have two columns one is time and the other force values. I want to look

for
two diferent times and get the average of the forces in that range of

time. I
thought I could generalize this for several spreedsheets that I have. I
believe if I use the MATCH function to get the row position of the

different
times and then simply use the average function with MATCH may work

straight
away. I get a problem because the format average somehow does not

recognice
MATCH. For instance my formule looks like:

forceaverage=AVERAGE(RMATCH(time1,R1C1:R5000C1,0)C 3:RMATCH(time2,R1C1:R5000C
1,0)C3).
time1 and time2 are my time values and R is row and C is column (the
absolute format used by excel). C3 is the column were the forces are. C1

is
the column of the time.R5000 is the last row value.




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
Using The Average Function if a cell has NA carl Excel Worksheet Functions 6 May 21st 23 07:46 PM
Using the average function LostNFound Excel Worksheet Functions 5 March 16th 05 12:45 PM
Match Function arguments Stan Altshuller Excel Worksheet Functions 3 March 11th 05 08:48 PM
How do I nesting subtotal function within average function in Exc Amy Yeh Excel Worksheet Functions 4 January 19th 05 06:23 PM
Using Average function when number is zero Deb Excel Worksheet Functions 3 November 6th 04 01:01 AM


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

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"