+ Reply to Thread
Results 1 to 3 of 3

Display Text Based on Values in Cell Range

  1. #1
    Registered User
    Join Date
    03-21-2013
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    2

    Display Text Based on Values in Cell Range

    Hi,

    What I want this to accomplish is if a 3 is anywhere in the range of cells (B2:B6) on the input tab, it will display the text "EMERGENCY EVENT ACTIVE" on the output tab. If a 2 is displayed anywhere in the same range, display "EVENT POSSIBLE". And if a 1 is displayed, "NO CURRENT EVENTS". What I have set up now is =IF(LOOKUP(3,Input!B2:B6)=3,"EMERGENCY EVENT ACTIVE",IF(LOOKUP(2,Input!B2:B6)=2,"EVENT POSSIBLE","NO CURRENT EVENTS")) and it works for the cells B4 through B6, but it seems to look past B2 and B3. When B2 or B3 contain a 3 for "EVENT POSSIBLE", the output does not respond.

    Any clue as to why it isn't working properly for all the cells in the range? Should I use a different formula?

    Thank you in advance!

    (I've attached the basic template of what the issue I'm having is)
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    09-27-2012
    Location
    London, England
    MS-Off Ver
    2003, 2010
    Posts
    344

    Re: Display Text Based on Values in Cell Range

    Hi - Welcome to the forum.

    Perhaps you need to narrow down your criteria. For ex. what should be displayed in in output sheet if range B2:B6 has got all criterias 1, 2 and 3 or any 2 of these 3 criterias....

    Thanks.
    If solved kindly remember to mark Thread as solved.
    Click the small star icon at the bottom left of my post if this was useful.

  3. #3
    Registered User
    Join Date
    03-21-2013
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Display Text Based on Values in Cell Range

    Yes I suppose that would possibly work. Although I'm not sure what the function would look like? Could you maybe give me an example as to what you would do?

    Thanks

    Edit:

    Yeah I'm not sure what to do to get this to work. It seems that if I limit the range to only include 3 cells, the output will correlate properly. But I would like to have at least 5 cells that could change the output display. It needs to display "emergency" whenever there is a 3 anywhere in the range, display "possible" if there is a 2 anywhere in the range of cells (if there are no 3's in the range anyhow), and "none" when there are only 1's in the cells.

    I'm just not understanding why it works for up to 3 cells in a range but not 5.

    I'd appreciate any help soon!
    Last edited by kythom; 03-27-2013 at 11:12 AM. Reason: Update on issue

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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