+ Reply to Thread
Results 1 to 5 of 5

Help with IF function error

  1. #1
    Forum Contributor
    Join Date
    05-01-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    822

    Help with IF function error

    I have a #Value error with the following IF function,

    Can anyone identify the error;

    =IF(G2="C2",Start!G10,"Not Applicable"),IF(G2="Q2",Start!G10,"Not Applicable")

  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: Help with IF function error

    =IF(G2="C2",Start!G10,IF(G2="Q2",Start!G10,"Not Applicable"))
    or =IF(OR(G2={"c2","q2"}),start!G10,"not applicable")
    if c2 or q2 are other cells then it needs to be

    =IF(G2=C2,Start!G10,IF(G2=Q2,Start!G10,"Not Applicable"))
    Last edited by martindwilson; 07-16-2012 at 05:23 AM.
    "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
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Help with IF function error

    Hi

    Did you try without ""?

    =IF(G2=C2,Start!G10,"Not Applicable"),IF(G2=Q2,Start!G10,"Not Applicable")
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

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

    Re: Help with IF function error

    fotis,it's entirely the wrong construction for nested IF

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Help with IF function error

    Yes Martin. You are correct.

    ..Fast response..No checked.. Apologize for this.

+ 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