+ Reply to Thread
Results 1 to 8 of 8

Nested If anf If Error functions

  1. #1
    Registered User
    Join Date
    05-26-2015
    Location
    Madrid, Spain - Hamburg, Germany
    MS-Off Ver
    2013
    Posts
    29

    Nested If anf If Error functions

    Hey all,

    I have the following difficulty:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    this function does not work as I want it to, which surprised me, bc in seperation both of the formulas (the IF & the IFERROR) work as desired.

    With the function I refer to a cell, that either has a value (in text form), is blank or contains "-".
    In the two later cases I want the cell to be blank, in the first I want the value as a number.

    Looking forward to your smart solutions,
    Laurents
    Last edited by Mohrinho; 06-10-2015 at 07:06 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Nested If anf If Error functions

    Would you upload the workbook.

    I cannot see an OR condition which would be necessary if you want a blank cell given either "-" or blank.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    05-26-2015
    Location
    Madrid, Spain - Hamburg, Germany
    MS-Off Ver
    2013
    Posts
    29

    Re: Nested If anf If Error functions

    Ok here is a part of the workbook.
    In column C everything works perfect, in column D I want him to keep the formula but put blank instead of 0. In D34 I put in an iferror function that works for this cell, buyt if i drag it to the left, I get an error message instead of the desired 119.

    Thank you!
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-26-2015
    Location
    Madrid, Spain - Hamburg, Germany
    MS-Off Ver
    2013
    Posts
    29

    Re: Nested If anf If Error functions

    I don't want the cell to be - or blank. I want it to be blank if the reference cell is either one of those.

  5. #5
    Registered User
    Join Date
    05-26-2015
    Location
    Madrid, Spain - Hamburg, Germany
    MS-Off Ver
    2013
    Posts
    29

    Re: Nested If anf If Error functions

    no one? ....

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Nested If anf If Error functions

    You have to test for the error FIRST.
    Then test for =0

    Try

    =IFERROR(IF(VALUE(VLOOKUP("Emisiones CO2 combinado (Gr. 2)";$1:$1048576;COLUMN(P:P);))=0;"";VALUE(VLOOKUP("Emisiones CO2 combinado (Gr. 2)";$1:$1048576;COLUMN(P:P);)));"")

  7. #7
    Registered User
    Join Date
    06-05-2015
    Location
    Manchester, UK
    MS-Off Ver
    2016
    Posts
    94

    Re: Nested If anf If Error functions

    When I drag the formula from D34 to C34 it returns 119 like you said you wanted it to?

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Nested If anf If Error functions

    I must admit I'm puzzled to understand your ultimate aim.

    I'm also puzzled by your VLOOKUP formula. It seems to be looking up itself but without triggering a circular ref and it's not clear where the value 119 comes from. Are you able to clarify?

+ 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. Replies: 6
    Last Post: 03-17-2015, 01:35 AM
  2. Nested FOR & AND Functions Error
    By nwegman7878 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-30-2014, 11:07 AM
  3. Replies: 2
    Last Post: 02-01-2011, 06:51 PM
  4. Error Trapping Nested If Functions
    By Marie1uk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-06-2007, 09:21 PM
  5. Nested functions HELP!
    By chiefnmd in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 PM

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