+ Reply to Thread
Results 1 to 8 of 8

"MAX" Formula returning a result of "0" for cells containing "IF" Formula results

  1. #1
    Registered User
    Join Date
    11-08-2017
    Location
    Fort Wayne, Indiana, USA
    MS-Off Ver
    2010
    Posts
    5

    "MAX" Formula returning a result of "0" for cells containing "IF" Formula results

    AI10:AL10 contain an "IF" formula that will return a result of either the value provided in the attached image or "0". I want to show the "MAX" Value in cell AG10 of the range AI10:AL10 but I receive a result of "0" . I have tried removing the result "0" so that it would simply show a result of "False", It still showed a result of "0" for the "MAX" FormulaCapture.JPG

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: "MAX" Formula returning a result of "0" for cells containing "IF" Formula results

    What is the full IF formula, please? Better yet, can you please post the workbook rather than an image I can barely read?
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Registered User
    Join Date
    11-08-2017
    Location
    Fort Wayne, Indiana, USA
    MS-Off Ver
    2010
    Posts
    5

    Re: "MAX" Formula returning a result of "0" for cells containing "IF" Formula results

    First time user, Attached you should find the workbook.
    Thanks for any help you can provide
    Attached Files Attached Files

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: "MAX" Formula returning a result of "0" for cells containing "IF" Formula results

    Your IF formulas are returning text values. Get rid of the quotations around the numbers and then your MAX formula will work as expected.

  5. #5
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: "MAX" Formula returning a result of "0" for cells containing "IF" Formula results

    You need to use:
    =IF(AE10>0, 80,0)
    rather than
    =IF(AE10>0, "80","0")
    and so on. That way you will get true numbers that MAX will recognize and you also won't have to manually align the cells to the right since numbers do that automatically.

    You could simply select all those formula cells and Ctrl+H to bring up the Replace dialog, and then enter " in the Find box, leaving the Replace box empty and press Replace All, which will fix all of them at once.

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: "MAX" Formula returning a result of "0" for cells containing "IF" Formula results

    On another note, in AE10, you can use this:

    =YEAR(A$7)-YEAR(AD10)

    and drag it down the entire column. The $ before the row reference locks the row reference.

  7. #7
    Registered User
    Join Date
    11-08-2017
    Location
    Fort Wayne, Indiana, USA
    MS-Off Ver
    2010
    Posts
    5

    Re: "MAX" Formula returning a result of "0" for cells containing "IF" Formula results

    Greatly appreciated, was banging my head against the desk for the past two days

  8. #8
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: "MAX" Formula returning a result of "0" for cells containing "IF" Formula results

    Glad we could help. Thanks for the rep!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  2. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  3. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  4. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  5. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  6. Replies: 3
    Last Post: 12-14-2006, 01:36 PM
  7. [SOLVED] If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ...
    By Maria J-son in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2006, 08:25 AM

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