+ Reply to Thread
Results 1 to 6 of 6

Formula problem---Arrgggh

  1. #1
    Registered User
    Join Date
    08-07-2016
    Location
    Birmingham
    MS-Off Ver
    2003
    Posts
    2

    Formula problem---Arrgggh

    Hi,

    I am using the following formula:

    =SUMIF(Y12:Y35,"<0.70833",M12:M35)/(IF(AND(M12:M35>0,Y12:Y35<0.70833),COUNTIF(Y12:Y35,"<0.70833")))

    When trying to calculate an average in Excel 2003. It works on "Value" date - but when I am applying the formula to cells that already have formulas in them - it doesn't seem to cooperate... Any ideas?

    Thanks in advance


    jazman

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Formula problem---Arrgggh

    Why do you not have quote marks in the AND section of the formula?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-07-2016
    Location
    Birmingham
    MS-Off Ver
    2003
    Posts
    2
    Quote Originally Posted by AliGW View Post
    Why do you not have quote marks in the AND section of the formula?

    Hi AliGW... where would I need to put the quote marks?

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Formula problem---Arrgggh

    AND doesn't work on ranges. You seem to want the average if Y < 0.70833 and if M >0, so you could use this array* formula:

    =AVERAGE(IF((Y12:Y35<0.70833)*(M12:M35>0),M12:M35))

    *An array formula needs to be committed using the key combination of Ctrl-Shift-Enter (CSE), rather than the usual < Enter >

    Hope this helps.

    Pete

    EDIT: Of course, I am assuming that your profile is correct and you are using XL2003. If you are now using a later version, you could use the AVERAGEIFS function.

  5. #5
    Forum Contributor
    Join Date
    05-06-2016
    Location
    Cluj, Romania
    MS-Off Ver
    2007-2010
    Posts
    220

    Re: Formula problem---Arrgggh

    or this regular formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,879

    Re: Formula problem---Arrgggh

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. If and or formula problem
    By CarrieK in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-06-2015, 02:38 PM
  2. Replies: 1
    Last Post: 01-06-2014, 03:54 AM
  3. IF formula problem
    By stang3O2 in forum Excel General
    Replies: 6
    Last Post: 11-01-2013, 11:36 PM
  4. Replies: 7
    Last Post: 02-03-2013, 06:25 PM
  5. Replies: 2
    Last Post: 01-22-2013, 07:09 AM
  6. Problem reading formula with ActiveCell.Formula
    By Matija in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2011, 06:10 AM
  7. Formula problem
    By Peter McCaul in forum Excel General
    Replies: 4
    Last Post: 11-21-2005, 04:10 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