Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() 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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Need to reorganize data on a separate sheet possibly using vlookup | Excel Worksheet Functions | |||
Frame an Invoice from the data available in a separate sheet of excel | Excel Worksheet Functions | |||
create a formula in one sheet that would read data from separate sheet automatically | Excel Discussion (Misc queries) | |||
vlookup formula not working with data on separate sheet | Excel Worksheet Functions | |||
combo box from data validation with source list in separate sheet | Excel Worksheet Functions |