+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 Text Function

  1. #1
    Registered User
    Join Date
    03-05-2012
    Location
    Bath UK
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    20

    Excel 2007 Text Function

    Sounds a dumb question, but i cant find this simple answer
    What I want to do is test the condition in 2 cells, and if they are true place the word ERROR into another cell

    So if A1 = True
    and A2 -True
    Them place error into A3
    BUT i dont want to put the formula into A3
    what I am trying to use is this.....
    =IF(AND(A1="NO",A2="NO,A3="ERROR"
    But I cant find the correct formula, I CANT PUT FORMULA IN A3

    Anyone got any good ideas?

    ta

    G

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Excel 2007 Text Function

    why no formula?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Excel 2007 Text Function

    Try this :

    =IF(AND(A1="NO",A2="NO"),"ERROR","")

    Regards...

  4. #4
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Excel 2007 Text Function

    Quote Originally Posted by madbrit View Post
    =IF(AND(A1="NO",A2="NO,A3="ERROR"
    But I cant find the correct formula, I CANT PUT FORMULA IN A3
    One of the fundamental rules of formula is that they can not directly change the value in another cell, so either your formula goes in A3 or you'll have to use some (fairly simple) VBA to set the value in A3.

    Which do you prefer?

  5. #5
    Registered User
    Join Date
    03-05-2012
    Location
    Bath UK
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    20

    Re: Excel 2007 Text Function

    What would be the VBA to do this, macro?

    Ta


    G

  6. #6
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Excel 2007 Text Function

    Something like this, perhaps ...

    Please Login or Register  to view this content.

+ 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