+ Reply to Thread
Results 1 to 8 of 8

If nested statement issues

  1. #1
    Registered User
    Join Date
    11-12-2013
    Location
    Personal
    MS-Off Ver
    Excel 2010
    Posts
    4

    If nested statement issues

    It worked before and now my entire table is broken cause it is dependent on the outcome of this formula.

    So I have many sheets with the formula below, however each one is unique with its own cell value. The information
    it pulls from sheet 1 "Table of Contents" is a drop down list, data validation, with values: low, medium, high. The
    formula works EXCEPT when the cell value is High. I have also tried switching the first statement to medium and it
    works. It just seems to overlook high.

    =IF('Table of Contents'!$B$4="high",0.5,IF('Table of Contents'!$B$4="medium",0.2,0))

    Thanks in advance
    Last edited by winter12; 11-12-2013 at 10:48 AM.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: If nested statement issues

    Can you attach a workbook please?
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: If nested statement issues

    Is it an issue with case sensitivtiy - you have High in your post but high in the formula? maybe:
    =IF(UPPER('Table of Contents'!$B$4)="HIGH",0.5,IF(UPPER('Table of Contents'!$B$4)="MEDIUM",0.2,0))

  4. #4
    Registered User
    Join Date
    11-12-2013
    Location
    Personal
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: If nested statement issues

    Quote Originally Posted by OllyXLS View Post
    Can you attach a workbook please?
    Sorry, I cannot, its confidential!

  5. #5
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: If nested statement issues

    It's almost impossible to debug, then. Check your formula points at the correct cell, and that no errant spaces or punctuation have been introduced. Start a fresh formula which simply checks the value of your data validation list entry.

  6. #6
    Registered User
    Join Date
    11-12-2013
    Location
    Personal
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: If nested statement issues

    Quote Originally Posted by yudlugar View Post
    Is it an issue with case sensitivtiy - you have High in your post but high in the formula? maybe:
    =IF(UPPER('Table of Contents'!$B$4)="HIGH",0.5,IF(UPPER('Table of Contents'!$B$4)="MEDIUM",0.2,0))
    I tried playing around with the case sensitivity. No matter what medium is picked up and high is not.

  7. #7
    Registered User
    Join Date
    11-12-2013
    Location
    Personal
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: If nested statement issues

    Quote Originally Posted by OllyXLS View Post
    It's almost impossible to debug, then. Check your formula points at the correct cell, and that no errant spaces or punctuation have been introduced. Start a fresh formula which simply checks the value of your data validation list entry.
    OK, I started fresh in a new workbook. Problem was with data validation. The referenced data had a space on the end of High. So much time wasted on a space.

  8. #8
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: If nested statement issues

    Glad it was a simple fix

+ 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] Nested If Statement - ISBLANK and ISNA in same statement?
    By Janc in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-23-2013, 09:00 AM
  2. Nested Controll Combo Box issues
    By nzjohnny in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-19-2009, 03:37 AM
  3. Replies: 6
    Last Post: 01-14-2009, 06:59 PM
  4. [SOLVED] If then statement causing value issues in Macros
    By ssciarrino in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-29-2005, 02:10 PM
  5. HELP! - IF Statement Issues
    By MGeorges in forum Excel General
    Replies: 2
    Last Post: 02-09-2005, 07:35 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