+ Reply to Thread
Results 1 to 16 of 16

Getting SPILL reference when using IF to return from a range

  1. #1
    Registered User
    Join Date
    09-21-2020
    Location
    England
    MS-Off Ver
    O365
    Posts
    14

    Getting SPILL reference when using IF to return from a range

    *Updated to meet guidelines *

    I am creating a project plan and want the phase status (highlighted in yellow on attached) to populate based on the worst case status from that phases’ tasks.

    For example, F5 is the phase status and where the formula is, F6 to F12 are the status for each task, there are 6 different statuses available (from a drop down on my main document).

    I thought I’d cracked it with the following but I just get a SPILL reference:

    =IFERROR(IF(F6:F13="In progress and off track","Off track",IF(F6:F13="In progress and at risk","At risk",IF(F6:F13="In progress and on track","On track",IF(F6:F13="Future date","Future",IF(F6:F13="Future date and at risk","At risk"))))),"Completed")

    ... any ideas would be massively appreciated!
    Attached Files Attached Files
    Last edited by TryingToLearnUK; 09-22-2020 at 06:31 AM. Reason: Asked to update

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,511

    Re: IF function troubles

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional.)



    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    09-21-2020
    Location
    England
    MS-Off Ver
    O365
    Posts
    14

    Re: IF function troubles

    Hi TMS, thank you for the guidance - hopefully my post is now reflective of the requested changes ?

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Getting SPILL reference when using IF to return from a range

    Please add some expected results ( manually). it is not clear whet you are trying to do
    (IF does not work as you described)
    What is the " worst case scenario"?

  5. #5
    Registered User
    Join Date
    09-21-2020
    Location
    England
    MS-Off Ver
    O365
    Posts
    14

    Re: Getting SPILL reference when using IF to return from a range

    Hi, sorry it's not clear.

    Basically I want F5 (the highlighted cell) to show the overarching status based on the sub tasks below it (rows 6 to 13). The overarching status (F5) will be worse case status from F6 to F13.

    So if any of the statuses in F6 to F13 show 'In progress and off track', I want F5 to show as 'Off track' - even if all the rest in F6 to F13 show as 'Completed'.

    Hope that clarifies?

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,511

    Re: Getting SPILL reference when using IF to return from a range

    Rather than trying to say:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    say
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If any of the cells in F6:F13 contain the text, the COUNTIF will return TRUE

  7. #7
    Registered User
    Join Date
    09-21-2020
    Location
    England
    MS-Off Ver
    O365
    Posts
    14

    Re: Getting SPILL reference when using IF to return from a range

    Hi - thanks so much for coming back, I am not 100% clear on your suggestion (apologies!).

    I have tried the following and am obviously not inputting it correctly (try as I might!!):

    =iferror(IF(COUNTIF(f6:F13,"In progress and off track","Off Track",""),countif(F6:F13,"In progress and on track","On Track",""),"Completed"))

    I have also tried:

    =IF(COUNTIF(F6:F13,"In progress and off track"),"Off track","") - this does work, but I can't figure out how to add all the additional items (such as show at risk, on track or completed).
    Last edited by TryingToLearnUK; 09-22-2020 at 06:08 AM.

  8. #8
    Registered User
    Join Date
    09-21-2020
    Location
    England
    MS-Off Ver
    O365
    Posts
    14

    Re: Getting SPILL reference when using IF to return from a range

    To try and help explain what I am hoping to achieve, below shows of the 6 possible statuses, the return value I would like in F5. I have ordered them in priority, so for example, if there are 10 task statuses, and 9 show 'In progress on on track', but one says 'In progress and off track', I want F5 (the overarching status) to return 'Off track'.

    Possible statuses What I want it to return
    In progress and off track Off track
    In progress and at risk At risk
    Future date and at risk At risk
    In progress and on track On track
    Future date and on track On track
    Completed Completed

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,511

    Re: Getting SPILL reference when using IF to return from a range

    Here you go ...

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

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,511

    Re: Getting SPILL reference when using IF to return from a range

    Note: the formula may not be in the right priority order but it is based on the fomula in Post #1

    You may have to resequence to get the worst case scenario first, second worst case second, and so on.

    Guessing that's not quite the same as Post #8
    Last edited by TMS; 09-22-2020 at 06:31 AM.

  11. #11
    Registered User
    Join Date
    09-21-2020
    Location
    England
    MS-Off Ver
    O365
    Posts
    14

    Re: Getting SPILL reference when using IF to return from a range

    FANTASTIC!! Thank you so much for taking the time to help me, added to my list of 'Must Learns'!! Have a good day

  12. #12
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,511

    Re: Getting SPILL reference when using IF to return from a range

    You're welcome. Thanks for the rep.

  13. #13
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,511

    Re: Getting SPILL reference when using IF to return from a range

    Also note: in this instance, you don't need IFERROR

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

  14. #14
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,511

    Re: Getting SPILL reference when using IF to return from a range

    And,lastly, forgot to thank you for changing the thread title. So, thank you . Makes everyone happy, especially the Moderators.

  15. #15
    Registered User
    Join Date
    09-21-2020
    Location
    England
    MS-Off Ver
    O365
    Posts
    14

    Re: Getting SPILL reference when using IF to return from a range

    No problem I love excel and am trying to learn it - in awe of you guys who post on here!!

    This was my first post so learnt a lot about being super clear - my mad ramblings don't quite translate sometimes!

  16. #16
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,511

    Re: Getting SPILL reference when using IF to return from a range

    To be fair, I think your request was reasonably clear. However, the forum is intended to be a resource for all and, as such, there are rules that govern proper (searchable) thread titles, use of Code Tags, and so on.

    You fixed the thread title very quickly which is commendable ... and allows us to move on with working on a solution.

    And you will almost certainly get a quicker answer if you post a sample file, ideally a cut down version of the real thing with sensitive data removed or replaced ... and showing expected results (mocked up).

+ 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 function troubles
    By lordFRZA in forum Excel General
    Replies: 3
    Last Post: 09-21-2011, 05:33 PM
  2. Troubles with the OFFSET function
    By ghostrider in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 03:05 AM
  3. [SOLVED] Troubles with the OFFSET function
    By ghostrider in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 02:05 AM
  4. [SOLVED] Troubles with the OFFSET function
    By ghostrider in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 01:05 AM
  5. [SOLVED] Troubles with the OFFSET function
    By ghostrider in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-05-2005, 11:05 PM
  6. [SOLVED] Troubles with the OFFSET function
    By ghostrider in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-05-2005, 10:05 PM
  7. [SOLVED] Troubles with the OFFSET function
    By ghostrider in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-01-2005, 01:05 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