+ Reply to Thread
Results 1 to 66 of 66

Help with IF & Average Functions

  1. #1
    Registered User
    Join Date
    08-22-2005
    Posts
    6

    Help with IF & Average Functions

    I'm a newbe having problems with the functions IF and AVERAGE. I have a spreadsheet with about 1322 rows. In Column "B" I have a value that ranges from 0-10. In Column "D" I have numerical data.

    I want to average only those rows in Column "D" that have a certain value in Column "B". I created the following formula:

    =AVERAGE(IF(B1:B1322=3,D1:D1322))

    All it returns is the average of all the numbers in Column "D". What am I doing wrong?

    Thanks,

    Tom

  2. #2
    Registered User
    Join Date
    08-22-2005
    Posts
    4
    One Way

    =SUMIF(B:B,3,D:D)/COUNTIF(B:B,3)

  3. #3
    Max
    Guest

    Re: Help with IF & Average Functions

    "Cybertech" wrote:
    ....
    > =AVERAGE(IF(B1:B1322=3,D1:D1322))
    > All it returns is the average of all the numbers in Column "D".
    > What am I doing wrong?


    The formula should work properly,
    but it's an array formula which needs to be array-entered,
    i.e. press CTRL+SHIFT+ENTER,
    instead of just pressing ENTER to confirm the formula

    If you do it correctly,
    Excel will wrap curly braces { } around the formula,
    viz. if you look closely, it'll appear in the formula bar as:

    {=AVERAGE(IF(B1:B1322=3,D1:D1322))}

    (Do not type the curly braces in yourself !)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  4. #4
    kk
    Guest

    Re: Help with IF & Average Functions

    Hi Tom,

    Your formula should be working. You need to press Ctrl+Shift+Enter to
    confirm the formula.
    Excel will places curly braces around your formula.

    Take a look at here:
    http://www.cpearson.com/excel/array.htm
    http://www.emailoffice.com/excel/arrays-bobumlas.html

    kk


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...

    I'm a newbe having problems with the functions IF and AVERAGE. I have a
    spreadsheet with about 1322 rows. In Column "B" I have a value that
    ranges from 0-10. In Column "D" I have numerical data.

    I want to average only those rows in Column "D" that have a certain
    value in Column "B". I created the following formula:

    =AVERAGE(IF(B1:B1322=3,D1:D1322))

    All it returns is the average of all the numbers in Column "D". What am
    I doing wrong?

    Thanks,

    Tom


    --
    Cybertech
    ------------------------------------------------------------------------
    Cybertech's Profile:
    http://www.excelforum.com/member.php...o&userid=26533
    View this thread: http://www.excelforum.com/showthread...hreadid=398000



  5. #5
    Registered User
    Join Date
    08-22-2005
    Posts
    6

    Smile

    Thanks!!!

    To Max and kk for explaining my problem and showing how to enter an array.

    To Rowan for showing me another way to arrive at the correct answer.

  6. #6
    Max
    Guest

    Re: Help with IF & Average Functions

    You're welcome, Cybertech !
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --
    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Thanks!!!
    >
    > To Max and kk for explaining my problem and showing how to enter an
    > array.
    >
    > To Rowan for showing me another way to arrive at the correct answer.
    >




  7. #7
    Max
    Guest

    Re: Help with IF & Average Functions

    "Cybertech" wrote:
    ....
    > =AVERAGE(IF(B1:B1322=3,D1:D1322))
    > All it returns is the average of all the numbers in Column "D".
    > What am I doing wrong?


    The formula should work properly,
    but it's an array formula which needs to be array-entered,
    i.e. press CTRL+SHIFT+ENTER,
    instead of just pressing ENTER to confirm the formula

    If you do it correctly,
    Excel will wrap curly braces { } around the formula,
    viz. if you look closely, it'll appear in the formula bar as:

    {=AVERAGE(IF(B1:B1322=3,D1:D1322))}

    (Do not type the curly braces in yourself !)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  8. #8
    kk
    Guest

    Re: Help with IF & Average Functions

    Hi Tom,

    Your formula should be working. You need to press Ctrl+Shift+Enter to
    confirm the formula.
    Excel will places curly braces around your formula.

    Take a look at here:
    http://www.cpearson.com/excel/array.htm
    http://www.emailoffice.com/excel/arrays-bobumlas.html

    kk


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...

    I'm a newbe having problems with the functions IF and AVERAGE. I have a
    spreadsheet with about 1322 rows. In Column "B" I have a value that
    ranges from 0-10. In Column "D" I have numerical data.

    I want to average only those rows in Column "D" that have a certain
    value in Column "B". I created the following formula:

    =AVERAGE(IF(B1:B1322=3,D1:D1322))

    All it returns is the average of all the numbers in Column "D". What am
    I doing wrong?

    Thanks,

    Tom


    --
    Cybertech
    ------------------------------------------------------------------------
    Cybertech's Profile:
    http://www.excelforum.com/member.php...o&userid=26533
    View this thread: http://www.excelforum.com/showthread...hreadid=398000



  9. #9
    Max
    Guest

    Re: Help with IF & Average Functions

    You're welcome, Cybertech !
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --
    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Thanks!!!
    >
    > To Max and kk for explaining my problem and showing how to enter an
    > array.
    >
    > To Rowan for showing me another way to arrive at the correct answer.
    >




  10. #10
    Max
    Guest

    Re: Help with IF & Average Functions

    You're welcome, Cybertech !
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --
    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Thanks!!!
    >
    > To Max and kk for explaining my problem and showing how to enter an
    > array.
    >
    > To Rowan for showing me another way to arrive at the correct answer.
    >




  11. #11
    kk
    Guest

    Re: Help with IF & Average Functions

    Hi Tom,

    Your formula should be working. You need to press Ctrl+Shift+Enter to
    confirm the formula.
    Excel will places curly braces around your formula.

    Take a look at here:
    http://www.cpearson.com/excel/array.htm
    http://www.emailoffice.com/excel/arrays-bobumlas.html

    kk


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...

    I'm a newbe having problems with the functions IF and AVERAGE. I have a
    spreadsheet with about 1322 rows. In Column "B" I have a value that
    ranges from 0-10. In Column "D" I have numerical data.

    I want to average only those rows in Column "D" that have a certain
    value in Column "B". I created the following formula:

    =AVERAGE(IF(B1:B1322=3,D1:D1322))

    All it returns is the average of all the numbers in Column "D". What am
    I doing wrong?

    Thanks,

    Tom


    --
    Cybertech
    ------------------------------------------------------------------------
    Cybertech's Profile:
    http://www.excelforum.com/member.php...o&userid=26533
    View this thread: http://www.excelforum.com/showthread...hreadid=398000



  12. #12
    Max
    Guest

    Re: Help with IF & Average Functions

    "Cybertech" wrote:
    ....
    > =AVERAGE(IF(B1:B1322=3,D1:D1322))
    > All it returns is the average of all the numbers in Column "D".
    > What am I doing wrong?


    The formula should work properly,
    but it's an array formula which needs to be array-entered,
    i.e. press CTRL+SHIFT+ENTER,
    instead of just pressing ENTER to confirm the formula

    If you do it correctly,
    Excel will wrap curly braces { } around the formula,
    viz. if you look closely, it'll appear in the formula bar as:

    {=AVERAGE(IF(B1:B1322=3,D1:D1322))}

    (Do not type the curly braces in yourself !)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  13. #13
    Max
    Guest

    Re: Help with IF & Average Functions

    "Cybertech" wrote:
    ....
    > =AVERAGE(IF(B1:B1322=3,D1:D1322))
    > All it returns is the average of all the numbers in Column "D".
    > What am I doing wrong?


    The formula should work properly,
    but it's an array formula which needs to be array-entered,
    i.e. press CTRL+SHIFT+ENTER,
    instead of just pressing ENTER to confirm the formula

    If you do it correctly,
    Excel will wrap curly braces { } around the formula,
    viz. if you look closely, it'll appear in the formula bar as:

    {=AVERAGE(IF(B1:B1322=3,D1:D1322))}

    (Do not type the curly braces in yourself !)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  14. #14
    Max
    Guest

    Re: Help with IF & Average Functions

    You're welcome, Cybertech !
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --
    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Thanks!!!
    >
    > To Max and kk for explaining my problem and showing how to enter an
    > array.
    >
    > To Rowan for showing me another way to arrive at the correct answer.
    >




  15. #15
    kk
    Guest

    Re: Help with IF & Average Functions

    Hi Tom,

    Your formula should be working. You need to press Ctrl+Shift+Enter to
    confirm the formula.
    Excel will places curly braces around your formula.

    Take a look at here:
    http://www.cpearson.com/excel/array.htm
    http://www.emailoffice.com/excel/arrays-bobumlas.html

    kk


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...

    I'm a newbe having problems with the functions IF and AVERAGE. I have a
    spreadsheet with about 1322 rows. In Column "B" I have a value that
    ranges from 0-10. In Column "D" I have numerical data.

    I want to average only those rows in Column "D" that have a certain
    value in Column "B". I created the following formula:

    =AVERAGE(IF(B1:B1322=3,D1:D1322))

    All it returns is the average of all the numbers in Column "D". What am
    I doing wrong?

    Thanks,

    Tom


    --
    Cybertech
    ------------------------------------------------------------------------
    Cybertech's Profile:
    http://www.excelforum.com/member.php...o&userid=26533
    View this thread: http://www.excelforum.com/showthread...hreadid=398000



  16. #16
    Max
    Guest

    Re: Help with IF & Average Functions

    You're welcome, Cybertech !
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --
    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Thanks!!!
    >
    > To Max and kk for explaining my problem and showing how to enter an
    > array.
    >
    > To Rowan for showing me another way to arrive at the correct answer.
    >




  17. #17
    kk
    Guest

    Re: Help with IF & Average Functions

    Hi Tom,

    Your formula should be working. You need to press Ctrl+Shift+Enter to
    confirm the formula.
    Excel will places curly braces around your formula.

    Take a look at here:
    http://www.cpearson.com/excel/array.htm
    http://www.emailoffice.com/excel/arrays-bobumlas.html

    kk


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...

    I'm a newbe having problems with the functions IF and AVERAGE. I have a
    spreadsheet with about 1322 rows. In Column "B" I have a value that
    ranges from 0-10. In Column "D" I have numerical data.

    I want to average only those rows in Column "D" that have a certain
    value in Column "B". I created the following formula:

    =AVERAGE(IF(B1:B1322=3,D1:D1322))

    All it returns is the average of all the numbers in Column "D". What am
    I doing wrong?

    Thanks,

    Tom


    --
    Cybertech
    ------------------------------------------------------------------------
    Cybertech's Profile:
    http://www.excelforum.com/member.php...o&userid=26533
    View this thread: http://www.excelforum.com/showthread...hreadid=398000



  18. #18
    Max
    Guest

    Re: Help with IF & Average Functions

    "Cybertech" wrote:
    ....
    > =AVERAGE(IF(B1:B1322=3,D1:D1322))
    > All it returns is the average of all the numbers in Column "D".
    > What am I doing wrong?


    The formula should work properly,
    but it's an array formula which needs to be array-entered,
    i.e. press CTRL+SHIFT+ENTER,
    instead of just pressing ENTER to confirm the formula

    If you do it correctly,
    Excel will wrap curly braces { } around the formula,
    viz. if you look closely, it'll appear in the formula bar as:

    {=AVERAGE(IF(B1:B1322=3,D1:D1322))}

    (Do not type the curly braces in yourself !)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  19. #19
    Max
    Guest

    Re: Help with IF & Average Functions

    "Cybertech" wrote:
    ....
    > =AVERAGE(IF(B1:B1322=3,D1:D1322))
    > All it returns is the average of all the numbers in Column "D".
    > What am I doing wrong?


    The formula should work properly,
    but it's an array formula which needs to be array-entered,
    i.e. press CTRL+SHIFT+ENTER,
    instead of just pressing ENTER to confirm the formula

    If you do it correctly,
    Excel will wrap curly braces { } around the formula,
    viz. if you look closely, it'll appear in the formula bar as:

    {=AVERAGE(IF(B1:B1322=3,D1:D1322))}

    (Do not type the curly braces in yourself !)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  20. #20
    kk
    Guest

    Re: Help with IF & Average Functions

    Hi Tom,

    Your formula should be working. You need to press Ctrl+Shift+Enter to
    confirm the formula.
    Excel will places curly braces around your formula.

    Take a look at here:
    http://www.cpearson.com/excel/array.htm
    http://www.emailoffice.com/excel/arrays-bobumlas.html

    kk


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...

    I'm a newbe having problems with the functions IF and AVERAGE. I have a
    spreadsheet with about 1322 rows. In Column "B" I have a value that
    ranges from 0-10. In Column "D" I have numerical data.

    I want to average only those rows in Column "D" that have a certain
    value in Column "B". I created the following formula:

    =AVERAGE(IF(B1:B1322=3,D1:D1322))

    All it returns is the average of all the numbers in Column "D". What am
    I doing wrong?

    Thanks,

    Tom


    --
    Cybertech
    ------------------------------------------------------------------------
    Cybertech's Profile:
    http://www.excelforum.com/member.php...o&userid=26533
    View this thread: http://www.excelforum.com/showthread...hreadid=398000



  21. #21
    Max
    Guest

    Re: Help with IF & Average Functions

    You're welcome, Cybertech !
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --
    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Thanks!!!
    >
    > To Max and kk for explaining my problem and showing how to enter an
    > array.
    >
    > To Rowan for showing me another way to arrive at the correct answer.
    >




  22. #22
    Max
    Guest

    Re: Help with IF & Average Functions

    You're welcome, Cybertech !
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --
    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Thanks!!!
    >
    > To Max and kk for explaining my problem and showing how to enter an
    > array.
    >
    > To Rowan for showing me another way to arrive at the correct answer.
    >




  23. #23
    kk
    Guest

    Re: Help with IF & Average Functions

    Hi Tom,

    Your formula should be working. You need to press Ctrl+Shift+Enter to
    confirm the formula.
    Excel will places curly braces around your formula.

    Take a look at here:
    http://www.cpearson.com/excel/array.htm
    http://www.emailoffice.com/excel/arrays-bobumlas.html

    kk


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...

    I'm a newbe having problems with the functions IF and AVERAGE. I have a
    spreadsheet with about 1322 rows. In Column "B" I have a value that
    ranges from 0-10. In Column "D" I have numerical data.

    I want to average only those rows in Column "D" that have a certain
    value in Column "B". I created the following formula:

    =AVERAGE(IF(B1:B1322=3,D1:D1322))

    All it returns is the average of all the numbers in Column "D". What am
    I doing wrong?

    Thanks,

    Tom


    --
    Cybertech
    ------------------------------------------------------------------------
    Cybertech's Profile:
    http://www.excelforum.com/member.php...o&userid=26533
    View this thread: http://www.excelforum.com/showthread...hreadid=398000



  24. #24
    Max
    Guest

    Re: Help with IF & Average Functions

    "Cybertech" wrote:
    ....
    > =AVERAGE(IF(B1:B1322=3,D1:D1322))
    > All it returns is the average of all the numbers in Column "D".
    > What am I doing wrong?


    The formula should work properly,
    but it's an array formula which needs to be array-entered,
    i.e. press CTRL+SHIFT+ENTER,
    instead of just pressing ENTER to confirm the formula

    If you do it correctly,
    Excel will wrap curly braces { } around the formula,
    viz. if you look closely, it'll appear in the formula bar as:

    {=AVERAGE(IF(B1:B1322=3,D1:D1322))}

    (Do not type the curly braces in yourself !)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  25. #25
    Max
    Guest

    Re: Help with IF & Average Functions

    You're welcome, Cybertech !
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --
    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Thanks!!!
    >
    > To Max and kk for explaining my problem and showing how to enter an
    > array.
    >
    > To Rowan for showing me another way to arrive at the correct answer.
    >




  26. #26
    Max
    Guest

    Re: Help with IF & Average Functions

    "Cybertech" wrote:
    ....
    > =AVERAGE(IF(B1:B1322=3,D1:D1322))
    > All it returns is the average of all the numbers in Column "D".
    > What am I doing wrong?


    The formula should work properly,
    but it's an array formula which needs to be array-entered,
    i.e. press CTRL+SHIFT+ENTER,
    instead of just pressing ENTER to confirm the formula

    If you do it correctly,
    Excel will wrap curly braces { } around the formula,
    viz. if you look closely, it'll appear in the formula bar as:

    {=AVERAGE(IF(B1:B1322=3,D1:D1322))}

    (Do not type the curly braces in yourself !)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  27. #27
    kk
    Guest

    Re: Help with IF & Average Functions

    Hi Tom,

    Your formula should be working. You need to press Ctrl+Shift+Enter to
    confirm the formula.
    Excel will places curly braces around your formula.

    Take a look at here:
    http://www.cpearson.com/excel/array.htm
    http://www.emailoffice.com/excel/arrays-bobumlas.html

    kk


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...

    I'm a newbe having problems with the functions IF and AVERAGE. I have a
    spreadsheet with about 1322 rows. In Column "B" I have a value that
    ranges from 0-10. In Column "D" I have numerical data.

    I want to average only those rows in Column "D" that have a certain
    value in Column "B". I created the following formula:

    =AVERAGE(IF(B1:B1322=3,D1:D1322))

    All it returns is the average of all the numbers in Column "D". What am
    I doing wrong?

    Thanks,

    Tom


    --
    Cybertech
    ------------------------------------------------------------------------
    Cybertech's Profile:
    http://www.excelforum.com/member.php...o&userid=26533
    View this thread: http://www.excelforum.com/showthread...hreadid=398000



  28. #28
    Max
    Guest

    Re: Help with IF & Average Functions

    "Cybertech" wrote:
    ....
    > =AVERAGE(IF(B1:B1322=3,D1:D1322))
    > All it returns is the average of all the numbers in Column "D".
    > What am I doing wrong?


    The formula should work properly,
    but it's an array formula which needs to be array-entered,
    i.e. press CTRL+SHIFT+ENTER,
    instead of just pressing ENTER to confirm the formula

    If you do it correctly,
    Excel will wrap curly braces { } around the formula,
    viz. if you look closely, it'll appear in the formula bar as:

    {=AVERAGE(IF(B1:B1322=3,D1:D1322))}

    (Do not type the curly braces in yourself !)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  29. #29
    kk
    Guest

    Re: Help with IF & Average Functions

    Hi Tom,

    Your formula should be working. You need to press Ctrl+Shift+Enter to
    confirm the formula.
    Excel will places curly braces around your formula.

    Take a look at here:
    http://www.cpearson.com/excel/array.htm
    http://www.emailoffice.com/excel/arrays-bobumlas.html

    kk


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...

    I'm a newbe having problems with the functions IF and AVERAGE. I have a
    spreadsheet with about 1322 rows. In Column "B" I have a value that
    ranges from 0-10. In Column "D" I have numerical data.

    I want to average only those rows in Column "D" that have a certain
    value in Column "B". I created the following formula:

    =AVERAGE(IF(B1:B1322=3,D1:D1322))

    All it returns is the average of all the numbers in Column "D". What am
    I doing wrong?

    Thanks,

    Tom


    --
    Cybertech
    ------------------------------------------------------------------------
    Cybertech's Profile:
    http://www.excelforum.com/member.php...o&userid=26533
    View this thread: http://www.excelforum.com/showthread...hreadid=398000



  30. #30
    Max
    Guest

    Re: Help with IF & Average Functions

    You're welcome, Cybertech !
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --
    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Thanks!!!
    >
    > To Max and kk for explaining my problem and showing how to enter an
    > array.
    >
    > To Rowan for showing me another way to arrive at the correct answer.
    >




  31. #31
    Max
    Guest

    Re: Help with IF & Average Functions

    You're welcome, Cybertech !
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --
    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Thanks!!!
    >
    > To Max and kk for explaining my problem and showing how to enter an
    > array.
    >
    > To Rowan for showing me another way to arrive at the correct answer.
    >




  32. #32
    kk
    Guest

    Re: Help with IF & Average Functions

    Hi Tom,

    Your formula should be working. You need to press Ctrl+Shift+Enter to
    confirm the formula.
    Excel will places curly braces around your formula.

    Take a look at here:
    http://www.cpearson.com/excel/array.htm
    http://www.emailoffice.com/excel/arrays-bobumlas.html

    kk


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...

    I'm a newbe having problems with the functions IF and AVERAGE. I have a
    spreadsheet with about 1322 rows. In Column "B" I have a value that
    ranges from 0-10. In Column "D" I have numerical data.

    I want to average only those rows in Column "D" that have a certain
    value in Column "B". I created the following formula:

    =AVERAGE(IF(B1:B1322=3,D1:D1322))

    All it returns is the average of all the numbers in Column "D". What am
    I doing wrong?

    Thanks,

    Tom


    --
    Cybertech
    ------------------------------------------------------------------------
    Cybertech's Profile:
    http://www.excelforum.com/member.php...o&userid=26533
    View this thread: http://www.excelforum.com/showthread...hreadid=398000



  33. #33
    Max
    Guest

    Re: Help with IF & Average Functions

    "Cybertech" wrote:
    ....
    > =AVERAGE(IF(B1:B1322=3,D1:D1322))
    > All it returns is the average of all the numbers in Column "D".
    > What am I doing wrong?


    The formula should work properly,
    but it's an array formula which needs to be array-entered,
    i.e. press CTRL+SHIFT+ENTER,
    instead of just pressing ENTER to confirm the formula

    If you do it correctly,
    Excel will wrap curly braces { } around the formula,
    viz. if you look closely, it'll appear in the formula bar as:

    {=AVERAGE(IF(B1:B1322=3,D1:D1322))}

    (Do not type the curly braces in yourself !)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  34. #34
    Max
    Guest

    Re: Help with IF & Average Functions

    "Cybertech" wrote:
    ....
    > =AVERAGE(IF(B1:B1322=3,D1:D1322))
    > All it returns is the average of all the numbers in Column "D".
    > What am I doing wrong?


    The formula should work properly,
    but it's an array formula which needs to be array-entered,
    i.e. press CTRL+SHIFT+ENTER,
    instead of just pressing ENTER to confirm the formula

    If you do it correctly,
    Excel will wrap curly braces { } around the formula,
    viz. if you look closely, it'll appear in the formula bar as:

    {=AVERAGE(IF(B1:B1322=3,D1:D1322))}

    (Do not type the curly braces in yourself !)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  35. #35
    Max
    Guest

    Re: Help with IF & Average Functions

    You're welcome, Cybertech !
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --
    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Thanks!!!
    >
    > To Max and kk for explaining my problem and showing how to enter an
    > array.
    >
    > To Rowan for showing me another way to arrive at the correct answer.
    >




  36. #36
    kk
    Guest

    Re: Help with IF & Average Functions

    Hi Tom,

    Your formula should be working. You need to press Ctrl+Shift+Enter to
    confirm the formula.
    Excel will places curly braces around your formula.

    Take a look at here:
    http://www.cpearson.com/excel/array.htm
    http://www.emailoffice.com/excel/arrays-bobumlas.html

    kk


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...

    I'm a newbe having problems with the functions IF and AVERAGE. I have a
    spreadsheet with about 1322 rows. In Column "B" I have a value that
    ranges from 0-10. In Column "D" I have numerical data.

    I want to average only those rows in Column "D" that have a certain
    value in Column "B". I created the following formula:

    =AVERAGE(IF(B1:B1322=3,D1:D1322))

    All it returns is the average of all the numbers in Column "D". What am
    I doing wrong?

    Thanks,

    Tom


    --
    Cybertech
    ------------------------------------------------------------------------
    Cybertech's Profile:
    http://www.excelforum.com/member.php...o&userid=26533
    View this thread: http://www.excelforum.com/showthread...hreadid=398000



  37. #37
    Max
    Guest

    Re: Help with IF & Average Functions

    You're welcome, Cybertech !
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --
    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Thanks!!!
    >
    > To Max and kk for explaining my problem and showing how to enter an
    > array.
    >
    > To Rowan for showing me another way to arrive at the correct answer.
    >




  38. #38
    kk
    Guest

    Re: Help with IF & Average Functions

    Hi Tom,

    Your formula should be working. You need to press Ctrl+Shift+Enter to
    confirm the formula.
    Excel will places curly braces around your formula.

    Take a look at here:
    http://www.cpearson.com/excel/array.htm
    http://www.emailoffice.com/excel/arrays-bobumlas.html

    kk


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...

    I'm a newbe having problems with the functions IF and AVERAGE. I have a
    spreadsheet with about 1322 rows. In Column "B" I have a value that
    ranges from 0-10. In Column "D" I have numerical data.

    I want to average only those rows in Column "D" that have a certain
    value in Column "B". I created the following formula:

    =AVERAGE(IF(B1:B1322=3,D1:D1322))

    All it returns is the average of all the numbers in Column "D". What am
    I doing wrong?

    Thanks,

    Tom


    --
    Cybertech
    ------------------------------------------------------------------------
    Cybertech's Profile:
    http://www.excelforum.com/member.php...o&userid=26533
    View this thread: http://www.excelforum.com/showthread...hreadid=398000



  39. #39
    Max
    Guest

    Re: Help with IF & Average Functions

    "Cybertech" wrote:
    ....
    > =AVERAGE(IF(B1:B1322=3,D1:D1322))
    > All it returns is the average of all the numbers in Column "D".
    > What am I doing wrong?


    The formula should work properly,
    but it's an array formula which needs to be array-entered,
    i.e. press CTRL+SHIFT+ENTER,
    instead of just pressing ENTER to confirm the formula

    If you do it correctly,
    Excel will wrap curly braces { } around the formula,
    viz. if you look closely, it'll appear in the formula bar as:

    {=AVERAGE(IF(B1:B1322=3,D1:D1322))}

    (Do not type the curly braces in yourself !)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  40. #40
    Max
    Guest

    Re: Help with IF & Average Functions

    You're welcome, Cybertech !
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --
    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Thanks!!!
    >
    > To Max and kk for explaining my problem and showing how to enter an
    > array.
    >
    > To Rowan for showing me another way to arrive at the correct answer.
    >




  41. #41
    kk
    Guest

    Re: Help with IF & Average Functions

    Hi Tom,

    Your formula should be working. You need to press Ctrl+Shift+Enter to
    confirm the formula.
    Excel will places curly braces around your formula.

    Take a look at here:
    http://www.cpearson.com/excel/array.htm
    http://www.emailoffice.com/excel/arrays-bobumlas.html

    kk


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...

    I'm a newbe having problems with the functions IF and AVERAGE. I have a
    spreadsheet with about 1322 rows. In Column "B" I have a value that
    ranges from 0-10. In Column "D" I have numerical data.

    I want to average only those rows in Column "D" that have a certain
    value in Column "B". I created the following formula:

    =AVERAGE(IF(B1:B1322=3,D1:D1322))

    All it returns is the average of all the numbers in Column "D". What am
    I doing wrong?

    Thanks,

    Tom


    --
    Cybertech
    ------------------------------------------------------------------------
    Cybertech's Profile:
    http://www.excelforum.com/member.php...o&userid=26533
    View this thread: http://www.excelforum.com/showthread...hreadid=398000



  42. #42
    Max
    Guest

    Re: Help with IF & Average Functions

    "Cybertech" wrote:
    ....
    > =AVERAGE(IF(B1:B1322=3,D1:D1322))
    > All it returns is the average of all the numbers in Column "D".
    > What am I doing wrong?


    The formula should work properly,
    but it's an array formula which needs to be array-entered,
    i.e. press CTRL+SHIFT+ENTER,
    instead of just pressing ENTER to confirm the formula

    If you do it correctly,
    Excel will wrap curly braces { } around the formula,
    viz. if you look closely, it'll appear in the formula bar as:

    {=AVERAGE(IF(B1:B1322=3,D1:D1322))}

    (Do not type the curly braces in yourself !)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  43. #43
    Max
    Guest

    Re: Help with IF & Average Functions

    "Cybertech" wrote:
    ....
    > =AVERAGE(IF(B1:B1322=3,D1:D1322))
    > All it returns is the average of all the numbers in Column "D".
    > What am I doing wrong?


    The formula should work properly,
    but it's an array formula which needs to be array-entered,
    i.e. press CTRL+SHIFT+ENTER,
    instead of just pressing ENTER to confirm the formula

    If you do it correctly,
    Excel will wrap curly braces { } around the formula,
    viz. if you look closely, it'll appear in the formula bar as:

    {=AVERAGE(IF(B1:B1322=3,D1:D1322))}

    (Do not type the curly braces in yourself !)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  44. #44
    kk
    Guest

    Re: Help with IF & Average Functions

    Hi Tom,

    Your formula should be working. You need to press Ctrl+Shift+Enter to
    confirm the formula.
    Excel will places curly braces around your formula.

    Take a look at here:
    http://www.cpearson.com/excel/array.htm
    http://www.emailoffice.com/excel/arrays-bobumlas.html

    kk


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...

    I'm a newbe having problems with the functions IF and AVERAGE. I have a
    spreadsheet with about 1322 rows. In Column "B" I have a value that
    ranges from 0-10. In Column "D" I have numerical data.

    I want to average only those rows in Column "D" that have a certain
    value in Column "B". I created the following formula:

    =AVERAGE(IF(B1:B1322=3,D1:D1322))

    All it returns is the average of all the numbers in Column "D". What am
    I doing wrong?

    Thanks,

    Tom


    --
    Cybertech
    ------------------------------------------------------------------------
    Cybertech's Profile:
    http://www.excelforum.com/member.php...o&userid=26533
    View this thread: http://www.excelforum.com/showthread...hreadid=398000



  45. #45
    Max
    Guest

    Re: Help with IF & Average Functions

    You're welcome, Cybertech !
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --
    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Thanks!!!
    >
    > To Max and kk for explaining my problem and showing how to enter an
    > array.
    >
    > To Rowan for showing me another way to arrive at the correct answer.
    >




  46. #46
    kk
    Guest

    Re: Help with IF & Average Functions

    Hi Tom,

    Your formula should be working. You need to press Ctrl+Shift+Enter to
    confirm the formula.
    Excel will places curly braces around your formula.

    Take a look at here:
    http://www.cpearson.com/excel/array.htm
    http://www.emailoffice.com/excel/arrays-bobumlas.html

    kk


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...

    I'm a newbe having problems with the functions IF and AVERAGE. I have a
    spreadsheet with about 1322 rows. In Column "B" I have a value that
    ranges from 0-10. In Column "D" I have numerical data.

    I want to average only those rows in Column "D" that have a certain
    value in Column "B". I created the following formula:

    =AVERAGE(IF(B1:B1322=3,D1:D1322))

    All it returns is the average of all the numbers in Column "D". What am
    I doing wrong?

    Thanks,

    Tom


    --
    Cybertech
    ------------------------------------------------------------------------
    Cybertech's Profile:
    http://www.excelforum.com/member.php...o&userid=26533
    View this thread: http://www.excelforum.com/showthread...hreadid=398000



  47. #47
    Max
    Guest

    Re: Help with IF & Average Functions

    "Cybertech" wrote:
    ....
    > =AVERAGE(IF(B1:B1322=3,D1:D1322))
    > All it returns is the average of all the numbers in Column "D".
    > What am I doing wrong?


    The formula should work properly,
    but it's an array formula which needs to be array-entered,
    i.e. press CTRL+SHIFT+ENTER,
    instead of just pressing ENTER to confirm the formula

    If you do it correctly,
    Excel will wrap curly braces { } around the formula,
    viz. if you look closely, it'll appear in the formula bar as:

    {=AVERAGE(IF(B1:B1322=3,D1:D1322))}

    (Do not type the curly braces in yourself !)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  48. #48
    Max
    Guest

    Re: Help with IF & Average Functions

    You're welcome, Cybertech !
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --
    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Thanks!!!
    >
    > To Max and kk for explaining my problem and showing how to enter an
    > array.
    >
    > To Rowan for showing me another way to arrive at the correct answer.
    >




  49. #49
    Max
    Guest

    Re: Help with IF & Average Functions

    You're welcome, Cybertech !
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --
    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Thanks!!!
    >
    > To Max and kk for explaining my problem and showing how to enter an
    > array.
    >
    > To Rowan for showing me another way to arrive at the correct answer.
    >




  50. #50
    Max
    Guest

    Re: Help with IF & Average Functions

    "Cybertech" wrote:
    ....
    > =AVERAGE(IF(B1:B1322=3,D1:D1322))
    > All it returns is the average of all the numbers in Column "D".
    > What am I doing wrong?


    The formula should work properly,
    but it's an array formula which needs to be array-entered,
    i.e. press CTRL+SHIFT+ENTER,
    instead of just pressing ENTER to confirm the formula

    If you do it correctly,
    Excel will wrap curly braces { } around the formula,
    viz. if you look closely, it'll appear in the formula bar as:

    {=AVERAGE(IF(B1:B1322=3,D1:D1322))}

    (Do not type the curly braces in yourself !)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  51. #51
    kk
    Guest

    Re: Help with IF & Average Functions

    Hi Tom,

    Your formula should be working. You need to press Ctrl+Shift+Enter to
    confirm the formula.
    Excel will places curly braces around your formula.

    Take a look at here:
    http://www.cpearson.com/excel/array.htm
    http://www.emailoffice.com/excel/arrays-bobumlas.html

    kk


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...

    I'm a newbe having problems with the functions IF and AVERAGE. I have a
    spreadsheet with about 1322 rows. In Column "B" I have a value that
    ranges from 0-10. In Column "D" I have numerical data.

    I want to average only those rows in Column "D" that have a certain
    value in Column "B". I created the following formula:

    =AVERAGE(IF(B1:B1322=3,D1:D1322))

    All it returns is the average of all the numbers in Column "D". What am
    I doing wrong?

    Thanks,

    Tom


    --
    Cybertech
    ------------------------------------------------------------------------
    Cybertech's Profile:
    http://www.excelforum.com/member.php...o&userid=26533
    View this thread: http://www.excelforum.com/showthread...hreadid=398000



  52. #52
    Max
    Guest

    Re: Help with IF & Average Functions

    "Cybertech" wrote:
    ....
    > =AVERAGE(IF(B1:B1322=3,D1:D1322))
    > All it returns is the average of all the numbers in Column "D".
    > What am I doing wrong?


    The formula should work properly,
    but it's an array formula which needs to be array-entered,
    i.e. press CTRL+SHIFT+ENTER,
    instead of just pressing ENTER to confirm the formula

    If you do it correctly,
    Excel will wrap curly braces { } around the formula,
    viz. if you look closely, it'll appear in the formula bar as:

    {=AVERAGE(IF(B1:B1322=3,D1:D1322))}

    (Do not type the curly braces in yourself !)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  53. #53
    kk
    Guest

    Re: Help with IF & Average Functions

    Hi Tom,

    Your formula should be working. You need to press Ctrl+Shift+Enter to
    confirm the formula.
    Excel will places curly braces around your formula.

    Take a look at here:
    http://www.cpearson.com/excel/array.htm
    http://www.emailoffice.com/excel/arrays-bobumlas.html

    kk


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...

    I'm a newbe having problems with the functions IF and AVERAGE. I have a
    spreadsheet with about 1322 rows. In Column "B" I have a value that
    ranges from 0-10. In Column "D" I have numerical data.

    I want to average only those rows in Column "D" that have a certain
    value in Column "B". I created the following formula:

    =AVERAGE(IF(B1:B1322=3,D1:D1322))

    All it returns is the average of all the numbers in Column "D". What am
    I doing wrong?

    Thanks,

    Tom


    --
    Cybertech
    ------------------------------------------------------------------------
    Cybertech's Profile:
    http://www.excelforum.com/member.php...o&userid=26533
    View this thread: http://www.excelforum.com/showthread...hreadid=398000



  54. #54
    Max
    Guest

    Re: Help with IF & Average Functions

    You're welcome, Cybertech !
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --
    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Thanks!!!
    >
    > To Max and kk for explaining my problem and showing how to enter an
    > array.
    >
    > To Rowan for showing me another way to arrive at the correct answer.
    >




  55. #55
    Max
    Guest

    Re: Help with IF & Average Functions

    You're welcome, Cybertech !
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --
    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Thanks!!!
    >
    > To Max and kk for explaining my problem and showing how to enter an
    > array.
    >
    > To Rowan for showing me another way to arrive at the correct answer.
    >




  56. #56
    Max
    Guest

    Re: Help with IF & Average Functions

    "Cybertech" wrote:
    ....
    > =AVERAGE(IF(B1:B1322=3,D1:D1322))
    > All it returns is the average of all the numbers in Column "D".
    > What am I doing wrong?


    The formula should work properly,
    but it's an array formula which needs to be array-entered,
    i.e. press CTRL+SHIFT+ENTER,
    instead of just pressing ENTER to confirm the formula

    If you do it correctly,
    Excel will wrap curly braces { } around the formula,
    viz. if you look closely, it'll appear in the formula bar as:

    {=AVERAGE(IF(B1:B1322=3,D1:D1322))}

    (Do not type the curly braces in yourself !)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  57. #57
    kk
    Guest

    Re: Help with IF & Average Functions

    Hi Tom,

    Your formula should be working. You need to press Ctrl+Shift+Enter to
    confirm the formula.
    Excel will places curly braces around your formula.

    Take a look at here:
    http://www.cpearson.com/excel/array.htm
    http://www.emailoffice.com/excel/arrays-bobumlas.html

    kk


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...

    I'm a newbe having problems with the functions IF and AVERAGE. I have a
    spreadsheet with about 1322 rows. In Column "B" I have a value that
    ranges from 0-10. In Column "D" I have numerical data.

    I want to average only those rows in Column "D" that have a certain
    value in Column "B". I created the following formula:

    =AVERAGE(IF(B1:B1322=3,D1:D1322))

    All it returns is the average of all the numbers in Column "D". What am
    I doing wrong?

    Thanks,

    Tom


    --
    Cybertech
    ------------------------------------------------------------------------
    Cybertech's Profile:
    http://www.excelforum.com/member.php...o&userid=26533
    View this thread: http://www.excelforum.com/showthread...hreadid=398000



  58. #58
    Max
    Guest

    Re: Help with IF & Average Functions

    "Cybertech" wrote:
    ....
    > =AVERAGE(IF(B1:B1322=3,D1:D1322))
    > All it returns is the average of all the numbers in Column "D".
    > What am I doing wrong?


    The formula should work properly,
    but it's an array formula which needs to be array-entered,
    i.e. press CTRL+SHIFT+ENTER,
    instead of just pressing ENTER to confirm the formula

    If you do it correctly,
    Excel will wrap curly braces { } around the formula,
    viz. if you look closely, it'll appear in the formula bar as:

    {=AVERAGE(IF(B1:B1322=3,D1:D1322))}

    (Do not type the curly braces in yourself !)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  59. #59
    kk
    Guest

    Re: Help with IF & Average Functions

    Hi Tom,

    Your formula should be working. You need to press Ctrl+Shift+Enter to
    confirm the formula.
    Excel will places curly braces around your formula.

    Take a look at here:
    http://www.cpearson.com/excel/array.htm
    http://www.emailoffice.com/excel/arrays-bobumlas.html

    kk


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...

    I'm a newbe having problems with the functions IF and AVERAGE. I have a
    spreadsheet with about 1322 rows. In Column "B" I have a value that
    ranges from 0-10. In Column "D" I have numerical data.

    I want to average only those rows in Column "D" that have a certain
    value in Column "B". I created the following formula:

    =AVERAGE(IF(B1:B1322=3,D1:D1322))

    All it returns is the average of all the numbers in Column "D". What am
    I doing wrong?

    Thanks,

    Tom


    --
    Cybertech
    ------------------------------------------------------------------------
    Cybertech's Profile:
    http://www.excelforum.com/member.php...o&userid=26533
    View this thread: http://www.excelforum.com/showthread...hreadid=398000



  60. #60
    Max
    Guest

    Re: Help with IF & Average Functions

    You're welcome, Cybertech !
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --
    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Thanks!!!
    >
    > To Max and kk for explaining my problem and showing how to enter an
    > array.
    >
    > To Rowan for showing me another way to arrive at the correct answer.
    >




  61. #61
    Max
    Guest

    Re: Help with IF & Average Functions

    You're welcome, Cybertech !
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --
    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Thanks!!!
    >
    > To Max and kk for explaining my problem and showing how to enter an
    > array.
    >
    > To Rowan for showing me another way to arrive at the correct answer.
    >




  62. #62
    kk
    Guest

    Re: Help with IF & Average Functions

    Hi Tom,

    Your formula should be working. You need to press Ctrl+Shift+Enter to
    confirm the formula.
    Excel will places curly braces around your formula.

    Take a look at here:
    http://www.cpearson.com/excel/array.htm
    http://www.emailoffice.com/excel/arrays-bobumlas.html

    kk


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...

    I'm a newbe having problems with the functions IF and AVERAGE. I have a
    spreadsheet with about 1322 rows. In Column "B" I have a value that
    ranges from 0-10. In Column "D" I have numerical data.

    I want to average only those rows in Column "D" that have a certain
    value in Column "B". I created the following formula:

    =AVERAGE(IF(B1:B1322=3,D1:D1322))

    All it returns is the average of all the numbers in Column "D". What am
    I doing wrong?

    Thanks,

    Tom


    --
    Cybertech
    ------------------------------------------------------------------------
    Cybertech's Profile:
    http://www.excelforum.com/member.php...o&userid=26533
    View this thread: http://www.excelforum.com/showthread...hreadid=398000



  63. #63
    Max
    Guest

    Re: Help with IF & Average Functions

    "Cybertech" wrote:
    ....
    > =AVERAGE(IF(B1:B1322=3,D1:D1322))
    > All it returns is the average of all the numbers in Column "D".
    > What am I doing wrong?


    The formula should work properly,
    but it's an array formula which needs to be array-entered,
    i.e. press CTRL+SHIFT+ENTER,
    instead of just pressing ENTER to confirm the formula

    If you do it correctly,
    Excel will wrap curly braces { } around the formula,
    viz. if you look closely, it'll appear in the formula bar as:

    {=AVERAGE(IF(B1:B1322=3,D1:D1322))}

    (Do not type the curly braces in yourself !)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



  64. #64
    kk
    Guest

    Re: Help with IF & Average Functions

    Hi Tom,

    Your formula should be working. You need to press Ctrl+Shift+Enter to
    confirm the formula.
    Excel will places curly braces around your formula.

    Take a look at here:
    http://www.cpearson.com/excel/array.htm
    http://www.emailoffice.com/excel/arrays-bobumlas.html

    kk


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...

    I'm a newbe having problems with the functions IF and AVERAGE. I have a
    spreadsheet with about 1322 rows. In Column "B" I have a value that
    ranges from 0-10. In Column "D" I have numerical data.

    I want to average only those rows in Column "D" that have a certain
    value in Column "B". I created the following formula:

    =AVERAGE(IF(B1:B1322=3,D1:D1322))

    All it returns is the average of all the numbers in Column "D". What am
    I doing wrong?

    Thanks,

    Tom


    --
    Cybertech
    ------------------------------------------------------------------------
    Cybertech's Profile:
    http://www.excelforum.com/member.php...o&userid=26533
    View this thread: http://www.excelforum.com/showthread...hreadid=398000



  65. #65
    Max
    Guest

    Re: Help with IF & Average Functions

    You're welcome, Cybertech !
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --
    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Thanks!!!
    >
    > To Max and kk for explaining my problem and showing how to enter an
    > array.
    >
    > To Rowan for showing me another way to arrive at the correct answer.
    >




  66. #66
    Max
    Guest

    Re: Help with IF & Average Functions

    "Cybertech" wrote:
    ....
    > =AVERAGE(IF(B1:B1322=3,D1:D1322))
    > All it returns is the average of all the numbers in Column "D".
    > What am I doing wrong?


    The formula should work properly,
    but it's an array formula which needs to be array-entered,
    i.e. press CTRL+SHIFT+ENTER,
    instead of just pressing ENTER to confirm the formula

    If you do it correctly,
    Excel will wrap curly braces { } around the formula,
    viz. if you look closely, it'll appear in the formula bar as:

    {=AVERAGE(IF(B1:B1322=3,D1:D1322))}

    (Do not type the curly braces in yourself !)
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1