+ Reply to Thread
Results 1 to 4 of 4

Arrary Formula for Average If/Or

  1. #1
    Registered User
    Join Date
    06-09-2015
    Location
    Michigan
    MS-Off Ver
    2007
    Posts
    9

    Arrary Formula for Average If/Or

    Good morning,

    I'm trying to create a formula that will average certain items that meet the following criteria:
    1) if column C matches F$1 on the Markup tab
    2) and if column A matches either of the following: $D58 on the Markup tab OR $E58

    After that, I need the average of the associated figures in column J.

    It returns a number... but it's not the right number (and yes, I did Cntl + Shift + Enter and it added the brackets)

    I think the problem is that it is acknowledging blanks as 0's... how do I have it skip blanks?

    =AVERAGE(IF(('Source-Detail'!$C$1:$C$2000=Markup!F$1)*(('Source-Detail'!$A$1:$A$2000=Markup!$D58)+('Source-Detail'!$A$1:$A$2000=Markup!$E58)),'Source-Detail'!$J$1:$J$2000))

  2. #2
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Arrary Formula for Average If/Or

    Does this get you closer?

    Please Login or Register  to view this content.
    Some people volunteer in soup kitchens or hospitals. I choose to make the world better by trying to help you with Excel. We're all learning.

    <---Click * Add Reputation for all helpful comments. It's like giving a smile.
    Forum Rules: How to mark your post [Solved] and have a happier, Excel enriched life.

  3. #3
    Registered User
    Join Date
    06-09-2015
    Location
    Michigan
    MS-Off Ver
    2007
    Posts
    9

    Re: Arrary Formula for Average If/Or

    Hi Nigelbloomy,

    Unfortunately not it gives a VALUE error.

  4. #4
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Arrary Formula for Average If/Or

    That happens when there is something that is not a number in one of the ranges it is looking at. If you have column headers you can adjust the ranges down to the second row.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Vlookup that searches for text within a cell that is listed in a table arrary
    By rossco47769 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-05-2014, 06:42 AM
  2. Help with arrary formula
    By ammartino44 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-28-2014, 02:29 AM
  3. Dear Friends, I want to found Column Number and Row number in Arrary.
    By chetu121 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-29-2014, 05:41 PM
  4. [SOLVED] need formula to average cells but if one cell has N/A then dont average and input N/A
    By CityInspector in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-08-2013, 04:16 PM
  5. Arrary with Findcontrol
    By Moody in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-22-2006, 06:35 PM

Tags for this Thread

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