+ Reply to Thread
Results 1 to 2 of 2

If statement help

  1. #1
    lschuh
    Guest

    If statement help

    I want to average a group of numbers. I am using 1-5. If the average
    exceeds 5.0 I want the value to return 5.0 if not then I just want the
    average of the group of numbers. I wrote the following and the formula works
    if true but returns a "false" if false.
    =If(average(g9:g19)>5.0,5.0,Average(g9:g19)

    I know the above is incorrect. The formula works on the first part but if
    false if multiplies the second average.

  2. #2
    Elkar
    Guest

    RE: If statement help

    You don't really need an IF Statement for this. I think the MIN() function
    will work for you.

    =MIN(AVERAGE(G9:G19),5.0)

    This returns the lowest (minimum) value between 5 and the average of your
    range.

    HTH,
    Elkar

    "lschuh" wrote:

    > I want to average a group of numbers. I am using 1-5. If the average
    > exceeds 5.0 I want the value to return 5.0 if not then I just want the
    > average of the group of numbers. I wrote the following and the formula works
    > if true but returns a "false" if false.
    > =If(average(g9:g19)>5.0,5.0,Average(g9:g19)
    >
    > I know the above is incorrect. The formula works on the first part but if
    > false if multiplies the second average.


+ 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