+ Reply to Thread
Results 1 to 3 of 3

One nested IF function cell shows incorrect value based on another nested IF function

  1. #1
    Registered User
    Join Date
    01-04-2019
    Location
    Varna, Bulgaria
    MS-Off Ver
    ProPlus
    Posts
    3

    One nested IF function cell shows incorrect value based on another nested IF function

    Dear readers,

    Thank you for reading this,

    I have cell E91 with a nested IF Function looking like this:

    =IF(Hits...Numbers!T11="Ground Armor L1", "1", IF(Hits...Numbers!T11="Ground Armor L2", "2", IF(Hits...Numbers!T11="Ground Armor L3", "3", "0")))

    And another cell G104 with a nested IF Function looking like this:

    =IF(E91="0","0", IF(E91="1", "1", IF(E91="2", "2", IF(E91="3", "3"))))

    While the first cell mentioned E91 shows correctly the value depending on the T11 cell of the sheet 'Hits...Numbers', the second cell G104, which is showing various values depending on E91 (first cell), to my surprise it shows always "3".

    It does not matter if cell E91 shows 0, 1, 2 or 3, the cell G104 (the second one with nested IF function) always shows "3".

    Could you be so kind to direct me to what the problem might be?

    Cheers

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: One nested IF function cell shows incorrect value based on another nested IF function

    Hello and welcome to the forum.

    I recommend uploading a small representative sample of your data along with the desired results (which you can enter manually) based on that data.

    To upload an Excel workbook, follow these steps:
    1) Click on "Go Advanced"
    2) Click on "Manage Attachments"
    3) Click on "Choose File"
    4) Choose your file and click on "Open"
    5) Click on "Upload"
    6) Click on "Close this window"

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: One nested IF function cell shows incorrect value based on another nested IF function

    Hi, welcome to the forum

    Any time you wrap a number inside "" it becomes text. Remove the "" from your values and try again.

    =IF(Hits...Numbers!T11="Ground Armor L1", 1, IF(Hits...Numbers!T11="Ground Armor L2", 2, IF(Hits...Numbers!T11="Ground Armor L3", 3, "0")))
    Although this could probably be reduced to...
    =IF(Hits...Numbers!T11="Ground Armor*", --right(Hits...Numbers!T11,1),0)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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] Month Function When Nested inside Text returns incorrect Month Serial Number
    By ibuhary in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-06-2018, 04:12 AM
  2. [SOLVED] Nested vlookup or nested IFAND function?
    By jeptik in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-11-2017, 02:27 AM
  3. Replies: 2
    Last Post: 02-09-2017, 12:09 PM
  4. [SOLVED] Nested IF Function - The 'Condition' is based on two values within a Cell
    By Sinalk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-12-2014, 11:27 AM
  5. Excel IF function shows incorrect result
    By johnhotrod in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-27-2014, 06:59 PM
  6. Nested LOOKUP function returns incorrect data
    By TheAkwardOne in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-29-2008, 12:15 AM
  7. Nested IF function, based on two columns TRUE
    By chevyrulz099 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-11-2005, 06:16 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