A Microsoft Excel forum. ExcelBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » ExcelBanter forum » Excel Newsgroups » Excel Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

AVERAGE with multiple conditions



 
 
Thread Tools Display Modes
  #1  
Old December 13th 16, 11:36 PM
AaronR AaronR is offline
Junior Member
 
First recorded activity by ExcelBanter: Dec 2016
Posts: 1
Unhappy AVERAGE with multiple conditions

Hello, I'm trying to calculate an average, but need to adhere to a couple conditions:
- Average must be of A and B
- A is capped at 125%
- B is capped at 163%
- A is capped at 100% if B<100%
- B is capped at 100% if A<100%

I came up with the following, but I'm just not sure how to make them play nicely together:

=AVERAGE(IF(G16>125%,125%,G16),(IF(M16>163%,163%,M 16)))

=AVERAGE(IF(M17<1,1,G17),(IF(G17<1,1,M17)))
Ads
  #2  
Old December 14th 16, 08:40 AM
DungSports DungSports is offline
Banned
 
First recorded activity by ExcelBanter: Dec 2016
Posts: 5
Default

Đang cần gấp
_________________
rau sạch

https://t.co/D99o6J5uAE
  #3  
Old December 15th 16, 11:42 PM posted to microsoft.public.excel.worksheet.functions
MyVeryOwnSelf[_3_]
external usenet poster
 
Posts: 40
Default AVERAGE with multiple conditions

> Hello, I'm trying to calculate an average, but need to adhere to a
> couple conditions:
> - Average must be of A and B
> - A is capped at 125%
> - B is capped at 163%
> - A is capped at 100% if B<100%
> - B is capped at 100% if A<100%
>
> I came up with the following, but I'm just not sure how to make them
> play nicely together:
> =AVERAGE(IF(G16>125%,125%,G16),(IF(M16>163%,163%,M 16)))
> =AVERAGE(IF(M17<1,1,G17),(IF(G17<1,1,M17)))


If I understand the requirements, this might help:
=AVERAGE(MIN(G16, 125%, IF(M16<1,1,G16)),
MIN(M16, 163%, IF(G16<1,1,M16)))
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Average with multiple conditions Jennifer Excel Discussion (Misc queries) 4 December 11th 09 05:49 PM
Array Average - Multiple Conditions? Ted[_5_] Excel Worksheet Functions 2 August 3rd 09 10:59 PM
Average If with multiple conditions WildWill Excel Discussion (Misc queries) 1 February 10th 09 10:45 AM
AVERAGE IF with multiple conditions WildWill Excel Discussion (Misc queries) 6 February 10th 09 07:52 AM
Average with multiple conditions Dez Excel Worksheet Functions 4 July 11th 07 06:07 PM


All times are GMT +1. The time now is 11:30 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright 2004-2017 ExcelBanter.
The comments are property of their posters.