+ Reply to Thread
Results 1 to 10 of 10

Create Error Message for Not allowing 2 cells to both have entries

Hybrid View

  1. #1
    Registered User
    Join Date
    08-05-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    29

    Create Error Message for Not allowing 2 cells to both have entries

    Hi I need help with Excel.

    Basically what I want to do is use an IF statement or otherwise to set up excel to allow only one value to be inserted into one of two collums not both. If values are typed into both fields excel shouldn't accept it and give an error message.

    Please can someone help me with the Excel Jargon

    Many Thanks
    Last edited by emdad16; 08-18-2010 at 11:46 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Assistance Required with IF statement or other Formulae

    Use data validation on each cell.

    So say you are using A1 and B1

    Go to B1, then to Data|Validation.. and choose Custom from Allow menu.

    Enter formula: =B1=""

    You can go to Error Alert tab to customize the error message if you want.

    Click Ok.

    Then go to B1 and repeat above with formula: =A1=""
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    08-05-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    29

    Re: Create Error Message for Not allowing 2 cells to both have entries

    Hi

    It's working Thanks.

    One more question, I wan't to make the cell that I am using the Validation rule on to only accept Positive Numbers. How do I do this?

    Thanks

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Create Error Message for Not allowing 2 cells to both have entries

    Change formula in A1 to:

    =AND(B1="",A1>0)

    and check the box that says "Ignore blank"

    and do the same in B1 with formula:

    =AND(A1="",B1>0)

  5. #5
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: Create Error Message for Not allowing 2 cells to both have entries

    ***Edit***

    I didn't refresh my screen before submitting respone. NBVC beat me to the answer.

  6. #6
    Registered User
    Join Date
    08-05-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    29

    Re: Create Error Message for Not allowing 2 cells to both have entries

    Hi,

    Thanks 4 getting back to me quickly, really apprieciate it. However, I have tried the formula and it's not working

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Create Error Message for Not allowing 2 cells to both have entries

    Did you uncheck the "ignore blanks" box?

    I probably mislead you on that above...

  8. #8
    Registered User
    Join Date
    08-05-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    29

    Re: Create Error Message for Not allowing 2 cells to both have entries

    Wow, Thanks M8....I didn't know a simple mistake can muck up the whole formula lol.

    Thanks Bro...Thankzzzzzzzzz :-)

  9. #9
    Registered User
    Join Date
    08-05-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    29

    Re: Create Error Message for Not allowing 2 cells to both have entries

    Hi All,

    I need help with Excel again, basically what I want to do is as follows. I have a list of names that need to be automatically assigned by excel to a currency.

    i.e When ASDA is typed in, in the next collum labelled Currency it should automatically display USD.

    Another Example Vodafone......GBP

    Santander......EUR

    etc.

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Create Error Message for Not allowing 2 cells to both have entries

    Please post new questions in new threads.

    Thank You

+ 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