Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Default Finding an average with the lookup function

Edit: Figured it out with help from another source:

=AVERAGE(INDEX(C19:C55,MATCH(F56,F19:F55,0)):C56)

works.


Hello, I am new to the forums and certainly not an expert at Excel. What I want to do is shown below:

=AVERAGE(LOOKUP(F56,F19:F55,C19:C55):C56)

Note that this function does not actually work. What I want to do is to take a value (F56), go and find where it is previously in the F column, return the result from the corresponding C column, and then average everything between that corresponding C column result and C56. This function does a good job at looking up the correct value, but I am unable to figure out how to do the averaging part. Any help would be greatly appreciated, as I have been stuck on this for hours. Thank you!

Last edited by td678 : January 27th 12 at 09:28 PM
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default Finding an average with the lookup function

Hi,

Am Fri, 27 Jan 2012 16:14:04 +0000 schrieb td678:

Note that this function does not actually work. What I want to do is to
take a value (F56), go and find where it is previously in the F column,
return the result from the corresponding C column, and then average
everything between that corresponding C column result and C56. This
function does a good job at looking up the correct value, but I am
unable to figure out how to do the averaging part. Any help would be
greatly appreciated, as I have been stuck on this for hours. Thank you!


try:
=SUMIF(F19:F55,F56,C19:C55)/COUNTIF(F19:F55,F56)


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default Finding an average with the lookup function

Hi,

Am Fri, 27 Jan 2012 20:54:49 +0100 schrieb Claus Busch:

=SUMIF(F19:F55,F56,C19:C55)/COUNTIF(F19:F55,F56)


if you use xl2007 or higher, you can also try:
=AVERAGEIF(F19:F55,F56,C19:C55)


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
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
Finding the average using conditions in a logic function - problem Thomas Excel Discussion (Misc queries) 1 August 1st 08 04:18 PM
I need help finding an average JHL Excel Discussion (Misc queries) 3 June 9th 07 07:59 PM
Average using lookup function [email protected] Excel Discussion (Misc queries) 9 June 25th 06 06:12 PM
Calculate the average using the Lookup function or similar Lars F Excel Discussion (Misc queries) 2 November 22nd 05 11:40 AM
Lookup Ques - finding value within a string to lookup [email protected] Excel Programming 2 September 25th 05 02:46 AM


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