+ Reply to Thread
Results 1 to 7 of 7

if function

  1. #1
    Forum Contributor
    Join Date
    04-08-2008
    Posts
    121

    if function

    Hi,

    I don't know what it is but for some reason my IF formula is not working. It is as follows:

    =IF(Input!$B$4=''Sheet 1 BCV'',''LUL Nominee BCV Limited trading as Company BCV Registration in England and Wales Company Number 2342334,''LUL Nominee SSL Limited trading as Company BCV Registration in England and Wales. Company Number 54657'')

    Is it because it doesn't understand long bits of text?

    Any help would be much appreciated.

    Thanks
    Harry

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good morning baz0912

    Quote Originally Posted by baz0912
    Is it because it doesn't understand long bits of text?
    No, there are a couple of things. Firstly you didn't close off your quotes at the end of the first piece of text. Second, you seem to be using the single apostophe twice (on my keyboard, also marked with @, next to ; ). You need to use the double quotes (shifted 2). They might look the same to use, but not to Excel.

    =IF(Input!$B$4="Sheet 1 BCV","LUL Nominee BCV Limited trading as Company BCV Registration in England and Wales Company Number 2342334","LUL Nominee SSL Limited trading as Company BCV Registration in England and Wales. Company Number 54657")

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Quote Originally Posted by baz0912
    Hi,

    I don't know what it is but for some reason my IF formula is not working. It is as follows:

    =IF(Input!$B$4=''Sheet 1 BCV'',''LUL Nominee BCV Limited trading as Company BCV Registration in England and Wales Company Number 2342334,''LUL Nominee SSL Limited trading as Company BCV Registration in England and Wales. Company Number 54657'')

    Is it because it doesn't understand long bits of text?

    Any help would be much appreciated.

    Thanks
    Harry
    Which error do you get?
    A double quote seems to be missing after 2342334..

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Quote Originally Posted by dominicb
    Good morning baz0912


    No, there are a couple of things. Firstly you didn't close off your quotes at the end of the first piece of text. Second, you seem to be using the single apostophe twice (on my keyboard, also marked with @, next to ; ). You need to use the double quotes (shifted 2). They might look the same to use, but not to Excel.

    =IF(Input!$B$4="Sheet 1 BCV","LUL Nominee BCV Limited trading as Company BCV Registration in England and Wales Company Number 2342334","LUL Nominee SSL Limited trading as Company BCV Registration in England and Wales. Company Number 54657")

    HTH

    DominicB
    Hi Dominic,
    how can you see the differnce between double quotes and two apostrophes?

  5. #5
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Hi arthurbr
    Quote Originally Posted by arthurbr
    how can you see the differnce between double quotes and two apostrophes?
    I can't!
    I copied the OP's formula to a spreadsheet, spotted the missing double quotes, added them, and the formula still error'd when it shouldn't. When you arrow through the entire formula one character at a time, you just might spot it.

    I didn't at first, but it's a very simple formula and there was clearly nothing wrong with it...

    DominicB

  6. #6
    Forum Contributor
    Join Date
    04-08-2008
    Posts
    121
    Hi Dominic,

    Thanks very much for your help!

    Harry

  7. #7
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Thumbs up

    Quote Originally Posted by dominicb
    Hi arthurbr

    I can't!
    I copied the OP's formula to a spreadsheet, spotted the missing double quotes, added them, and the formula still error'd when it shouldn't. When you arrow through the entire formula one character at a time, you just might spot it.

    I didn't at first, but it's a very simple formula and there was clearly nothing wrong with it...

    DominicB
    Ok Thx for this useful tip

+ 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