Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Average if - data on separate sheet


I am trying to calculate the average of 5 questions if another question
responded 1 or 2, this equation keeps bringing up 0. The data is on another
worksheet in my workbook. The worksheet is called paste_data.


=AVERAGE(IF((paste_data!CL2:CL2000=1 or 2),paste_data!B2:F2000))
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 896
Default Average if - data on separate sheet

Excel will not calculate this formula for B2:F2000

for B2:B2000 try:

=AVERAGE(IF(((paste_data!CL2:CL2000=1)+(paste_data !
CL2:CL2000=2)),paste_data!B2:B2000)))

CTRL+SHIFT+ENTER this formula as it is an array-formula. If you insert
it correctly curly brackets { } will show

then you may continue for other ranges C2:C2000, D2:D2000 ...




On 21 Kwi, 13:09, mparker wrote:
I am trying to calculate the average of 5 questions if another question
responded 1 or 2, this equation keeps bringing up 0. *The data is on another
worksheet in my workbook. *The worksheet is called paste_data.

=AVERAGE(IF((paste_data!CL2:CL2000=1 or 2),paste_data!B2:F2000))


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 896
Default Average if - data on separate sheet

ooops, sorry, I was mistaken

=AVERAGE(IF(((paste_data!CL2:CL2000=1)+(paste_data !
CL2:CL2000=2)),paste_data!B2:F2000)))

WILL work

CTRL+SHIFT+ENTER this formula

On 21 Kwi, 13:38, Jarek Kujawa wrote:
Excel will not calculate this formula for B2:F2000

for B2:B2000 try:

=AVERAGE(IF(((paste_data!CL2:CL2000=1)+(paste_data !
CL2:CL2000=2)),paste_data!B2:B2000)))

CTRL+SHIFT+ENTER this formula as it is an array-formula. If you insert
it correctly curly brackets { } will show

then you may continue for other ranges C2:C2000, D2:D2000 ...

On 21 Kwi, 13:09, mparker wrote:



I am trying to calculate the average of 5 questions if another question
responded 1 or 2, this equation keeps bringing up 0. *The data is on another
worksheet in my workbook. *The worksheet is called paste_data.


=AVERAGE(IF((paste_data!CL2:CL2000=1 or 2),paste_data!B2:F2000))- Ukryj cytowany tekst -


- Pokaż cytowany tekst -


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 265
Default Average if - data on separate sheet

In article ,
mparker wrote:

I am trying to calculate the average of 5 questions if another question
responded 1 or 2, this equation keeps bringing up 0. The data is on another
worksheet in my workbook. The worksheet is called paste_data.


=AVERAGE(IF((paste_data!CL2:CL2000=1 or 2),paste_data!B2:F2000))


To average B2:F2000, where the corresponding value in CL2:CL2000 is
either 1 or 2, try...

=AVERAGE(IF(ISNUMBER(MATCH(paste_data!CL2:CL2000,{ 1,2},0)),paste_data!B2:
F2000))

....confirmed with CONTROL+SHIFT+ENTER.

--
Domenic
http://www.xl-central.com
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
Need to reorganize data on a separate sheet possibly using vlookup Asa_johannesen Excel Worksheet Functions 2 May 16th 08 07:07 PM
Frame an Invoice from the data available in a separate sheet of excel No News Excel Worksheet Functions 2 June 1st 07 01:06 PM
create a formula in one sheet that would read data from separate sheet automatically QD Excel Discussion (Misc queries) 0 December 8th 06 04:17 AM
vlookup formula not working with data on separate sheet akee Excel Worksheet Functions 18 March 16th 06 03:18 PM
combo box from data validation with source list in separate sheet Jay Trull Excel Worksheet Functions 6 March 7th 06 01:59 AM


All times are GMT +1. The time now is 02:50 PM.

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"