+ Reply to Thread
Results 1 to 7 of 7

IF STatement returning 0 Value

  1. #1
    Registered User
    Join Date
    01-15-2015
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    3

    IF STatement returning 0 Value

    Hi, I am trying to create a multiphe IF statement but it keeps returning a "0" value. Can anyone please advise? The IF statement is as follows:

    =IF(C13="2015001","2014012",IF(C13="2015002","2015001",IF(C13="2015003","2015002",IF(C13="2015004","2015003",IF(C13="2015005","2015004",IF(C13="2015006","2015005",IF(C13="2015007","2015006",IF(C13="2015008","2015007",IF(C13="2015009","2015008",IF(C13="2015010","2015009",IF(C13="2015011","2015010",IF(C13="2015012","2015011",IF(C13="2016001","2015012",)))))))))))))

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: IF STatement returning 0 Value

    Try taking out all of the double quotes - replace in notepad or Word is a quick way to do this.

  3. #3
    Registered User
    Join Date
    01-15-2015
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    3

    Re: IF STatement returning 0 Value

    Yes that worked! Thank you so much! Much appreciated!

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: IF STatement returning 0 Value

    Alternatively you may use the following formula to see if you get the same output......
    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,461

    Re: IF STatement returning 0 Value

    Or you could set up a little table showing what you want to convert from and to, and then use the VLOOKUP function.

    Hope this helps.

    Pete

  6. #6
    Registered User
    Join Date
    01-15-2015
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    3

    Re: IF STatement returning 0 Value

    Thanks guys, It's always good to know alternative methods.

    Thanks again,
    Cian

  7. #7
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: IF STatement returning 0 Value

    You're welcome.

    If that takes care of your question, please mark your thread as Solved by selecting Thread Tools (just above your first post) --> Mark thread as solved.
    You may also click on * (star) to Add Reputation to those who have put their time and efforts to help you in the forum. This is another way to say thanks to them.

+ 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. [SOLVED] Help on If Statement returning a FALSE value
    By JenMcG in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2014, 11:53 AM
  2. [SOLVED] If statement returning 0/01/1900
    By Ronmac in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 09-01-2013, 01:21 AM
  3. IF Statement returning 0
    By buyshirts in forum Excel General
    Replies: 4
    Last Post: 07-16-2012, 09:03 AM
  4. If And Statement returning #VALUE
    By AESP920 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-26-2010, 03:22 PM
  5. if statement returning blanks
    By Mayrie in forum Excel General
    Replies: 3
    Last Post: 09-29-2009, 03:59 PM

Tags for this Thread

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