+ Reply to Thread
Results 1 to 8 of 8

Finding Average Unless Any Cell Is Blank. If Blank return "Alert"

  1. #1
    Registered User
    Join Date
    09-09-2018
    Location
    Missouri, USA
    MS-Off Ver
    Microsoft for Mac, Version 16.16.1, Office 365
    Posts
    37

    Finding Average Unless Any Cell Is Blank. If Blank return "Alert"

    I am needing help figuring out a formula to find an average, but if one or more of the cells in the range are blank then I need the word "Alert" returned. There are no 0's in the data, but I would still like to capture that as a number in the event there is a 0 in the future. So the only time there would not be an average calculated is if one or more cells in the range is blank.

    Range:
    K2:O2

    Thanks so much!

  2. #2
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: Finding Average Unless Any Cell Is Blank. If Blank return "Alert"

    Try this:
    Please Login or Register  to view this content.
    Does that give you the results you're looking for?
    If someone helped achieve your solution, consider clicking "* Add Reputation" on their post.

    If your question has been answered, mark the thread as [SOLVED] using the Thread Tools menu at the top of the thread.

  3. #3
    Registered User
    Join Date
    09-09-2018
    Location
    Missouri, USA
    MS-Off Ver
    Microsoft for Mac, Version 16.16.1, Office 365
    Posts
    37

    Re: Finding Average Unless Any Cell Is Blank. If Blank return "Alert"

    It did!! Thank you so much! I tried and tried but couldn't figure it out.

    I want to take it a step farther and capture the average of the last 6 months. As a new month is added to the worksheet it would use it as month 1 and then only use 5 other months to total 6 months. Blanks will not be an issue as the Alert formula above took care of that, but if the cell says "Alert" then it should return "Alert" instead of an average.

  4. #4
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: Finding Average Unless Any Cell Is Blank. If Blank return "Alert"

    That would greatly depend on how your data is organized. If you can upload a small sample workbook, showing your data layout and some example data, that would allow us to provide specific assistance. In order to upload, click Go Advanced, then Manage Attachments. Click Browse to find your file, click Open, then click Upload. Click Close this window, and your file will be uploaded when you submit your reply.

  5. #5
    Registered User
    Join Date
    09-09-2018
    Location
    Missouri, USA
    MS-Off Ver
    Microsoft for Mac, Version 16.16.1, Office 365
    Posts
    37

    Re: Finding Average Unless Any Cell Is Blank. If Blank return "Alert"

    Absolutely! I included the attachment. As months go by, the information is entered to the bottom of the worksheet then sorted by ID (smallest to largest) then Data Date (newest to oldest).

    Thank you
    Attached Files Attached Files
    Last edited by Mizzou.2018; 05-20-2019 at 03:46 PM.

  6. #6
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: Finding Average Unless Any Cell Is Blank. If Blank return "Alert"

    I want to clarify a bit how you want to handle blanks for the 6 month rolling average. I think you want to show "Alert" if there are any blanks in the 6 months for a given ID. Is that correct?

    If that's the case, it looks like there would only be one 6 month average that would not show "Alert" for this data set. I'm guessing your actual data set is much larger.

  7. #7
    Registered User
    Join Date
    09-09-2018
    Location
    Missouri, USA
    MS-Off Ver
    Microsoft for Mac, Version 16.16.1, Office 365
    Posts
    37

    Re: Finding Average Unless Any Cell Is Blank. If Blank return "Alert"

    Correct, if any one of the 6 months in the monthly average column says Alert, then the rolling 6 months would be Alert as well. The data set is about 7000 rows and the percentage of alerts are minimal. I had too many alerts in the example document I attached.

  8. #8
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: Finding Average Unless Any Cell Is Blank. If Blank return "Alert"

    This is a formula that will only work after the data is sorted as specified in post #5. It also currently will average 6 months or less, if there are not 6 months that meet the criteria. I will work on a formula that does not require the data to be sorted. Try this in S2 and drag down:
    Please Login or Register  to view this content.
    Let me know what issues you run into with this formula.

+ 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. [SOLVED] If vlookup return blank means "paid", otherwise is "unpaid"
    By Dewdrop in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-12-2019, 05:51 AM
  2. [SOLVED] =IF(M4>=21,--TRUE(),"0") - need to return 0 from blank cell
    By E1137781 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-14-2017, 04:16 AM
  3. [SOLVED] add if blank cell then return "" to existing formula
    By cristylk in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-05-2017, 09:58 AM
  4. [SOLVED] Keeping particular cell blank if the related cells show "0" or "blank"
    By Anuru in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-24-2014, 05:30 AM
  5. Replies: 6
    Last Post: 09-25-2013, 01:51 PM
  6. Replies: 3
    Last Post: 02-16-2011, 02:55 PM
  7. Replies: 2
    Last Post: 03-03-2006, 02:45 PM

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