+ Reply to Thread
Results 1 to 13 of 13

Display "CLOSED" in A2 if nothing is entered in A2

Hybrid View

antmcg12 Display "CLOSED" in A2 if... 12-23-2014, 11:51 AM
Jonmo1 Re: Display "CLOSED" in A2 if... 12-23-2014, 11:56 AM
antmcg12 Re: Display "CLOSED" in A2 if... 12-23-2014, 12:13 PM
Sam Capricci Re: Display "CLOSED" in A2 if... 12-23-2014, 11:59 AM
Sam Capricci Re: Display "CLOSED" in A2 if... 12-23-2014, 12:20 PM
Jonmo1 Re: Display "CLOSED" in A2 if... 12-23-2014, 12:21 PM
antmcg12 Re: Display "CLOSED" in A2 if... 12-23-2014, 12:24 PM
Sam Capricci Re: Display "CLOSED" in A2 if... 12-23-2014, 12:32 PM
Jonmo1 Re: Display "CLOSED" in A2 if... 12-23-2014, 12:33 PM
Sam Capricci Re: Display "CLOSED" in A2 if... 12-23-2014, 12:37 PM
antmcg12 Re: Display "CLOSED" in A2 if... 12-23-2014, 12:36 PM
ChemistB Re: Display "CLOSED" in A2 if... 12-23-2014, 12:39 PM
Jonmo1 Re: Display "CLOSED" in A2 if... 12-23-2014, 12:58 PM
  1. #1
    Registered User
    Join Date
    08-25-2011
    Location
    Preston, England
    MS-Off Ver
    2010
    Posts
    24

    Display "CLOSED" in A2 if nothing is entered in A2

    I am using this formula in a spreadsheet =IF(AND(A2<>"",K2<>""),"CLOSED",IF(A2="","TO BUY","TO SELL"))

    When the line is empty, the cell with this formula in displays "TO SELL". I would like it to display CLOSED until something is entered in either A2 (when it would display "TO SELL") or when something is entered in K2 (when it would display "TO BUY").

    Any help on adjusting this formula would be appreciated.

    Thanks,

    Ant

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Display "CLOSED" in A2 if nothing is entered in A2

    Looks like you have the structure correct, but you should change both cases of <> to =

  3. #3
    Registered User
    Join Date
    08-25-2011
    Location
    Preston, England
    MS-Off Ver
    2010
    Posts
    24

    Re: Display "CLOSED" in A2 if nothing is entered in A2

    That nearly works but I need it to display closed if both A2 and K2 have something entered. In this case it displays TO SELL when both cells have something in.

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,684

    Re: Display "CLOSED" in A2 if nothing is entered in A2

    you may have to further define your other parameters such as K2 and what you want done with the last section about A2 = "" and to buy or to sell.
    something like this can work but I don't know what to do about the last part...
    =IF(A2="","closed",IF(AND(A2<>"",K2<>""),"closed",IF(A2="","to buy","to sell")))
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,684

    Re: Display "CLOSED" in A2 if nothing is entered in A2

    who are you replying to?

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Display "CLOSED" in A2 if nothing is entered in A2

    Let's do this, there are 4 possible combinations of the 2 cells..

    A2 is blank AND K2 is blank, I want ??
    A2 is blank AND K2 is NOT blank, I want ??
    A2 is NOT blank AND K2 is blank, I want ??
    A2 is NOT blank AND K2 is NOT blank, I want ??

  7. #7
    Registered User
    Join Date
    08-25-2011
    Location
    Preston, England
    MS-Off Ver
    2010
    Posts
    24

    Re: Display "CLOSED" in A2 if nothing is entered in A2

    I was replying to Jonmo sorry.

    Jonmo:

    A2 is blank AND K2 is blank, I want - CLOSED
    A2 is blank AND K2 is NOT blank, I want - TO BUY
    A2 is NOT blank AND K2 is blank, I want - TO SELL
    A2 is NOT blank AND K2 is NOT blank, I want - CLOSED

  8. #8
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,684

    Re: Display "CLOSED" in A2 if nothing is entered in A2

    this seems to work based on post #7 =IF(AND(A2="",K2=""),"closed",IF(AND(A2<>"",K2<>""),"closed",IF(AND(A2="",K2<>""),"to buy","to sell")))

  9. #9
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Display "CLOSED" in A2 if nothing is entered in A2

    Try

    =IF(OR(AND(A2="",K2=""),AND(A2<>"",K2<>"")),"Closed",IF(A2="","To Buy","To Sell"))

  10. #10
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,684

    Re: Display "CLOSED" in A2 if nothing is entered in A2

    Jonmo1, I like yours better, cleaner.
    I kept fiddling with the or and part but didn't parse it like you did.

    EDIT: and thanks antmcg12 for adding to my reputation.

  11. #11
    Registered User
    Join Date
    08-25-2011
    Location
    Preston, England
    MS-Off Ver
    2010
    Posts
    24

    Re: Display "CLOSED" in A2 if nothing is entered in A2

    Both of those work perferctly! Thanks Jonmo and Sambo.

  12. #12
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Display "CLOSED" in A2 if nothing is entered in A2

    Based on the title, you want these results (Closed, To Sell, etc.) to appear in A2 unless you enter something into A2 (plus other criteria). You cannot have both a formula and a manual entry in the same cell. (You can but once you put in the manual entry, the formula is gone for good). Am I reading this wrong?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  13. #13
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Display "CLOSED" in A2 if nothing is entered in A2

    You're welcome.

+ 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: 0
    Last Post: 03-21-2014, 09:58 AM
  2. [SOLVED] Formula Needed to fill multiple cells with "No" when the word "No" is entered into a cell
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-09-2013, 05:36 PM
  3. [SOLVED] Formula needed to display "Pass" or "Fail" if a column contains any values other than "yes
    By andreindy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2013, 05:49 PM
  4. Replies: 2
    Last Post: 10-30-2012, 06:08 PM
  5. conditional formula to show "open" or "closed"
    By SBS in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-27-2006, 09:50 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